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