<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Version modifiée de Block Flash(http://www.squarefree.com/userstyles/xbl.html)
     pour forcer flash avec wmode=tranparant (utile pour drawWindow).
-->

<bindings
   xmlns="http://www.mozilla.org/xbl"
   xmlns:html="http://www.w3.org/1999/xhtml"
>

<binding id="ctv">
  <implementation>
    <constructor>
      <![CDATA[
		if(this.nodeName == 'EMBED' && this.getAttribute('wmode') != 'transparent'){
			this.setAttribute('wmode', 'transparent');
		}else if(this.nodeName == 'OBJECT'){
			if(e_lenght = this.getElementsByTagName('embed').length > 0){
				for(n = 0; e_lenght > n; n++){
					if(this.getElementsByTagName('embed')[n].hasAttribute('wmode') &&
						this.getElementsByTagName('embed')[n].getAttribute('wmode') != 'transparent'){
						this.getElementsByTagName('embed')[0].setAttribute('wmode', 'transparent');
					}
				}
			}else{
				if(p_length = this.getElementsByTagName('param').length){
					for(n = 0; n < p_length; n++){
						if(this.getElementsByTagName('param').childNodes.getAttribute('name') == 'wmode' && 
							this.getElementsByTagName('param').childNodes.getAttribute('value') == 'transparent') return;
					}
				}
				param = document.createElement('param');
				param.setAttribute('name', 'wmode');
				param.setAttribute('value', 'return');
				this.appendChild(param);
			}
		}

		/**/
      ]]>
    </constructor>
  </implementation>
</binding>

</bindings>