function RenderMovie(movieName, width, height)
{
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'src', movieName,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', movieName,
			'bgcolor', '#FFFFFF',
			'name', movieName,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', movieName,
			'salign', '',
			'swliveconnect', 'true'
			); //end AC code
	}
}

function SendCommandToHeader(command)
{
    var flashObj;
    
	//Version 1
    //Get the flash movie object
   // flashObj = window.document["header"];
    //if(flashObj)
   // {
    //    flashObj.SetVariable("message", command);
   // }
//End of Version 1	
	
	//Version 2
	//Get the flash movie object
	flashObj = getFlashMovieObject("header");
	if(flashObj)
	{
        flashObj.SetVariable("message", command);
    }
   //End of Version 2
	
	
	//Version 3
	//if(window.header) window.document["header"].SetVariable("message", command);
	//if(document.header) document.header.SetVariable("message", command);
	//End of Version 3
	
	
	
}

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);
  }
}






