// DATE: 12/28/2007
var FLASH_DEBUG=false;Flash=function(a,b,c,d,e){this.swf=a||"";this.quality=b||"high";this.width=c||"100%";this.height=d||"100%";this.requiredVersion=e||6;this.id="";this.params=new Object();this.variables=new Object()};Flash.hasVersion=function(a){var b=false;if(navigator.plugins.length>0&&navigator.plugins["Shockwave Flash"]){var c=navigator.plugins["Shockwave Flash"].description;var d=c.match(/\d{1,2}/);b=(parseInt(d)>=parseInt(a))}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."+a+"'))","VBScript");b=Flash.hasActiveX;delete Flash.hasActiveX}return b};Flash.resizeTo=function(a,w,h){var b=document.getElementById(a);b.width=w;b.height=h};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(q){this.quality=q};Flash.prototype.getWidth=function(){return this.width};Flash.prototype.setWidth=function(w){this.width=w};Flash.prototype.getHeight=function(){return this.height};Flash.prototype.setHeight=function(h){this.height=h};Flash.prototype.getRequiredVersion=function(){return this.requiredVersion};Flash.prototype.setRequiredVersion=function(v){this.requiredVersion=v};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 a=new Array();for(var b in this.getVariables()){a.push(b+"="+escape(this.getVariable(b)))}if(a.length>0){return a.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 Macromedia\'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.macromedia.com/go/getflashplayer/" target="blank"><img src="http://www.macromedia.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(a,b,c,d,e,f,g,h){document.write('<div id="fflashcontainer_'+a+'"><'+'/div><script language="javascript" type="text/javascript">var fform_'+a+' = new Flash("'+b+'", "'+c+'", "'+d+'", "'+e+'", "'+f+'");');document.write('fform_'+a+'.setId("'+a+'");');if(g&&g!='')document.write('fform_'+a+'.setParam("FlashVars", "'+g+'");');if(h&&h!='')document.write('fform_'+a+'.setParam("wmode", "'+h+'");');document.write('fform_'+a+'.render("fflashcontainer_'+a+'");</'+'script>')}