(function(d){var b=document,e="object",c=window,a="";d.flashPlayerVersion=(function(){var j,l,g,h,m=false,f="ShockwaveFlash.ShockwaveFlash";if(!(j=navigator.plugins["Shockwave Flash"])){try{l=new ActiveXObject(f+".7")}catch(g){try{l=new ActiveXObject(f+".6");j=[6,0,21];l.AllowScriptAccess="always"}catch(h){if(j&&j[0]===6){m=true}}if(!m){try{l=new ActiveXObject(f)}catch(i){j="X 0,0,0"}}}if(!m&&l){try{j=l.GetVariable("$version")}catch(k){}}}else{j=j.description}j=j.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[j[1]*1,j[3]*1,j[5]*1]}());d.flashExpressInstaller="expressInstall.swf";d.hasFlashPlayer=(d.flashPlayerVersion[0]!==0);d.hasFlashPlayerVersion=function(f){var g=d.flashPlayerVersion;f=(/string|number/.test(typeof f))?f.toString().split("."):f;f=[f.major||f[0]||g[0],f.minor||f[1]||g[1],f.release||f[2]||g[2]];return(d.hasFlashPlayer&&(f[0]>g[0]||(f[0]===g[0]&&(f[1]>g[1]||(f[1]===g[1]&&f[2]>=g[2])))))};d.flash=function(f){if(!d.hasFlashPlayer){return false}var p=f.swf||a,h=f.params||{},n=b.createElement("body"),q,g,k,o,i,j,l,m;f.height=f.height||180;f.width=f.width||320;if(f.hasVersion&&!d.hasFlashPlayerVersion(f.hasVersion)){d.extend(f,{id:"SWFObjectExprInst",height:Math.max(f.height,137),width:Math.max(f.width,214)});p=f.expressInstaller||d.flashExpressInstaller;h={flashvars:{MMredirectURL:location.href,MMplayerType:(d.browser.msie&&d.browser.win)?"ActiveX":"PlugIn",MMdoctitle:b.title.slice(0,47)+" - Flash Player Installation"}}}if(typeof h===e){if(f.flashvars){h.flashvars=f.flashvars}if(f.wmode){h.wmode=f.wmode}}for(i in (j=["expressInstall","flashvars","hasVersion","params","swf","wmode"])){delete f[j[i]]}q=[];for(i in f){if(typeof f[i]===e){g=[];for(j in f[i]){g.push(j.replace(/([A-Z])/,"-$1").toLowerCase()+":"+f[i][j]+";")}f[i]=g.join(a)}q.push(i+'="'+f[i]+'"')}f=q.join(" ");if(typeof h===e){q=[];for(i in h){if(typeof h[i]===e){g=[];for(j in h[i]){if(typeof h[i][j]===e){k=[];for(l in h[i][j]){if(typeof h[i][j][l]===e){o=[];for(m in h[i][j][l]){o.push([m.replace(/([A-Z])/,"-$1").toLowerCase(),":",h[i][j][l][m],";"].join(a))}h[i][j][l]=o.join(a)}k.push([l,"{",h[i][j][l],"}"].join(a))}h[i][j]=k.join(a)}g.push([j,"=",c.escape(h[i][j])].join(a))}h[i]=g.join("&amp;")}q.push(['<PARAM NAME="',i,'" VALUE="',h[i],'">'].join(a))}h=q.join(a)}if(!(/style=/.test(f))){f+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(f))){f=f.replace(/style="/,'style="vertical-align:text-top;')}if(d.browser.msie){f+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';h='<PARAM NAME="movie" VALUE="'+p+'">'+h}else{f+=' type="application/x-shockwave-flash" data="'+p+'"'}n.innerHTML=["<OBJECT ",f,">",h,"</OBJECT>"].join(a);return d(n.firstChild)};d.fn.flash=function(g){if(!d.hasFlashPlayer){return this}var h=0,f;while((f=this.eq(h++))[0]){f.html(d.flash(d.extend({},g)));if(b.getElementById("SWFObjectExprInst")){h=this.length}}return this}}(jQuery));