/*index*/
function index_menu_up(obj)
{
	i=0
	obj.style.background="url(imgs/btn_index.jpg) no-repeat center top"
	if(typeof(val_index_out)!="undefined")
	{
		window.clearInterval(val_index_out);
		}
	val_index_up=setInterval("index_up()",1);
}
	function index_up()
	{
		if(i<40)
		{
			document.getElementById("index_pic").style.marginTop=40-i;
			i=i+4;
		}
		else
		{
			window.clearInterval(val_index_up);
		}
	}
function index_menu_out(obj)
{
	obj.style.background="";
	window.clearInterval(val_index_up);
	setTimeout("val_index_out=setInterval('index_out()',1)",500)
}
function index_out()
{
	if(i>-4)
	{
		document.getElementById("index_pic").style.marginTop=40-i;
		i=i-4
	}
	else
	{
		window.clearInterval(val_index_out);
		}
}
/*help*/

function help_menu_up(obj)
{
	j=0
		if(typeof(val_help_out)!="undefined")
	{
		window.clearInterval(val_help_out);
		}
	obj.style.background="url(imgs/btn_help.jpg) no-repeat center top"
	
	val_help_up=setInterval("help_up()",1);
}
	function help_up()
	{
		if(j<40)
		{
			document.getElementById("help_pic").style.marginTop=40-j;
			j=j+4;
		}
		else
		{
			window.clearInterval(val_help_up);
		}
	}
function help_menu_out(obj)
{
	obj.style.background="";
	window.clearInterval(val_help_up);
	setTimeout("val_help_out=setInterval('help_out()',1)",500)
}
function help_out()
{
	if(j>-4)
	{
		document.getElementById("help_pic").style.marginTop=40-j;
		j=j-4
	}
	else
	{
		window.clearInterval(val_help_out);
		}
}
/*center*/

function center_menu_up(obj)
{
	k=0
			if(typeof(val_center_out)!="undefined")
	{
		window.clearInterval(val_center_out);
		}
	obj.style.background="url(imgs/btn_center.jpg) no-repeat center top"
	
	val_center_up=setInterval("center_up()",1);
}
	function center_up()
	{
		if(k<40)
		{
			document.getElementById("center_pic").style.marginTop=40-k;
			k=k+4;
		}
		else
		{
			window.clearInterval(val_center_up);
		}
	}
function center_menu_out(obj)
{
	obj.style.background="";
	window.clearInterval(val_center_up);
	setTimeout("val_center_out=setInterval('center_out()',1)",500)
}
function center_out()
{
	if(k>-4)
	{
		document.getElementById("center_pic").style.marginTop=40-k;
		k=k-4
	}
	else
	{
		window.clearInterval(val_center_out);
		}
}
/*load*/

function load_menu_up(obj)
{
	l=0;
		document.getElementById("open_nav").innerHTML="<div style='background:url(imgs/nav_open_bg.gif) no-repeat bottom; margin-left:560px; width:156px; height:21px; color:#37c4ff; text-align:center; padding-top:3px;'><a href='http://218.85.139.181:808/gs/install_all.exe' style='color:#37c4ff;'>ÍêÕû°æÏÂÔØ</a> | <a href='http://218.85.139.181:808/gs/install.exe' style='color:#37c4ff;'>¼ò½Ý°æÏÂÔØ</a></div>";
	if(typeof(val_load_out)!="undefined")
	{
		window.clearInterval(val_load_out);
		}
	obj.style.background="url(imgs/btn_load.jpg) no-repeat center top"
	
	val_load_up=setInterval("load_up()",1);
}
	function load_up()
	{
		if(l<40)
		{
			document.getElementById("load_pic").style.marginTop=40-l;
			l=l+4;
		}
		else
		{
			window.clearInterval(val_load_up);
		}
	}
function load_menu_out(obj)
{
	setTimeout("document.getElementById('open_nav').innerHTML=''",5000);
	obj.style.background="";
	window.clearInterval(val_load_up);
	setTimeout("val_load_out=setInterval('load_out()',1)",500)
}
function load_out()
{
	if(l>-4)
	{
		document.getElementById("load_pic").style.marginTop=40-l;
		l=l-4
	}
	else
	{
		window.clearInterval(val_load_out);
		}
}
/*home*/

function home_menu_up(obj)
{
	m=0
		if(typeof(val_home_out)!="undefined")
	{
		window.clearInterval(val_home_out);
		}
	obj.style.background="url(imgs/btn_home.jpg) no-repeat center top"
	
	val_home_up=setInterval("home_up()",1);
}
	function home_up()
	{
		if(m<40)
		{
			document.getElementById("home_pic").style.marginTop=40-m;
			m=m+4;
		}
		else
		{
			window.clearInterval(val_home_up);
		}
	}
function home_menu_out(obj)
{
	obj.style.background="";
	window.clearInterval(val_home_up);
	setTimeout("val_home_out=setInterval('home_out()',1)",500)
}
function home_out()
{
	if(m>-4)
	{
		document.getElementById("home_pic").style.marginTop=40-m;
		m=m-4
	}
	else
	{
		window.clearInterval(val_home_out);
		}
}
/*money*/

function money_menu_up(obj)
{
	n=0
			if(typeof(val_money_out)!="undefined")
	{
		window.clearInterval(val_money_out);
		}
	obj.style.background="url(imgs/btn_money.jpg) no-repeat center top"
	
	val_money_up=setInterval("money_up()",1);
}
	function money_up()
	{
		if(n<40)
		{
			document.getElementById("money_pic").style.marginTop=40-n;
			n=n+4;
		}
		else
		{
			window.clearInterval(val_money_up);
		}
	}
function money_menu_out(obj)
{
	obj.style.background="";
	window.clearInterval(val_money_up);
	setTimeout("val_money_out=setInterval('money_out()',1)",500)
}
function money_out()
{
	if(n>-4)
	{
		document.getElementById("money_pic").style.marginTop=40-n;
		n=n-4
	}
	else
	{
		window.clearInterval(val_money_out);
		}
}



function over_help_money(obj)
{
	obj.src="images/help_nav_over_05_1.jpg";
	}
	function out_help_money(obj)
{
	obj.src="images/help_nav_05_1.jpg";
	}
	
function over_help_game(obj)
{
	obj.src="images/help_nav_over_04_1.jpg";
	}
	function out_help_game(obj)
{
	obj.src="images/help_nav_04_1.jpg";
	}
	
function over_help_reg(obj)
{obj.src="images/help_nav_over_02_1.jpg";}
function out_help_reg(obj)
{obj.src="images/help_nav_02_1.jpg";}
function over_help_load(obj)
{obj.src="images/help_nav_over_03_1.jpg";}
function out_help_load(obj)
{obj.src="images/help_nav_03_1.jpg";}
	
	
function over_float_reg()
{
	document.getElementById("right2").style.background="url('imgs/help1.gif') no-repeat";
}
function over_float_load()
{
	document.getElementById("right2").style.background="url('imgs/help2.gif') no-repeat";
}
function over_float_game()
{
document.getElementById("right2").style.background="url('imgs/help3.gif') no-repeat";
}
function out_float()
{
document.getElementById("right2").style.background="url('imgs/help.gif') no-repeat";
}
