/**
 * @author alex.akass
 */
var requiredMajorVersion = 9;
var requiredMinorVersion = 0;
var requiredRevision = 124;
var hasProductInstall = DetectFlashVer(6, 0, 65);
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if ( hasProductInstall && !hasRequestedVersion ) {
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;
	AC_FL_RunContent(
		"src", "playerProductInstall",
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
		"width", "556px",
		"height", "302px",
		"align", "middle",
		"id", "main",
		"wmode", "transparent",
		"quality", "high",
		"title", "Getset slideshow",
		"name", "main",
		"allowScriptAccess","sameDomain",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} else if (hasRequestedVersion) {
	AC_FL_RunContent(
			"src", "/assets/v2/flash/home-slideshow/main",
			"width", "556px",
			"height", "302px",
			"align", "middle",
			"id", "main",
			"quality", "high",
			"wmode", "transparent",
			"name", "main",
			"title", "Getset slideshow",
			"flashVars","url=/assets/reserved/xml/content_en.xml&css=/assets/v2/flash/home-slideshow/css/screen.css",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
  } else {  // flash is too old or we can't detect the plugin
        var alternateContent = '<a href="http://www.adobe.com/go/getflash" title="To view this correctly you will need to install the latest version of Adobe Flash Media Player." >'+
								'<img id="flash_replacement_image" src="/assets/v2/images/flash_replacement_en.png" alt="To view this correctly you will need to install the latest version of Adobe Flash Media Player." width="548" height="309" />'+
							'</a>';
    document.write(alternateContent);  // insert non-flash content

  }
		
