QueryString_Parse();
var myDeeplink = unescape(QueryString("deeplink") );


var deepString = '';
if(myDeeplink != "null"){
	deepString = "?deeplink="+myDeeplink;
}


// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);


// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {  // if we've detected an acceptable version
	/*
    var oeTags = '<object type="application/x-shockwave-flash"' // classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ ' data = "teaser.swf"'
    + ' width="900" height="580">'
    + '<param name="movie" value="teaser.swf' + deepString + '" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />'
  + '<embed src="teaser.swf' + deepString + '" quality="high" bgcolor="#000000" '
    + 'width="900" height="580" name="teaser" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>' 
    + '<\/object>';
	*/
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="100%" width="100%"><embed align="middle" allowScriptAccess="sameDomain" bgcolor="#000000" height="100%" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="main.swf'+deepString+'" swliveconnect="false" type="application/x-shockwave-flash" width="100%"></embed><param name="allowScriptAccess" value="sameDomain"><param name="bgcolor" value="#000000"><param name="menu" value="false"><param name="movie" value="main.swf'+deepString+'"><param name="quality" value="high"></object>';
    //document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	//alert(oeTags);
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here.'
  	+ 'This content requires the Macromedia Flash Player.'
   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
    //document.write(alternateContent);  // insert non-flash content
	window.location='getflash.html';
  }