Array.prototype.indexOf=function(c,b){for(var a=this.length,b=b<0?b+a<0?0:b+a:b||0;b<a&&this[b]!==c;b++){}return a<=b?-1:b};$.fn.extend({flash:function(c){var m,g,a;function l(f,e){return" "+f+'="'+e+'"'}function d(f,e){return'<param name="'+f+'" value="'+e+'" />'}var b=navigator.plugins;if(b&&b.length){var i=b["Shockwave Flash"];if(i){m=true;if(i.description){g=i.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")}}if(b["Shockwave Flash 2.0"]){m=true;g="2.0.0.11"}}else{try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(j){try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=[6,0,21];m=true}catch(j){}try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(j){}}if(h!=null){g=h.GetVariable("$version").split(" ")[1].split(",");m=true;a=true}}$(this).each(function(){if(m){var t=$(this),r=$.extend({id:t.attr("id"),"class":t.attr("class"),width:t.width(),height:t.height(),src:t.attr("href"),classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",pluginspace:"http://get.adobe.com/flashplayer",availattrs:["id","class","width","height","src"],availparams:["src","bgcolor","quality","allowscriptaccess","allowfullscreen","flashvars","wmode"],version:"9.0.24"},c),p=r.availattrs,f=r.availparams,w=r.version.split("."),u="<object";if(!r.codebase){r.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+w.join(",")}if(r.express){for(var q in g){if(parseInt(g[q])>parseInt(w[q])){break}if(parseInt(g[q])<parseInt(w[q])){r.src=r.express}}}if(r.flashvars){r.flashvars=unescape($.param(r.flashvars))}p=a?p.concat(["classid","codebase"]):p.concat(["pluginspage"]);for(k in p){var v=(k==p.indexOf("src"))?"data":p[k];u+=r[p[k]]?l(v,r[p[k]]):""}u+=">";for(k in f){var v=(k==f.indexOf("src"))?"movie":f[k];u+=r[f[k]]?d(v,r[f[k]]):""}u+="</object>";t.replaceWith(u)}return this})}});