
function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("contentcontent");
  var lHeight = xHeight("leftcontent");
  var rHeight = xHeight("rightcontent");


  // Find the maximum height
  var maxHeight =
    Math.max(cHeight, Math.max(lHeight, rHeight));

  // Assign maximum height to all columns
  xHeight("content", maxHeight);
  xHeight("left_col", maxHeight);
  xHeight("right_col", maxHeight);

  // Show the footer
  xShow("bottom");
}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}






	function setBgMusic(file){

	if (navigator.appName == "Microsoft Internet Explorer") {
	document.write('<bgsound src=" '+ file +' " LOOP="true">');
	}
	//else {
	//document.write('<object width="300" height="42"><param name="src" value=" '+file+' "><param name="autoplay" value="true"><param name="controller" value="true"><param name="bgcolor" value="#FF9900"><embed src="file" autostart="true" loop="true" width="300" height="42" controller="true" bgcolor="#FF9900"></embed></object>');
	//document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src=" '+ file +' " AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="1" HEIGHT="1" WIDTH="1" loop="true"><br>');
	//}
	// End -->
}
