var FLASH_DEBUG=false;Flash=function(D,E,C,A,B){this.swf=D||"";this.quality=E||"high";this.width=C||"100%";this.height=A||"100%";this.requiredVersion=B||6;this.id="";this.params=new Object();this.variables=new Object()};Flash.hasVersion=function(D){var C=false;if(navigator.plugins.length>0&&navigator.plugins["Shockwave Flash"]){var B=navigator.plugins["Shockwave Flash"].description;var A=B.match(/\d{1,2}/);C=(parseInt(A)>=parseInt(D))}else{if(window.ActiveXObject&&window.execScript&&navigator.userAgent.indexOf("Mac")==-1){Flash.hasActiveX=false;window.execScript("On error resume next: Flash.hasActiveX = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash."+D+"'))","VBScript");C=Flash.hasActiveX;delete Flash.hasActiveX}}return C};Flash.resizeTo=function(D,B,C){var A=document.getElementById(D);A.width=B;A.height=C};Flash.prototype.getSWF=function(){return this.swf};Flash.prototype.setSWF=function(A){this.swf=A};Flash.prototype.getQuality=function(){return this.quality};Flash.prototype.setQuality=function(A){this.quality=A};Flash.prototype.getWidth=function(){return this.width};Flash.prototype.setWidth=function(A){this.width=A};Flash.prototype.getHeight=function(){return this.height};Flash.prototype.setHeight=function(A){this.height=A};Flash.prototype.getRequiredVersion=function(){return this.requiredVersion};Flash.prototype.setRequiredVersion=function(A){this.requiredVersion=A};Flash.prototype.getId=function(){return this.id};Flash.prototype.setId=function(A){this.id=A};Flash.prototype.getParam=function(A){return this.params[A]};Flash.prototype.getParams=function(){return this.params};Flash.prototype.setParam=function(A,B){this.params[A]=B};Flash.prototype.getVariable=function(A){return this.variables[A]};Flash.prototype.getVariables=function(){return this.variables};Flash.prototype.setVariable=function(A,B){this.variables[A]=B};Flash.prototype.getVariablePairs=function(){var B=new Array();for(var A in this.getVariables()){B.push(A+"="+escape(this.getVariable(A)))}if(B.length>0){return B.join("&")}else{return null}};Flash.prototype.getParamTags=function(){var A="";for(var B in this.getParams()){A+='<param name="'+B+'" value="'+this.getParam(B)+'" />'}if(A==""){A=null}return A};Flash.prototype.getHTML=function(){var A="";if(window.ActiveXObject&&navigator.userAgent.indexOf("Mac")==-1){A+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getWidth()+'" height="'+this.getHeight()+'" id="'+this.getId()+'">';A+='<param name="movie" value="'+this.getSWF()+'" />';A+='<param name="quality" value="'+this.getQuality()+'" />';if(this.getParamTags()!=null){A+=this.getParamTags()}if(this.getVariablePairs()!=null){A+='<param name="flashVars" value="'+this.getVariablePairs()+'" />'}A+="</object>"}else{A+='<embed type="application/x-shockwave-flash" src="'+this.getSWF()+'" quality="'+this.getQuality()+'" width="'+this.getWidth()+'" height="'+this.getHeight()+'" id="'+this.getId()+'"';for(var B in this.getParams()){A+=" "+B+'="'+this.getParam(B)+'"'}if(this.getVariablePairs()!=null){A+=' flashVars="'+this.getVariablePairs()+'"'}A+="></embed>"}if(FLASH_DEBUG){A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;")}return A};Flash.prototype.render=function(A){if(Flash.hasVersion(this.getRequiredVersion())){if(A){document.getElementById(A).innerHTML=this.getHTML()}else{document.write(this.getHTML())}}else{document.write('<div class="no_flash"><p>This portion of the site requires the latest version of the Flash Player Browser Plug-in. You may download this plug-in via Adobe\'s website. Flash Player lets your web browser play video and animations made with Flash.</p>');document.write('<p align="center"><a href="http://www.adobe.com/go/getflashplayer/" target="blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" border="0" /></a></p>');document.write('<p>&nbsp;</p><p align="center">After you have installed the latest Flash Player, you may <a href="javascript:document.location.reload(true);">reload this page</a>.</p></div>')}};function flashMe(H,F,G,D,A,C,B,E){document.write('<div id="fflashcontainer_'+H+'"></div><script language="javascript" type="text/javascript">var fform_'+H+' = new Flash("'+F+'", "'+G+'", "'+D+'", "'+A+'", "'+C+'");');document.write("fform_"+H+'.setId("'+H+'");');if(B&&B!=""){document.write("fform_"+H+'.setParam("FlashVars", "'+B+'");')}if(E&&E!=""){document.write("fform_"+H+'.setParam("wmode", "'+E+'");')}document.write("fform_"+H+'.render("fflashcontainer_'+H+'");<\/script>')};
