var swfobject=function(){var w="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var x=function(){var b=typeof doc.getElementById!=w&&typeof doc.getElementsByTagName!=w&&typeof doc.createElement!=w&&typeof doc.appendChild!=w&&typeof doc.replaceChild!=w&&typeof doc.removeChild!=w&&typeof doc.cloneNode!=w,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=w&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof win.ActiveXObject!=w){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);/*@cc_on ie=true;@if(@_win32)windows=true;@elif(@_mac)mac=true;@end@*/return{w3cdom:b,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var y=function(){if(!x.w3cdom){return}addDomLoadEvent(main);if(x.ie&&x.win){try{doc.write("<scr"+"ipt id=__ie_ondomload defer=true src=//:></scr"+"ipt>");var s=getElementById("__ie_ondomload");if(s){s.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);callDomLoadFunctions()}}}}catch(e){}}if(x.webkit&&typeof doc.readyState!=w){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=w){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function callDomLoadFunctions(){if(isDomLoaded){return}if(x.ie&&x.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var a=domLoadFnArr.length;for(var i=0;i<a;i++){domLoadFnArr[i]()}}function addDomLoadEvent(a){if(isDomLoaded){a()}else{domLoadFnArr[domLoadFnArr.length]=a}}function addLoadEvent(a){if(typeof win.addEventListener!=w){win.addEventListener("load",a,false)}else if(typeof doc.addEventListener!=w){doc.addEventListener("load",a,false)}else if(typeof win.attachEvent!=w){win.attachEvent("onload",a)}else if(typeof win.onload=="function"){var b=win.onload;win.onload=function(){b();a()}}else{win.onload=a}}function main(){var a=regObjArr.length;for(var i=0;i<a;i++){var b=regObjArr[i].id;if(x.pv[0]>0){var c=getElementById(b);if(c){regObjArr[i].width=c.getAttribute("width")?c.getAttribute("width"):"0";regObjArr[i].height=c.getAttribute("height")?c.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(x.webkit&&x.webkit<312){fixParams(c)}setVisibility(b,true)}else if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(x.win||x.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(c)}}}else{setVisibility(b,true)}}}function fixParams(b){var d=b.getElementsByTagName(OBJECT)[0];if(d){var e=createElement("embed"),a=d.attributes;if(a){var f=a.length;for(var i=0;i<f;i++){if(a[i].nodeName.toLowerCase()=="data"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=d.childNodes;if(c){var g=c.length;for(var j=0;j<g;j++){if(c[j].nodeType==1&&c[j].nodeName.toLowerCase()=="param"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}b.parentNode.replaceChild(e,b)}}function fixObjectLeaks(b){if(x.ie&&x.win&&hasPlayerVersion("8.0.0")){win.attachEvent("onunload",function(){var a=getElementById(b);if(a){for(var i in a){if(typeof a[i]=="function"){a[i]=function(){}}}a.parentNode.removeChild(a)}})}}function showExpressInstall(a){isExpressInstallActive=true;var b=getElementById(a.id);if(b){if(a.altContentId){var c=getElementById(a.altContentId);if(c){storedAltContent=c;storedAltContentId=a.altContentId}}else{storedAltContent=abstractAltContent(b)}if(!(/%$/.test(a.width))&&parseInt(a.width,10)<310){a.width="310"}if(!(/%$/.test(a.height))&&parseInt(a.height,10)<137){a.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var d=x.ie&&x.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+d+"&MMdoctitle="+dt,replaceId=a.id;if(x.ie&&x.win&&b.readyState!=4){var e=createElement("div");replaceId+="SWFObjectNew";e.setAttribute("id",replaceId);b.parentNode.insertBefore(e,b);b.style.display="none";win.attachEvent("onload",function(){b.parentNode.removeChild(b)})}createSWF({data:a.expressInstall,id:EXPRESS_INSTALL_ID,width:a.width,height:a.height},{flashvars:fv},replaceId)}}function displayAltContent(a){if(x.ie&&x.win&&a.readyState!=4){var b=createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(abstractAltContent(a),b);a.style.display="none";win.attachEvent("onload",function(){a.parentNode.removeChild(a)})}else{a.parentNode.replaceChild(abstractAltContent(a),a)}}function abstractAltContent(a){var b=createElement("div");if(x.win&&x.ie){b.innerHTML=a.innerHTML}else{var d=a.getElementsByTagName(OBJECT)[0];if(d){var c=d.childNodes;if(c){var e=c.length;for(var i=0;i<e;i++){if(!(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param")&&!(c[i].nodeType==8)){b.appendChild(c[i].cloneNode(true))}}}}}return b}function createSWF(a,b,c){var r,el=getElementById(c);if(typeof a.id==w){a.id=c}if(x.ie&&x.win){var d="";for(var i in a){if(a[i]!=Object.prototype[i]){if(i=="data"){b.movie=a[i]}else if(i.toLowerCase()=="styleclass"){d+=' class="'+a[i]+'"'}else if(i!="classid"){d+=' '+i+'="'+a[i]+'"'}}}var f="";for(var j in b){if(b[j]!=Object.prototype[j]){f+='<param name="'+j+'" value="'+b[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+d+'>'+f+'</object>';fixObjectLeaks(a.id);r=getElementById(a.id)}else if(x.webkit&&x.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in a){if(a[k]!=Object.prototype[k]){if(k=="data"){e.setAttribute("src",a[k])}else if(k.toLowerCase()=="styleclass"){e.setAttribute("class",a[k])}else if(k!="classid"){e.setAttribute(k,a[k])}}}for(var l in b){if(b[l]!=Object.prototype[l]){if(l!="movie"){e.setAttribute(l,b[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in a){if(a[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",a[m])}else if(m!="classid"){o.setAttribute(m,a[m])}}}for(var n in b){if(b[n]!=Object.prototype[n]&&n!="movie"){createObjParam(o,n,b[n])}}el.parentNode.replaceChild(o,el);r=o}return r}function createObjParam(a,b,c){var p=createElement("param");p.setAttribute("name",b);p.setAttribute("value",c);a.appendChild(p)}function getElementById(a){return doc.getElementById(a)}function createElement(a){return doc.createElement(a)}function hasPlayerVersion(a){var b=x.pv,v=a.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10);v[2]=parseInt(v[2],10);return(b[0]>v[0]||(b[0]==v[0]&&b[1]>v[1])||(b[0]==v[0]&&b[1]==v[1]&&b[2]>=v[2]))?true:false}function createCSS(a,b){if(x.ie&&x.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(x.ie&&x.win)&&typeof doc.createTextNode!=w){s.appendChild(doc.createTextNode(a+" {"+b+"}"))}h.appendChild(s);if(x.ie&&x.win&&typeof doc.styleSheets!=w&&doc.styleSheets.length>0){var c=doc.styleSheets[doc.styleSheets.length-1];if(typeof c.addRule==OBJECT){c.addRule(a,b)}}}function setVisibility(a,b){var v=b?"visible":"hidden";if(isDomLoaded){getElementById(a).style.visibility=v}else{createCSS("#"+a,"visibility:"+v)}}function getTargetVersion(a){if(!a)return 0;var c=a.childNodes;var b=c.length;for(var i=0;i<b;i++){if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="object"){c=c[i].childNodes;b=c.length;i=0}if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param"&&c[i].getAttribute("name")=="swfversion"){return c[i].getAttribute("value")}}return 0}function getExpressInstall(a){if(!a)return"";var c=a.childNodes;var b=c.length;for(var i=0;i<b;i++){if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="object"){c=c[i].childNodes;b=c.length;i=0}if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param"&&c[i].getAttribute("name")=="expressinstall"){return c[i].getAttribute("value")}}return""}return{registerObject:function(a,b,c){if(!x.w3cdom||!a){return}var d=document.getElementById(a);var e=getExpressInstall(d);var f={};f.id=a;f.swfVersion=b?b:getTargetVersion(d);f.expressInstall=c?c:((e!="")?e:false);regObjArr[regObjArr.length]=f;setVisibility(a,false)},getObjectById:function(a){var r=null;if(x.w3cdom&&isDomLoaded){var o=getElementById(a);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=w)){r=o}else if(typeof n.SetVariable!=w){r=n}}}return r},embedSWF:function(b,c,d,e,f,g,h,j,k){if(!x.w3cdom||!b||!c||!d||!e||!f){return}d+="";e+="";if(hasPlayerVersion(f)){setVisibility(c,false);var l=(typeof k==OBJECT)?k:{};l.data=b;l.width=d;l.height=e;var m=(typeof j==OBJECT)?j:{};if(typeof h==OBJECT){for(var i in h){if(h[i]!=Object.prototype[i]){if(typeof m.flashvars!=w){m.flashvars+="&"+i+"="+h[i]}else{m.flashvars=i+"="+h[i]}}}}addDomLoadEvent(function(){createSWF(l,m,c);if(l.id==c){setVisibility(c,true)}})}else if(g&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(x.win||x.mac)){setVisibility(c,false);addDomLoadEvent(function(){var a={};a.id=a.altContentId=c;a.width=d;a.height=e;a.expressInstall=g;showExpressInstall(a)})}},getFlashPlayerVersion:function(){return{major:x.pv[0],minor:x.pv[1],release:x.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(a,b,c){if(x.w3cdom&&isDomLoaded){return createSWF(a,b,c)}else{return undefined}},createCSS:function(a,b){if(x.w3cdom){createCSS(a,b)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(a){var q=doc.location.search||doc.location.hash;if(a==null){return q}if(q){var b=q.substring(1).split("&");for(var i=0;i<b.length;i++){if(b[i].substring(0,b[i].indexOf("="))==a){return b[i].substring((b[i].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var a=getElementById(EXPRESS_INSTALL_ID);if(a){a.parentNode.replaceChild(storedAltContent,a);if(storedAltContentId){setVisibility(storedAltContentId,true);if(x.ie&&x.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();
