var zikOn = '';
function PlayZik(u)
{
	if ( zikOn == '' || zikOn != u )
	{
//		document.getElementById('playzik').innerHTML = '<object width=0 height=0 type="application/x-mplayer2" ><param name="fileName" value="'+u+'" /><param name="autostart" value=1 /><param name="ShowStatusBar" value=0 /></object>';
		document.getElementById('playzik').innerHTML = '<object classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" height=0 standby="Chargement du composant Windows Media Player..." type="application/x-oleobject" width=0><param name="filename" value="'+u+'"><param name="animationatStart" value="true"><param name="autoStart" value="true"><param name="showControls" value="false"><param name="showStatusBar" value="false"><param name="showDisplay" value="false"><param name="loop" value="false"><embed autostart=1 height=0 src="'+u+'" type="application/x-mplayer2" width=0></embed></object>';
		zikOn = u;
	}
	else
	{
		document.getElementById('playzik').innerHTML = '';
		zikOn = '';
	}
}
function _hideBBCode() 
{ 
   this.objs = []; 
   return this; 
} 
_hideBBCode.prototype.IsDisplaySupported = function() 
{ 
   // Opera: Only v7+ supports write access to display attribute ! 
   if( window.opera && !document.childNodes ) return false; 
   // Other DOM browsers and MSIE4+ support it as well. 
   if( document.getElementById || document.all ) return true; 
   // This is where legacy browsers fall. NS4, Hotjava, etc. 
   return false; 
} 
_hideBBCode.prototype.getObj = function(obj) 
{ 
   return ( document.getElementById ? document.getElementById(obj) : 
         ( document.all ? document.all[obj] : 
         ( document.layers ? document.layers[obj] : null ) ) ); 
} 
_hideBBCode.prototype.displayObj = function(obj, status) 
{ 
   var x = this.getObj(obj); 
   if(!x) return; 
   var css = ( document.layers ? x : x.style ); 
   if( this.IsDisplaySupported() ) 
   { 
      css.display = status; 
   } 
   else 
   { 
      css.visibility = ( status == 'none' ? 'hidden' : 'visible' ); 
   } 
} 
_hideBBCode.prototype.open = function(l_hide) 
{ 
   var s='', randomId = 'hide' + Math.floor(Math.random() * 15000); 
   var style = ( this.IsDisplaySupported() ? 'display:none;' : 'visibility:hidden;' ); 
   if( document.layers ) { style = 'position:relative;' + style; } 
   s += '<div><a class="normal" href="javascript:hideBBCode.showHide(\'' + randomId + '\');" onmouseover="top.status=\'\';" onfocus="this.blur();">' + l_hide + '</a></div>'; 
   s += '<div id="' + randomId + '" style="'+style+'">'; 
   document.write(s); 
   this.objs[randomId] = 'none'; 
} 
_hideBBCode.prototype.close = function() 
{ 
   document.write('</div>'); 
} 
_hideBBCode.prototype.showHide = function(obj) 
{ 
   if( !this.objs[obj] ) return; 
   this.objs[obj] = ((this.objs[obj]=='none') ? 'block':'none'); 
   this.displayObj(obj, this.objs[obj]); 
} 
var hideBBCode = new _hideBBCode();
