// This function is called when the body is loaded and it has effects only on non IE browsers.
function adjustBackground(){	
	if (navigator.appName.indexOf("Microsoft Internet")==-1){// If it is not IE
		setBackground();
	}
}
// This function is called from Flash and only has effects when the browser is IE.
function adjustBackgroundIE(){
	if (navigator.appName.indexOf("Microsoft Internet")!=-1){// If it is not IE
		setBackground();
	}
}

function setBackground(){
	var back=window.document.getElementById('back');	
	back.style.width="100%";
	back.style.height="100%";	
	var background=getFlashMovieObject('background');
	background.setAttribute("width", "100%");		
	//background.SetVariable("/background/:playEffects", "true");
}	

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
