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=[],objIdArr=[],listenersArr=[],script,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,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&&!(typeof nav.mimeTypes!=w&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){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>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}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 checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);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){addListener(win,"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=="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=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}b.parentNode.replaceChild(e,b)}}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";var f=function(){b.parentNode.removeChild(b)};addListener(win,"onload",f)}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";var c=function(){a.parentNode.removeChild(a)};addListener(win,"onload",c)}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=="PARAM")&&!(c[i].nodeType==8)){b.appendChild(c[i].cloneNode(true))}}}}}return b}function createSWF(a,b,c){var r,el=getElementById(c);if(el){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.toLowerCase()=="data"){b.movie=a[i]}else if(i.toLowerCase()=="styleclass"){d+=' class="'+a[i]+'"'}else if(i.toLowerCase()!="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>';objIdArr[objIdArr.length]=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.toLowerCase()=="data"){e.setAttribute("src",a[k])}else if(k.toLowerCase()=="styleclass"){e.setAttribute("class",a[k])}else if(k.toLowerCase()!="classid"){e.setAttribute(k,a[k])}}}for(var l in b){if(b[l]!=Object.prototype[l]){if(l.toLowerCase()!="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.toLowerCase()!="classid"){o.setAttribute(m,a[m])}}}for(var n in b){if(b[n]!=Object.prototype[n]&&n.toLowerCase()!="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 removeSWF(a){var b=getElementById(a);if(b&&(b.nodeName=="OBJECT"||b.nodeName=="EMBED")){if(x.ie&&x.win){if(b.readyState==4){removeObjectInIE(a)}else{win.attachEvent("onload",function(){removeObjectInIE(a)})}}else{b.parentNode.removeChild(b)}}}function removeObjectInIE(a){var b=getElementById(a);if(b){for(var i in b){if(typeof b[i]=="function"){b[i]=null}}b.parentNode.removeChild(b)}}function getElementById(a){var b=null;try{b=doc.getElementById(a)}catch(e){}return b}function createElement(a){return doc.createElement(a)}function addListener(a,b,c){a.attachEvent(b,c);listenersArr[listenersArr.length]=[a,b,c]}function hasPlayerVersion(a){var b=x.pv,v=a.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;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)){getElementById(a).style.visibility=v}else{createCSS("#"+a,"visibility:"+v)}}function urlEncodeIfNecessary(s){var a=/[\\\"<>\.;]/;var b=a.exec(s)!=null;return b?encodeURIComponent(s):s}var z=function(){if(x.ie&&x.win){window.attachEvent("onunload",function(){var a=listenersArr.length;for(var i=0;i<a;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var b=objIdArr.length;for(var j=0;j<b;j++){removeSWF(objIdArr[j])}for(var k in x){x[k]=null}x=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(a,b,c){if(!x.w3cdom||!a||!b){return}var d={};d.id=a;d.swfVersion=b;d.expressInstall=c?c:false;regObjArr[regObjArr.length]=d;setVisibility(a,false)},getObjectById:function(a){var r=null;if(x.w3cdom){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,l,m){if(!x.w3cdom||!b||!c||!d||!e||!f){return}d+="";e+="";if(hasPlayerVersion(f)){setVisibility(c,false);var n={};if(m&&typeof m===OBJECT){for(var i in m){if(m[i]!=Object.prototype[i]){n[i]=m[i]}}}n.data=b;n.width=d;n.height=e;var o={};if(l&&typeof l===OBJECT){for(var j in l){if(l[j]!=Object.prototype[j]){o[j]=l[j]}}}if(h&&typeof h===OBJECT){for(var k in h){if(h[k]!=Object.prototype[k]){if(typeof o.flashvars!=w){o.flashvars+="&"+k+"="+h[k]}else{o.flashvars=k+"="+h[k]}}}}addDomLoadEvent(function(){createSWF(n,o,c);if(n.id==c){setVisibility(c,true)}})}else if(g&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(x.win||x.mac)){isExpressInstallActive=true;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){return createSWF(a,b,c)}else{return undefined}},removeSWF:function(a){if(x.w3cdom){removeSWF(a)}},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 urlEncodeIfNecessary(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 urlEncodeIfNecessary(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}}}}}();