var ie=(document.defaultCharset&&document.getElementById&&!window.home);var opera9=false;if(ie){var ver=navigator.appVersion.split("MSIE");ver=parseFloat(ver[1]);ie=(ver>=6)}else{if(navigator.userAgent.indexOf("Opera")!=-1){var versionindex=navigator.userAgent.indexOf("Opera")+6;if(parseInt(navigator.userAgent.charAt(versionindex))>=9){opera9=true}}}var oswap=(ie||opera9);if(oswap){document.write("<style id='hideObject'> object{display:none;} </style>")}objectSwap=function(){if(!document.getElementsByTagName){return}var k=[];var m=document.getElementsByTagName("object");for(var e=0;e<m.length;e++){var b=m[e];var g=b.outerHTML;var c="";var l=true;for(var d=0;d<b.childNodes.length;d++){var a=b.childNodes[d];if(a.tagName=="PARAM"){if(a.name=="flashVersion"){l=detectFlash(a.value);if(!l){b.id=(b.id=="")?("stripFlash"+e):b.id;k.push(b.id);break}}c+=a.outerHTML}}if(!l){continue}if(!oswap){continue}if(b.className.toLowerCase().indexOf("noswap")!=-1){continue}var n=g.split(">")[0]+">";var f=n+c+b.innerHTML+" </OBJECT>";b.outerHTML=f}if(k.length){stripFlash(k)}if(oswap){document.getElementById("hideObject").disabled=true}};detectFlash=function(b){if(navigator.plugins&&navigator.plugins.length){var d=navigator.plugins["Shockwave Flash"];if(d==undefined){return false}var a=navigator.plugins["Shockwave Flash"].description.split(" ")[2];return(Number(a)>=Number(b))}else{if(ie&&typeof(ActiveXObject)=="function"){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);return true}catch(f){return false}}}return true};stripFlash=function(a){if(!document.createElement){return}for(var b=0;b<a.length;b++){var e=document.getElementById(a[b]);var f=e.innerHTML;f=f.replace(/<!--\s/g,"");f=f.replace(/\s-->/g,"");f=f.replace(/<embed/gi,"<span");var c=document.createElement("div");c.innerHTML=f;c.className=e.className;c.id=e.id;e.parentNode.replaceChild(c,e)}};var tempFunc=window.onload;window.onload=function(){if(typeof(tempFunc)=="function"){try{tempFunc()}catch(a){}}objectSwap()};
