//GO1.1

///////////////////////////////////////
//
//  resize onload by Brothercake
//  http://www.brothercake.com/
//
///////////////////////////////////////
function moveflash() {
	var maincontent = document.getElementById("contentarea");
	var flashdiv = document.getElementById("flashcontent");
	if (flashdiv != null) {      // Are we on the home page with the globe?
		var user6 = document.getElementById("user6");
		var markup = flashdiv.innerHTML;
		myWidth = maincontent.clientWidth;	  
		myHeight = myWidth * .87;	
		
		if (user6 !=null) {
			var innerHTML = user6.innerHTML;
			
			maincontent.innerHTML = 
				"<div id=\"flashcontent\" style=\"width:"+ myWidth + "px; height:" + myHeight + "px;\">" + markup + "</div>" + innerHTML;
		}
		else
		{		
			maincontent.innerHTML = "<div id=\"flashcontent\" style=\"width:"+ myWidth + "px; height:" + myHeight + "px;\">" + markup + "</div>";
		}
		maincontent.style.visibility="visible";
	}
}
	
function resize() {
  var flashdiv = document.getElementById("flashcontent");
  if (flashdiv != null) {      // Are we on the home page with the globe?
	var myWidth = 0, myHeight = 0;
	var maincontent = document.getElementById("contentarea");
	myWidth = maincontent.clientWidth; 	  
	myHeight = myWidth * .87 ;
	flashdiv.style.width = myWidth + "px";
	flashdiv.style.height = myHeight + "px";
	flashdiv.style.visibility = "visible"; 
	flashdiv.style.verticalAlign = "top";
	maincontent.style.verticalAlign = "top";
 	}
}

//setup onload function
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', moveflash, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', moveflash, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', moveflash);
}

//** remove this condition to degrade older browsers
else
{
	//.. mac/ie5 and anything else that gets this far
	
	//if there's an existing onload function
	if(typeof window.onload == 'function')
	{
		//store it
		var existing = onload;
		
		//add new onload handler
		window.onload = function()
		{
			//call existing onload function
			existing();
			
			//call moveflash onload function
			moveflash();
		};
	}
	else
	{
		//setup onload function
		window.onload = moveflash;
	}
}
