function FlashGordon(src,id,width,height,reqVersion,alternative,urlParameter){this.str="";this.src=src;this.id=id;this.width=width;this.height=height;this.reqVersion=reqVersion;this.alternative=this.initAlternative(alternative);this.revAlternative;this.wrongRevision;this.urlParameter=urlParameter;this.options={"width":this.width,"height":this.height,"quality":"high","allowScriptAccess":"always","allowFullScreen":"true","movie":this.src,"menu":"false","id":this.id,"src":this.src,"classid":"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","codebase":document.location.protocol+"//fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab","name":this.id,"type":"application/x-shockwave-flash","pluginspage":"http://www.adobe.com/go/getflashplayer","wmode":"transparent","bgcolor":"#fff"
};this.objectIncludes="id,classid,codebase,width,height";this.objectExcludes="src,name,type,pluginspage";this.embedExcludes="movie,id,classid,codebase";}
FlashGordon.prototype={write:function(options,deprecated){if(this.checkReqVersion()){if(this.urlParameter){this.options.FlashVars=this.urlParameter;this.options.src=this.src+"?"+this.urlParameter;}
if(options&&typeof options==="object"){for(var i in options){if(typeof options[i]!=="undefined"){this.options[i]=options[i];}}}
if(options&&typeof options==="string"){this.options.bgcolor=options;if(deprecated&&typeof deprecated==="string"){this.options.wmode=deprecated;}}
document.write("<object "+this.writeParameters("objectIncludes")+">"+this.writeParameters("object")+"<embed "+this.writeParameters("embed")+" /></object>");this.checkAlternative("none");}else{this.checkAlternative("block");}},checkReqVersion:function(){if(typeof this.reqVersion=="string"&&this.reqVersion.indexOf(".")>-1){var version=this.reqVersion.split(".");this.reqVersion={"major":parseInt(version[0],10),"minor":parseInt(version[1],10),"revision":parseInt(version[2],10)};}else{this.reqVersion={"major":this.reqVersion,"minor":0,"revision":0};}
var fv=this.getFlashVersion();var rv=this.reqVersion;this.wrongRevision=(fv.major==rv.major&&fv.revision<=rv.revision)?true:false;if(fv.major>=rv.major&&document.location.search.match(/warning=ignore/g)){return true;}else{return(fv.major>rv.major||(fv.major==rv.major&&fv.minor>rv.minor)||(fv.major==rv.major&&fv.minor==rv.minor&&fv.revision>=rv.revision))?true:false;}},initAlternative:function(alternative){if(typeof alternative==="object"){this.revAlternative=(document.getElementById(alternative.revision)?document.getElementById(alternative.revision):alternative.revision);return(document.getElementById(alternative.major)?document.getElementById(alternative.major):alternative.major);}else if(typeof alternative==="string"){return(document.getElementById(alternative)?document.getElementById(alternative):alternative);}},checkAlternative:function(display){var el;if(this.wrongRevision){el=this.revAlternative;this.alternative.style.display="none";}else{el=this.alternative;this.alternative.style.display="none";this.revAlternative?this.revAlternative.style.display="none":false;}
if(typeof el==="object"){el.style.display=display;}else if((typeof el==="string")&&(display=="block")){location.href=el;}},writeParameters:function(type){var value; var str="";for(var param in this.options){if(typeof this.options[param]!=="undefined"){value=this.options[param];if(type=="objectIncludes"){if(this.objectIncludes.match(param)){str+=" "+param+"=\""+value+"\"";}}else{if(!this[type+"Excludes"].match(param)){if(type=="object"){if(!this.objectIncludes.match(param)){str+="<param name=\""+param+"\" value=\""+value+"\"/>";}}else{str+=" "+param+"=\""+value+"\"";}}}}}
return(str);},getFlashVersion:function(){var flashVersion=0;var agent=navigator.userAgent.toLowerCase();if(agent.indexOf("mozilla/3")!=-1&&agent.indexOf("msie")==-1){return flashVersion;}
if(navigator.plugins!==null&&navigator.plugins.length>0){var flashPlugin=navigator.plugins["Shockwave Flash"];if(typeof flashPlugin==="object"){var desc=flashPlugin.description.replace(/Shockwave Flash /g,"").replace(/ r/g,".").split(".");flashVersion={"major":desc[0],"minor":desc[1],"revision":desc[2]};}}else if((agent.indexOf("msie")!=-1)&&(parseInt(navigator.appVersion,10)>=4)&&(agent.indexOf("win")!=-1)&&(agent.indexOf("16bit")==-1)){flashVersion=this.getIEFlashVersion();}
return flashVersion;},/**/
getIEFlashVersion:function(){var swfObj,flashVersion;for(i=0;i<12;i++){try{swfObj=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);}catch(e){}
if(swfObj){var desc=swfObj.GetVariable("$version").split(" ")[1].split(",");flashVersion={"major":desc[0],"minor":desc[1],"revision":desc[2]};}}
return(flashVersion);}};