/* SWFObject v2.0 <http://code.google.com/p/swfobject/> Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>*/varswfobject=function(){varZ="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;vara=function(){varl=typeofg.getElementById!=Z&&typeofg.getElementsByTagName!=Z&&typeofg.createElement!=Z&&typeofg.appendChild!=Z&&typeofg.replaceChild!=Z&&typeofg.removeChild!=Z&&typeofg.cloneNode!=Z,t=[0,0,0],n=null;if(typeofN.plugins!=Z&&typeofN.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeofG.ActiveXObject!=Z){varo=null,s=false;try{o=newActiveXObject(h+".7")}catch(k){try{o=newActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=newActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split("")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}varv=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();vare=function(){if(!a.w3cdom){return}J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");vari=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeofg.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeofg.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();functionV(){if(S){return}if(a.ie&&a.win){varm=Y("span");try{varl=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return}}S=true;if(Q){clearInterval(Q);Q=null}varj=f.length;for(vark=0;k<j;k++){f[k]()}}functionJ(i){if(S){i()}else{f[f.length]=i}}functionM(j){if(typeofG.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeofg.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeofG.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeofG.onload=="function"){vari=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}functionI(){varl=H.length;for(varj=0;j<l;j++){varm=H[j].id;if(a.pv[0]>0){vark=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}functionU(m){vark=m.getElementsByTagName(P)[0];if(k){varp=Y("embed"),r=k.attributes;if(r){varo=r.length;for(varn=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}varq=k.childNodes;if(q){vars=q.length;for(varl=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}functionF(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){vark=c(i);if(k){for(varjink){if(typeofk[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}functionD(j){C=true;varo=c(j.id);if(o){if(j.altContentId){varl=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";varn=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){vari=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}functiond(j){if(a.ie&&a.win&&j.readyState!=4){vari=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}functionb(n){varm=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{vark=n.getElementsByTagName(P)[0];if(k){varo=k.childNodes;if(o){varj=o.length;for(varl=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}returnm}functionR(AE,AC,q){varp,t=c(q);if(typeofAE.id==Z){AE.id=q}if(a.ie&&a.win){varAD="";for(varzinAE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=""+z+'="'+AE[z]+'"'}}}}}varAB="";for(varyinAC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){varAA=Y("embed");AA.setAttribute("type",W);for(varxinAE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(varwinAC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{vars=Y(P);s.setAttribute("type",W);for(varvinAE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(varuinAC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}returnp}functionE(k,i,j){varl=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}functionc(i){returng.getElementById(i)}functionY(i){returng.createElement(i)}functionO(k){varj=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}functionA(m,j){if(a.ie&&a.mac){return}varl=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeofg.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeofg.styleSheets!=Z&&g.styleSheets.length>0){vari=g.styleSheets[g.styleSheets.length-1];if(typeofi.addRule==P){i.addRule(m,j)}}}functionX(k,i){varj=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return}varj={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){vari=null;if(a.w3cdom&&S){varj=c(l);if(j){vark=j.getElementsByTagName(P)[0];if(!k||(k&&typeofj.SetVariable!=Z)){i=j}else{if(typeofk.SetVariable!=Z){i=k}}}}returni},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return}r+="";t+="";if(O(j)){X(u,false);varq=(typeofs==P)?s:{};q.data=n;q.width=r;q.height=t;varo=(typeofp==P)?p:{};if(typeofk==P){for(varlink){if(k[l]!=Object.prototype[l]){if(typeofo.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){vari={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){returnR(k,j,i)}else{returnundefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){varl=g.location.search||g.location.hash;if(m==null){returnl}if(l){vark=l.substring(1).split("&");for(varj=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){returnk[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){vari=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();