// set up and use swfobject to emebed flash in the homepage
var flashvars = {
	SiteRoot: "/",
	Debug: "false",
    xmlPath: "assets/xml/CirclesV.xhtml",
    //xmlPath: "assets/xml/Circles.xml",
	DeepLink: "" 
};
var params = {
    allowScriptAccess: "all",
    play: "true",
    type: "application/x-shockwave-flash",
    wmode: "transparent",
    quality: "high",
    bgcolor: "#FFFFFF"
}; 
var attributes = {
    align: "left",
    id: "Serono_HomePage",
    name: "hero"
};

/*var videoHostParams = {
    allowScriptAccess: "all",
    play: "true",
    type: "application/x-shockwave-flash",
    wmode: "transparent",
    quality: "high",
    bgcolor: "#FFFFFF"
}; 

var videoHostAttributes = {
    align: "left",
    name: "hostPlayer"
};

var videoHostFlashvars = {
	xmlPath: "/assets/flash/xml/videoHosts.xml",
    testImagePath:"/assets/images/home/2mB.png"
};*/

/*function loadSectionHost(sectionId)
{
    
    if(navigator.appName.indexOf("Microsoft") != -1) 
    {
       myflash = window.hostPlayer;
    }
    else 
    {
       myflash = window.document.hostPlayer;
    }
        
    myflash.playVideo();
}*/

//swfobject.embedSWF("/assets/flash/VideoHostPlayer.swf", "hostPlayer", "420", "486", "9.0.28", "playerProductInstall.swf", videoHostFlashvars, videoHostParams, videoHostAttributes);
swfobject.embedSWF("/assets/flash/Serono_HomePageV.swf", "hero", "944", "330", "9.0.28", "playerProductInstall.swf", flashvars, params, attributes);

/* Initialize everything */
/*$(document).ready(function() { 
});

window.onload = function() 
{
  if(navigator.appName.indexOf("Microsoft") != -1) 
  {
       myflash = window.hostPlayer;
  }
  else 
  {
       myflash = window.document.hostPlayer;
  }
}*/
    
	


