//
var hheight = 480;
var hheight2 = 20;
var hheightpx = hheight+"px";

//
function img_effect()
{
	if(document.getElementById('about2').style.height != hheightpx)
	{
		document.getElementById('about').style.height = hheight+'px';
		document.getElementById('about2').style.height = hheight+'px';
		document.getElementById('about3').style.backgroundImage = 'url(img/Menu_bg.png)';
		//document.getElementById('about3').style.height = '102px';
		//document.getElementById('about4').style.visibility = 'hidden';
		//document.getElementById('about5').style.backgroundImage = 'url(img/rpt_top.png)';
		//plus();	
	}
	else
	{
		document.getElementById('about').style.height = hheight2+'px';
		document.getElementById('about2').style.height = hheight2+'px';
		document.getElementById('about3').style.backgroundImage = 'url(img/Menu_bg.png)';
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
var curtainStep = 80; 
var curtainTimeout = 1;
var hheight5 = 80;
var hheightstop = 400;
//
var curtainStep2 = 50;
var curtainTimeout2 = 30;
var hheightstopb = 80;
var hheight5b = 270;
var opencheck = 0;
//
function curtainOpen()
{
	//
	document.getElementById('rimg').style.visibility = "hidden";
	//
	document.getElementById('title_name').style.visibility = "hidden";
	//
	if (hheight5 < hheightstop)
	{
		hheight5 += curtainStep;
		//
		document.getElementById('about').style.height = hheight5+'px';
		document.getElementById('about2').style.height = hheight5+'px';
		document.getElementById('about3').style.backgroundImage = 'url(img/Menu_bg.png)';
		//
		setTimeout(curtainOpen,curtainTimeout); 
	}
	else
	{
		hheight5 = 80;
		opencheck = 1;
	}
}
//
function curtainClose()
{
	//
	document.getElementById('rimg').style.visibility = "visible";
	//
	document.getElementById('title_name').style.visibility = "visible";
	//
	if (hheight5b > hheightstopb)
	{
		hheight5b -= curtainStep2;
		//
		document.getElementById('about').style.height = hheight5b+'px';
		document.getElementById('about2').style.height = hheight5b+'px';
		document.getElementById('about3').style.backgroundImage = 'url(img/Menu_bg.png)';
		//
		setTimeout(curtainClose,curtainTimeout2); 
	}
	else
	{
		hheight5b = 270;
		opencheck = 0;
	}
}
//
function imageSlide()
{
	if(opencheck == 0)
	{
		curtainOpen();
	}
	//
	if(opencheck == 1)
	{
		curtainClose();
	}

}
////////////////////////////////////////////////////////////////////////////////////////////
function plus()
{
	hheight2 = hheight2 + 50;
	if(hheight2 < hheight)
	{
		document.getElementById('about').style.height = hheight2+'px';
		document.getElementById('about2').style.height = hheight2+'px';
		//document.getElementById('idcenter').style.height = hheight2+'px';
		document.getElementById('about3').style.backgroundImage = 'url(img/Menu_bg.png)';
		window.status = hheight2; 
		t = setTimeout('plus()',5);
	}
	else
	{
		clearTimeout(t)
	}
}
//
var iimg = 8;
//
function bover(namer)
{
	if(document.images)
	{
		//
		if(namer != 1)
		{
			var namerpir = namer - 1;
			document.images['img'+namerpir].style.width = "46px";
			document.images['img'+namerpir].style.height = "36px";
		}
		//
		document.images['img'+namer].style.width = "50px";
		document.images['img'+namer].style.height = "40px";
		//document.images['img'+namer].style.border = "1px solid #880000";
		//
		if(namer != iimg)
		{
			namern = new Number(namer);
			meore = namern + 1;
			document.images['img'+meore].style.width = "46px";
			document.images['img'+meore].style.height = "36px";
		}
	}
}
//
function bout(namer)
{
	if(document.images)
	{
		for(i=1;i<=iimg;i++)
		{
			document.images['img'+i].style.width = "42px";
			document.images['img'+i].style.height = "32px";
			//document.images['img'+namer].style.border = "1px solid #CCCCCC";
		}
	}
}
//
function change_banners(namer)
{
	document.getElementById('imgbanner').style.backgroundImage = "url(img/banners/"+namer+".jpg)";
}