var ie=(document.defaultCharset&&document.getElementById&&!window.home);if(ie){document.write("<style id='hideObject'> object{display:none;} </style>")}objectSwap=function(){if(!document.getElementsByTagName){return}var a=[];var b=document.getElementsByTagName('object');for(var i=0;i<b.length;i++){var o=b[i];var h=o.outerHTML;var c="";var d=true;for(var j=0;j<o.childNodes.length;j++){var p=o.childNodes[j];if(p.tagName=="PARAM"){if(p.name=="flashVersion"){d=detectFlash(p.value);if(!d){o.id=(o.id=="")?("stripFlash"+i):o.id;a.push(o.id);break}}c+=p.outerHTML}}if(!d){continue}if(!ie){continue}if(o.className.toLowerCase().indexOf("noswap")!=-1){continue}var e=h.split(">")[0]+">";var f=e+c+o.innerHTML+" </OBJECT>";o.outerHTML=f}if(a.length){stripFlash(a)}if(ie){document.getElementById("hideObject").disabled=true}};detectFlash=function(a){if(navigator.plugins&&navigator.plugins.length){var b=navigator.plugins["Shockwave Flash"];if(b==undefined){return false}var c=navigator.plugins["Shockwave Flash"].description.split(" ")[2];return(Number(c)>=Number(a))}else if(ie&&typeof(ActiveXObject)=="function"){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);return true}catch(e){return false}}return true};stripFlash=function(a){if(!document.createElement){return}for(var i=0;i<a.length;i++){var o=document.getElementById(a[i]);var b=o.innerHTML;b=b.replace(/<!--\s/g,"");b=b.replace(/\s-->/g,"");b=b.replace(/<embed/gi,"<span");var d=document.createElement("div");d.innerHTML=b;d.className=o.className;d.id=o.id;o.parentNode.replaceChild(d,o)}};jQuery(function(){objectSwap()});