// JavaScript Document
	var wX
	var wY
	var cHeight
	var cOpen = false
	var cClose = false
	var bmOpen = false
	var targetUrl = ''

function get_win_dim(){
	if (navigator.appName.indexOf("Microsoft Internet")!=-1){
		wX =(document.body.clientWidth)
		wY =(document.body.clientHeight)
	}else{
		wX = Math.round(top.innerWidth)-1;
		wY = Math.round(top.innerHeight)-2;
	}
}
function show_div(wDiv){
	if(document.getElementById(wDiv).style.visibility=="hidden"){
		document.getElementById(wDiv).style.visibility="visible"
	}else{
		document.getElementById(wDiv).style.visibility="hidden"
	}}
function set_flash(wFlash){
	document.write(wFlash);
	}
function lo_init(){
	var test = document.location.href.lastIndexOf('/')
	test = document.location.href.substr(test)
	var oDest = document.location.search.substr(4)
	if(oDest)parent.frames[0].document.location.href = oDest+".html";
	if(test !='/' && test != '/index.html'){
		initSub()
	}else{
	get_win_dim()
	if((wX/2) > 450 && wY >600){
		document.getElementById("hMenu").style.top = ((95/100)*wY)-600 +"px"
		document.getElementById("hMenu").style.height = 600 +"px"
		document.getElementById("hMenu").style.width = 450 +"px"
		document.getElementById("hBg").style.height = wY +"px"
	}else{
		if((wX/2) <= 450){
			document.getElementById("hMenu").style.width = (wX/2) +"px"
			document.getElementById("hMenu").style.height = wY +"px"
			document.getElementById("hMenu").style.top = ((95/100)*wY)-wY +"px"
			document.getElementById("menu").width = (wX/2)
			document.getElementById("hBg").style.height = wY +"px"
		}
		if((wY) <= 600){
			document.getElementById("hMenu").style.width = (wX/2) +"px"
			document.getElementById("hMenu").style.height = wY +"px"
			document.getElementById("hMenu").style.top = ((95/100)*wY)-wY +"px"
			document.getElementById("menu").height = wY
			document.getElementById("hBg").style.height = wY +"px"
		}
	}
	if(wX/2 < 450){	
		document.getElementById("hMenu").style.left = Math.round(wX-375)+"px"
		document.getElementById("cContent").style.width = Math.round(wX-375)+"px"
	}else{
		document.getElementById("hMenu").style.left = Math.round(wX-375)+"px"
		document.getElementById("cContent").style.width = Math.round(wX-375)+"px"
	}
	document.getElementById("hMenu").style.visibility = "visible"
	document.getElementById("hBg").style.visibility = "visible"
	}
}


function initSub(){
	get_win_dim()
	if((wX/2) > 450 && wY >600){
		document.getElementById("hMenu").style.top = ((95/100)*wY)-600+"px"
		document.getElementById("hMenu").style.height = 600+"px"
		document.getElementById("hMenu").style.width = wX/2+"px"
		document.getElementById("hBg").style.height = wY+"px"
	}else{
		if((wX/2) <= 450){
			document.getElementById("hMenu").style.width = (wX/2)+"px"
			document.getElementById("hMenu").style.height = wY+"px"
			document.getElementById("hMenu").style.top = (wY-30)-wY+"px"
			document.getElementById("menu").width = (wX/2)+"px"
			document.getElementById("hBg").style.height = wY+"px"
		}
		if((wY) <= 600){
			document.getElementById("hMenu").style.width = (wX/2)+"px"
			document.getElementById("hMenu").style.height = wY+"px"
			document.getElementById("hMenu").style.top = (wY-30)-wY+"px"
			document.getElementById("menu").height = wY+"px"
			document.getElementById("hBg").style.height = wY+"px"
		}
	}
	if(wX/2 < 375){	
		document.getElementById("cContent").style.width = Math.round(wX-375)+"px"
		document.getElementById("hMenu").style.left = Math.round(wX)-375+"px"
	}else{
		document.getElementById("hMenu").style.left = Math.round(wX)-375+"px"
		document.getElementById("cContent").style.width = Math.round(wX)-375+"px"
	}
	document.getElementById("hMenu").style.visibility = "visible"
	document.getElementById("hBg").style.visibility = "visible"
	
}

function initReload(){
		location.reload(true)
}
//javascript:window.history.back(2);
function do_back(){
	go = false
	for(var i=0;i<1000000;i++){
		if(i==999999)go=true
		//alert(history.length)		
		//history.go(-1)	
		//alert(history.length)		
		//alert(document.referrer+" || "+history.length)		
	}
	if(go)history.back()
}
function check_event(){
alert(event.type)
}