var agt=navigator.userAgent.toLowerCase();var ie=(agt.indexOf("msie")!=-1);var win=((agt.indexOf("win")!=-1)||(agt.indexOf("32bit")!=-1));if(fuel==null||typeof(fuel)!='object'){var fuel=new Object()}if(fuel.embed==null||typeof(fuel.embed)!='object'){fuel.embed=new Object()}fuel.embed=function(src,name,width,height,bgcolor,version){if(typeof document.getElementById=='undefined')return;this.version=version;this.src=src;this.name=name;this.width=width;this.height=height;this.bgcolor=bgcolor;this.params=new Array();this.variables=new Array();this.querystring='';if(!this.params['bgcolor'])this.params['bgcolor']=this.bgcolor;if(!this.params['quality'])this.params['quality']='high';if(!this.params['loop'])this.params['loop']='false';if(!this.params['scale'])this.params['scale']='noscale';this.classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';this.etype='application/x-shockwave-flash';this.pluginspage='http://www.macromedia.com/go/getflashplayer';this.codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+',0,0,0';this.plugMoz='Shockwave Flash';this.plugIE='ShockwaveFlash.ShockwaveFlash'};fuel.embed.prototype={addParam:function(att,val){this.params[att]=val},addVar:function(att,val){this.variables[att]=val;this.querystring='?'},detect:function(redirectURL,altContent,useExpress){this.useExpress=useExpress;this.redirectURL=redirectURL;this.alt=altContent;this.installed=0;this.uptodate=0;this.usrVersion=0;if(navigator.plugins[this.plugMoz]){this.usrVersion=navigator.plugins[this.plugMoz].description;this.installed=1}else if(ie&&win){try{var ax=new ActiveXObject(this.plugIE);this.usrVersion=ax.GetVariable('$version');this.installed=1}catch(e){}}try{this.usrVersion=this.usrVersion.match(/\s?(\d+)/)[1]}catch(e){}if(this.usrVersion>=this.version){this.uptodate=1}},generate:function(){var vp=new Array();for(key in this.variables)vp.push(key+'='+this.variables[key]);this.querystring+=vp.join('&');this.movie=this.src+this.querystring;if(this.useExpress==true&&this.installed==1&&this.uptodate==0){var MMredirectURL=window.location;var MMPlayerType=(ie)?'ActiveX':'PlugIn';document.title=document.title.slice(0,47)+' - Flash Player Installation';var MMdoctitle=document.title;this.params['flashvars']='MMredirectURL='+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle;this.movie='playerProductInstall.swf'}var key;var embedParam='';var objectParam='';for(key in this.params){embedParam+=key+'="'+this.params[key]+'" ';objectParam+='\t<param name="'+key+'" value="'+this.params[key]+'" />\n'}if(this.installed==1||this.installed==undefined){this.output='\n<object classid="'+this.classid+'" width="'+this.width+'" height="'+this.height+'" id="'+this.name+'" name="'+this.name+'" codebase="'+this.codebase+'">\n';this.output+='\t<param name="src" value="'+this.movie+'" />\n';this.output+=objectParam;this.output+='\t<embed type="'+this.etype+'" src="'+this.movie+'" id="'+this.name+'" name="'+this.name+'" width="'+this.width+'" height="'+this.height+'" pluginspage="'+this.pluginspage+'" '+embedParam+'/>\n';this.output+='</object>\n'}else{if(this.redirectURL!=undefined&&this.redirectURL!=''){window.location=this.redirectURL}else{this.output=this.alt}}return this.output},write:function(e){var div=document.getElementById(e);if(this.installed!=0){div.innerHTML='';div.innerHTML=this.generate()}},debug:function(){var textarea=document.createElement('textarea');textarea.style.width='100%';textarea.style.height='50%';textarea.value='Installed: '+this.installed+'\n'+'Up to Date: '+this.uptodate+'\n'+'Use Express Install: '+this.useExpress+'\n'+'Your Version: '+this.usrVersion+'\n'+'Minimum Version: '+this.version+'\n'+this.output;document.body.appendChild(textarea)}};fuel.extend=function(destination,source){for(property in source){destination[property]=source[property]}return destination};fuel.flash=function(src,name,width,height,bgcolor,version){var obj=new fuel.embed(src,name,width,height,bgcolor,version);fuel.extend(this,obj)};var flash=fuel.flash;