function fix_flash(){var embeds=document.getElementsByTagName('embed');for(i=0;i<embeds.length;i++){embed=embeds[i];var new_embed;if(embed.outerHTML){var html=embed.outerHTML;if(html.match(/wmode\s*=\s*('|")[a-zA-Z]+('|")/i))new_embed=html.replace(/wmode\s*=\s*('|")window('|")/i,"wmode='opaque'");else
new_embed=html.replace(/<embed\s/i,"<embed wmode='opaque' ");embed.insertAdjacentHTML('beforeBegin',new_embed);embed.parentNode.removeChild(embed);}else{new_embed=embed.cloneNode(true);if(!new_embed.getAttribute('wmode')||new_embed.getAttribute('wmode').toLowerCase()=='window')new_embed.setAttribute('wmode','opaque');embed.parentNode.replaceChild(new_embed,embed);}}var elementToAppend=document.createElement('param');elementToAppend.setAttribute('name','wmode');elementToAppend.setAttribute('value','opaque');var objects=document.getElementsByTagName('object');for(var i=0;i<objects.length;i++){var newObject=objects[i].cloneNode(true);elementToAppend=elementToAppend.cloneNode(true);newObject.appendChild(elementToAppend);objects[i].parentNode.replaceChild(newObject,objects[i]);}}window.onload=fix_flash;