var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var neededVersion=(varsArry[4]==null)?0:varsArry[4];
hasReqestedVersion=(parseInt(versionMajor)>=parseInt(neededVersion));
var secureNonSecure=window.location.protocol;
function writeFlashWithVars(swfFile,flatFile,flashDiv,varsArry) {
if (hasReqestedVersion) {
var newTags = '';
document.getElementById(flashDiv).innerHTML=newTags; // embed the Flash Content SWF when all tests are passed
} else {
if (varsArry[3] == "window" ){ // flash is too old or we can't detect the plugin
document.location = flatFile;
} else if (varsArry[3] == "include" ){
document.getElementById(flashDiv).innerHTML='';
} else {
//if(typeof hasImgMap!="undefined")
document.getElementById(flashDiv).innerHTML='';
//else document.getElementById(flashDiv).innerHTML='';
}
}
}
function writeFlashDiv(file,noFlash,whchDiv,varsArry) {
if (hasReqestedVersion) {
var newTags = '';
document.getElementById(whchDiv).innerHTML=(newTags); // embed the Flash Content SWF when all tests are passed
} else { // flash is too old or we can't detect the plugin
document.getElementById(whchDiv).innerHTML=noFlash;
}
}
function writeFlashTransparent(file,width,height,background,noFlash,redirect) {
if (hasReqestedVersion) {
var newTags = '';
document.write(newTags); // embed the Flash Content SWF when all tests are passed
} else { // flash is too old or we can't detect the plugin
(arguments[5] && redirect == "window" ) ? document.location = noFlash : document.write(noFlash);
}
}
function writeFlash8(file,width,height,background,noFlash,redirect) {
if (hasReqestedVersion) {
var newTags = '';
document.write(newTags); // embed the Flash Content SWF when all tests are passed
} else { // flash is too old or we can't detect the plugin
(arguments[5] && redirect == "window" ) ? document.location = noFlash : document.write(noFlash);
}
}