
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( !hasRequestedVersion ) {
	// flash is too old or we can't detect the plugin
    	alert('Incorrect version of flash, please upgrade to version 9 or above');
} else if (hasRequestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
var curl = "http://" + document.location.hostname + "/Brokers/winspreads/lc.xml";

	AC_FL_RunContent(
			"src", "/SOLogin",
			"width", "320",
			"height", "50",
			"id", "SOLogin",
			"quality", "high",
			"wmode", "transparent",
			"name", "SOLogin",
			"flashvars","curl="+curl+"",
			"allowScriptAccess","sameDomain",
			"allowFullScreen","true",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
  } 

