
function IndexDivShowFooter(id)
{
	var cssName1 = "footer1";
	var cssName2 = "footer2";
	var cssCount = 4;
	
	try
	{
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["ShowFooter"+i].className = cssName1;
			
		}
		
		document.all['ShowFooter'+id].className = cssName2;
		
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["ShowFooterContent"+i].style.display = "none";
			
		}
		
		document.all['ShowFooterContent'+id].style.display = "";
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}

function IndexDivShowHeader(id)
{
	var cssName1 = "";
	var cssName2 = "";
	var cssCount = 4;
	
	try
	{
		//alert (id);
		for (i=1;i<=cssCount;i++)
		{
				document.all["ShowHeader"+i].src = "/images/header_"+i+"_2.gif";
		}
		
		document.all['ShowHeader'+id].src = "/images/header_"+id+"_1.gif";
		//alert (document.all['ShowHeader'+id].src);
		
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["ShowHeaderContent"+i].style.display = "none";
		}
		
		document.all['ShowHeaderContent'+id].style.display = "";
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}


function IndexDivShowLink(id)
{
	var cssName1 = "footer1";
	var cssName2 = "footer2";
	var cssCount = 2;
	
	try
	{
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["ShowLink"+i].src = "/images/link_"+i+"_1.gif";
			
		}
		
		document.all['ShowLink'+id].src = "/images/link_"+id+"_2.gif";
		
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["ShowLinkContent"+i].style.display = "none";
			
		}
		
		document.all['ShowLinkContent'+id].style.display = "";
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}

function IndexDivShowHeaderLinker(id)
{
	var cssCount = 2;
	
	try
	{
	
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["HeaderLinkerContent"+i].style.display = "none";
		}
		
		document.all["HeaderLinkerContent"+id].style.display = "";
		
		var now = new Date() 
		fixDate(now) 
		now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
		
		setCookie("kMenuLayer",id,now);
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}

function loadLastLayer()
{
	var id = getCookie("kMenuLayer");
	var i = 0;
	
	if (id!=null)
	{
		window.setTimeout("IndexDivShowHeaderLinker("+id+")",2000);
	}
}