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 = ''; newTags += ''; newTags += ''; newTags += ''; newTags += ''; newTags += ''; if(varsArry.length>5){ newTags += ''; } newTags += '5){ newTags += 'FlashVars="'; for(i=5;i'; 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 = ''; newTags += ''; newTags += ''; 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 = ''; newTags += ''; newTags += ''; newTags += '' if(arguments.length>6){ newTags += ''; } newTags += '6){ newTags += 'FlashVars="'; for(i=6;i'; 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 = ''; newTags += ''; newTags += ''; 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); } }