function lNavTreeView(obj) {
	var NextObj = obj;
	if($(obj).style.display == 'none' || $(obj).style.display == '') {
		$(obj).style.display = 'block';
		switch (obj) {
			case 'high_sports':
				Element.classNames('tit_high_culture').remove('open');
				$(obj).style.display = 'block';
				Element.classNames('tit_high_sports').set('open');
				$('high_culture').style.display = 'none';
				break;

			case 'high_culture':
				Element.classNames('tit_high_sports').remove('open');
				$(obj).style.display = 'block';
				Element.classNames('tit_high_culture').set('open');
				$('high_sports').style.display = 'none';
				break;
				
			case 'junior_sports':
				Element.classNames('tit_junior_culture').remove('open');
				$(obj).style.display = 'block';
				Element.classNames('tit_junior_sports').set('open');
				$('junior_culture').style.display = 'none';
				break;

			case 'junior_culture':
				Element.classNames('tit_junior_sports').remove('open');
				$(obj).style.display = 'block';
				Element.classNames('tit_junior_culture').set('open');
				$('junior_sports').style.display = 'none';
				break;
		}
	} else {
		Element.classNames('tit_high_sports').remove('open');
		Element.classNames('tit_high_culture').remove('open');
		Element.classNames('tit_junior_sports').remove('open');
		Element.classNames('tit_junior_culture').remove('open');
		$(obj).style.display = 'none';
	}	
}

function lNavTreeHideAll() {
	$('high_sports').style.display = 'none';
	$('high_culture').style.display = 'none';
	$('junior_sports').style.display = 'none';
	$('junior_culture').style.display = 'none';
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function CloseWin(){
window.close();
}


/*window.onload = lNavTreeHideAll;*/




	var Mac   = navigator.userAgent.indexOf("Mac") != -1   ? true : false;
	function mdown(e) {
	if (navigator.appName == "Microsoft Internet Explorer") {
		//Mac版IE５ではコマンドキーを使ったショートカットでソースを見ることができます。
		if (event.button == 2 || (Mac && (event.ctrlKey || event.keyCode == 91))) {
			alert("コンテクストメニューは利用できません。");
			return(false);
		}
	  } else if (navigator.appName == "Netscape") {
		if (e.which == 3 || e.modifiers == 2 || e.ctrlKey) {
			alert("コンテクストメニューは利用できません。");
			return false;
	    }
	  } 
	}

	function noright(){
		alert("コンテクストメニューは利用できません。");
		return false;
	}


	document.oncontextmenu = noright;

	if (document.all && (Mac || ! document.getElementById)) {
		document.onmousedown = mdown;
		document.onkeydown = mdown;
	} else if (document.layers) {
		window.captureEvents(Event.MOUSEDOWN | Event.modifiers | Event.KEYDOWN);
		window.onmousedown = mdown;
		window.onkeydown = mdown;
	} else if(navigator.userAgent.indexOf("Netscape6")!=-1){
		//onmousedownだとalertが表示されますが、
		//同時にデフォルトのコンテクストメニューも表示されてしまいます。
		//なのでonmouseupを使います
  		document.onmouseup = mdown; 
		document.onkeydown = mdown;
	}