var SWFFix=function(){var B=[g];var e=[];var n=null;var h=null;var q=false;var m=false;var t=false;var o=false;var w=function(){var K=typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&typeof document.createElement!="undefined";var R=navigator.userAgent.toLowerCase();var I=/win/.test(R);var M=/mac/.test(R);var F=/opera/.test(R);var H=F?parseFloat(R.replace(/^.*opera ?\/?(\d+(\.\d+)?).*$/,"$1")):0;var E=!F&&/msie/.test(R);var G=E?parseFloat(R.replace(/^.*msie (\d+\.\d+).*$/,"$1")):0;var O=/webkit/.test(R);var D=O?parseFloat(R.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):0;var Q=[0,0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var L=navigator.plugins["Shockwave Flash"].description;if(typeof L!="undefined"){L=L.replace(/^.*\s+(\S+\s+\S+$)/,"$1");Q[0]=parseInt(L.replace(/^(.*)\..*$/,"$1"),10);Q[1]=parseInt(L.replace(/^.*\.(.*)\s.*$/,"$1"),10);Q[2]=/r/.test(L)?parseInt(L.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(window.ActiveXObject){var P=false;try{var N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(J){try{var N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");Q=[6,0,21];N.AllowScriptAccess="always"}catch(J){if(Q[0]==6){P=true}}if(!P){try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(J){}}}if(!P&&typeof N=="object"){var L=N.GetVariable("$version");if(typeof L!="undefined"){L=L.split(" ")[1].split(",");Q=[parseInt(L[0],10),parseInt(L[1],10),parseInt(L[2],10)]}}}}return{w3cdom:K,win:I,mac:M,opera:F,operaVersion:H,ie:E,ieVersion:G,webkit:O,webkitVersion:D,playerVersion:Q}}();var z=function(){if(!w.w3cdom){return}if(w.ie&&w.win){document.write("<script id=__ie_ondomload defer=true src=//:><\/script>");document.getElementById("__ie_ondomload").onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);s()}}}if(w.webkit){n=setInterval(function(){if(/loaded|complete/.test(document.readyState)){s()}},10)}if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",s,null)}j(s)}();function s(){if(q){return}q=true;if(n){clearInterval(n);n=null}var D=B.length;for(var E=0;E<D;E++){B[E]()}}function f(D){B[B.length]=D}function j(E){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",E,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",E,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",E)}else{if(typeof window.onload=="function"){var D=window.onload;window.onload=function(){D();E()}}else{window.onload=E}}}}}function g(){var F=e.length;for(var D=0;D<F;D++){var G=e[D].id;var E=document.getElementById(G);if(l(e[D].swfVersion)){if(w.webkit&&w.webkitVersion<312){r(E)}else{if(!m&&w.win&&w.ie&&w.ieVersion>=6){m=true;if(document.readyState=="complete"){b()}else{window.attachEvent("onload",b)}window.attachEvent("onbeforeunload",k);window.attachEvent("onunload",d)}else{if(!t&&w.opera&&w.operaVersion>=9){t=true;j(u)}}}}else{if(l([1,0,0])){if(!o&&e[D].expressInstall&&(w.win||w.mac)&&l([6,0,65])){A(e[D])}else{y(E)}}}a("#"+G,"visibility:visible")}}function C(F){var G=F.childNodes;var D=G.length;for(var E=0;E<D;E++){if(G[E].nodeType==1&&G[E].nodeName.toLowerCase()=="object"){G=G[E].childNodes;D=G.length;E=0}if(G[E].nodeType==1&&G[E].nodeName.toLowerCase()=="param"&&G[E].getAttribute("name")=="swfversion"){return G[E].getAttribute("value")}}return 0}function v(F){var G=F.childNodes;var D=G.length;for(var E=0;E<D;E++){if(G[E].nodeType==1&&G[E].nodeName.toLowerCase()=="object"){G=G[E].childNodes;D=G.length;E=0}if(G[E].nodeType==1&&G[E].nodeName.toLowerCase()=="param"&&G[E].getAttribute("name")=="expressinstall"){return G[E].getAttribute("value")}}return""}function r(J){var F=J.getElementsByTagName("object")[0];if(typeof F!="undefined"){var I=document.createElement("embed");var E=F.attributes;var H=E.length;for(var G=0;G<H;G++){if(E[G].nodeName.toLowerCase()=="data"){I.setAttribute("src",E[G].nodeValue)}else{I.setAttribute(E[G].nodeName,E[G].nodeValue)}}var K=F.childNodes;var D=K.length;for(var G=0;G<D;G++){if(K[G].nodeType==1&&K[G].nodeName.toLowerCase()=="param"){I.setAttribute(K[G].getAttribute("name"),K[G].getAttribute("value"))}}J.parentNode.replaceChild(I,J)}}function b(){var I=document.getElementsByTagName("object");var F=I.length;for(var G=0;G<F;G++){var J=I[G].childNodes;var D=J.length;var H="";for(var E=0;E<D;E++){if(J[E].nodeType==1&&J[E].nodeName.toLowerCase()=="param"){H+=J[E].outerHTML}}I[G].outerHTML=I[G].outerHTML.split(">")[0]+">"+H+I[G].innerHTML+"</object>"}}function k(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}}function d(){var G=document.getElementsByTagName("object");var E=G.length;for(var F=0;F<E;F++){G[F].style.display="none";for(var D in G[F]){if(typeof G[F][D]=="function"){G[F][D]=function(){}}}}}function u(){var F=document.getElementsByTagName("object");var D=F.length;for(var E=0;E<D;E++){if(F[E].getAttribute("type")=="application/x-shockwave-flash"){var G=F[E].cloneNode(true);F[E].parentNode.replaceChild(G,F[E])}}}function A(E){o=true;var K=document.getElementById(E.id);h=E.altContent?document.getElementById(E.altContent):x(K);var D=E.width?E.width:K.getAttribute("width");if(parseInt(D,10)<310){D="310"}var G=E.height?E.height:K.getAttribute("height");if(parseInt(G,10)<137){G="137"}var J=w.ie&&w.win?"ActiveX":"PlugIn";var H=document.title=document.title.slice(0,47)+" - Flash Player Installation";var I="MMredirectURL="+window.location+"&MMplayerType="+J+"&MMdoctitle="+H;var F=K;if(w.win&&w.ie&&K.readyState!=4){F=document.createElement("div");K.parentNode.insertBefore(F,K);K.style.display="none";window.attachEvent("onload",function(){K.parentNode.removeChild(K)})}p({data:E.expressInstall,id:"SWFFixEID",width:D,height:G},{flashvars:I},F)}function y(D){D.parentNode.replaceChild(x(D),D)}function x(H){var G=document.createElement("div");if(w.win&&w.ie){G.innerHTML=H.innerHTML}else{var E=H.getElementsByTagName("object")[0];if(typeof E!="undefined"){var I=E.childNodes;var D=I.length;for(var F=0;F<D;F++){if(!(I[F].nodeType==1&&I[F].nodeName.toLowerCase()=="param")&&!(I[F].nodeType==8)){G.appendChild(I[F].cloneNode(true))}}}}return G}function p(F,E,H){if(w.ie&&w.win){var D="";for(i in F){if(i=="data"){E.movie=F[i]}else{if(i!="classid"){D+=" "+i+'="'+F[i]+'"'}}}var G="";for(i in E){G+='<param name="'+i+'" value="'+E[i]+'" />'}H.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+D+">"+G+"</object>"}else{if(w.webkit&&w.webkitVersion<312){var I=document.createElement("embed");I.setAttribute("type","application/x-shockwave-flash");for(i in F){if(i=="data"){I.setAttribute("src",F[i])}else{if(i!="classid"){I.setAttribute(i,F[i])}}}for(i in E){if(i!="movie"){I.setAttribute(i,E[i])}}H.parentNode.replaceChild(I,H)}else{var I=document.createElement("object");I.setAttribute("type","application/x-shockwave-flash");for(i in F){if(i!="classid"){I.setAttribute(i,F[i])}}for(i in E){if(i!="movie"){c(I,i,E[i])}}H.parentNode.replaceChild(I,H)}}}function c(F,D,E){var G=document.createElement("param");G.setAttribute("name",D);G.setAttribute("value",E);F.appendChild(G)}function l(D){return(w.playerVersion[0]>D[0]||(w.playerVersion[0]==D[0]&&w.playerVersion[1]>D[1])||(w.playerVersion[0]==D[0]&&w.playerVersion[1]==D[1]&&w.playerVersion[2]>=D[2]))?true:false}function a(H,E){if(w.ie&&w.mac){return}var G=document.getElementsByTagName("head")[0];var F=document.createElement("style");F.setAttribute("type","text/css");F.setAttribute("media","screen");if(!(w.ie&&w.win)){F.appendChild(document.createTextNode(H+" {"+E+"}"))}G.appendChild(F);if(w.ie&&w.win&&document.styleSheets&&document.styleSheets.length>0){var D=document.styleSheets[document.styleSheets.length-1];if(typeof D.addRule=="object"){D.addRule(H,E)}}}return{registerObject:function(K,E,J){if(!w.w3cdom||!K){return}var I=document.getElementById(K);var H=v(I);var G={};G.id=K;a("#"+K,"visibility:hidden");if(E){var F=E.split(".");G.swfVersion=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)]}else{var D=C(I);if(D){var F=D.split(".");G.swfVersion=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)]}else{G.swfVersion=[0,0,0]}}G.expressInstall=J?J:((H!="")?H:false);e[e.length]=G},embedSWF:function(H,O,L,N,D,G,E,J,M){if(!w.w3cdom||!H||!O||!L||!N||!D){return}if(l(D.split("."))){a("#"+O,"visibility:hidden");var K=(typeof M=="object")?M:{};K.data=H;K.width=L;K.height=N;var I=(typeof J=="object")?J:{};if(typeof E=="object"){for(var F in E){if(typeof I.flashvars!="undefined"){I.flashvars+="&"+F+"="+E[F]}else{I.flashvars=F+"="+E[F]}}}f(function(){p(K,I,document.getElementById(O));a("#"+O,"visibility:visible")})}else{if(G&&!o&&(w.win||w.mac)&&l([6,0,65])){a("#"+O,"visibility:hidden");f(function(){var P={};P.id=P.altContent=O;P.width=L;P.height=N;P.expressInstall=G;A(P);a("#"+O,"visibility:visible")})}}},getFlashPlayerVersion:function(){return{major:w.playerVersion[0],minor:w.playerVersion[1],release:w.playerVersion[2]}},hasFlashPlayerVersion:function(D){return l(D.split("."))},expressInstallCallback:function(){if(o&&document.getElementById("SWFFixEID")&&h){var D=document.getElementById("SWFFixEID");D.parentNode.replaceChild(h,D);h=null;o=false}}}}();