// JavaScript Document

	function getObject(id)
	{
		if(document.getElementById)
			return document.getElementById(id);
			
		if(document.all)
			return document.all[id];
			
		return document[id];
	}
	function switchBtn(btn, aid)
	{
		if(btn.className == "btn"){
			btn.className = "hotbtn";
			getObject(aid).style.color = "#ffffff";
		}
		else{
			btn.className = "btn";
			getObject(aid).style.color = "#D9D2E1";
		}
	}
	function doLayout()
	{
		var bodyWidth = document.body.clientWidth;
		getObject("band").style.left = Math.floor(bodyWidth / 2 - 405) + "px";
		getObject("right").style.left = "20px"
		getObject("right").style.width = (bodyWidth / 2 + 385) + "px";
	}	
	window.onresize = doLayout;