	function addLoadEvent(events, func)
	{
		if(typeof window.addEventListener == 'function')
		{
		window.addEventListener(events, func, false);
		return true;
	 	}
	 	else if(typeof window.attachEvent == 'object')
	 	{
			window.attachEvent('on'+events, func);
			return true;
		}
	}
	
	function initialLoad()
	{
		var sw = document.body.clientWidth;
		var sh1 = document.getElementById("Wrapper").clientHeight;
		var sh2 = document.getElementById("Side").clientHeight;
		
		document.getElementById("SideTop").style.width = (sw - 660)+"px";
		if( sh1 < sh2 )
		{
			document.getElementById("Wrapper").style.height = sh2+"px";
		}
	}
	
	function alwaysLoad1()
	{
		var sw = document.body.clientWidth;
		
		document.getElementById("SideTop").style.width = (sw - 660)+"px";
	}
	
	addLoadEvent("load", initialLoad);
	addLoadEvent("resize", alwaysLoad1);