<?xml version="1.0"?>
<!-- adopted from: http://www.squarefree.com/userstyles/xbl.html -->
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">

<binding id="ctv">
  <implementation>
    <constructor>
      <![CDATA[


var doomed = this;

// Check parent too (case of working EMBED inside broken OBJECT)
if (doomed.overrideCTV || doomed.parentNode.overrideCTV)
  return;
doomed.overrideCTV = true;

var placeholder = document.createElement("div");


// === Styling ===

var w = parseInt(doomed.width || doomed.style.width);
var h = parseInt(doomed.height || doomed.style.height);

if (!w || w < 32) w = 32; // !w catches e.g. NaN
if (!h || h < 32) h = 32;

placeholder.style.width = w + "px";
placeholder.style.height = h + "px";
placeholder.style.textAlign = "center";
placeholder.style.color = "black";
placeholder.style.background = "#CCCCCC";
placeholder.style.backgroundImage = 'url(http://dsss.be/noflash/bg.png)';
placeholder.style.cursor = "pointer";
placeholder.style.overflow = "hidden";
placeholder.style.fontWeight='bold';
placeholder.style.fontFamily='Arial';


var text = document.createTextNode("[Click to play Flash]");

placeholder.appendChild(text);

placeholder.onmouseover = function()
{
  this.style.MozOutline='3px dotted black';
  //this.style.background='lightgrey'        
}
placeholder.onmouseout = function()
{
  //this.style.background='white';
  this.style.MozOutline='0px';
}


// === Replacement ===

var p = doomed.parentNode;

// Do in a timeout to avoid bugginess
setTimeout ( function () 
{
  p.insertBefore(placeholder, doomed);
  p.removeChild(doomed); 
}, 0);

// I love closures
placeholder.onclick = function() 
{
  p.insertBefore(doomed, placeholder);
  p.removeChild(placeholder);
}



      ]]>
    </constructor>
  </implementation>

</binding>

</bindings>
