// if( location == this.location ){top.location="http://www.metalor-watch.com/";}

function AfficherAnimation(file, width, height)
{
	document.write('<OBJECT id="AnimStart" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ width +'" height="'+ height +'"><PARAM name="movie" value="'+ file +'"><PARAM name="quality" value="high"><EMBED src="'+ file +'" QUALITY="high" name="AnimStart" swliveconnect="true" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'"></EMBED></OBJECT>');
}

function AfficherAnimationHome(file, width, height)
{
	document.write('<OBJECT id="AnimBienvenue" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ width +'" height="'+ height +'"><PARAM name="movie" value="'+ file +'"><PARAM name="quality" value="high"><EMBED src="'+ file +'" QUALITY="high" name="AnimBienvenue" swliveconnect="true" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'"></EMBED></OBJECT>');
}



function CheckForm () {

	//Check for a word to search
	returnVal = true;
	if (document.SiteSearch.query.value==""){
		returnVal = false;
		alert("Pour effectuer votre recherche, prière d'indiquer au minimum un mot-clé");
		document.SiteSearch.query.focus();
	}
	else {
		 document.SiteSearch.submit();
	}
}

function ImprimerPage( url )
{
  window.open( url, 'printwindow', 'width=740,height=500,toolbar=yes,resizable=true,menubar=yes,scrollbars=yes' );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function reDo() {
   NS4 = document.layers;
   if (NS4) {
 	  location.reload();
   }
}       
            
var ShowDelay = 500;
var CurrentMenuID = null;
var MenuTimeOut = null;
var MenuReady = false;

function MenuMouseOut()
{
 	MenuTimeOut = window.setTimeout( 'HideMenu()', ShowDelay );
// 	ImageTimeOut = window.setTimeout( 'MM_swapImgRestore()', ShowDelay );
	window.status = '';
}

function MenuMouseOver()
{
  clearTimeout( MenuTimeOut );
 // clearTimeout( ImageTimeOut );
}

function HideMenu()
{
	if( CurrentMenuID != null )
	{
	  	MM_showHideLayers( CurrentMenuID, '', 'hide');
  		CurrentMenuID = null;
		MM_swapImgRestore();
	}
}

function ShowMenu( menuID )
{
 	if(MenuTimeOut != null) clearTimeout( MenuTimeOut );
// 	if(ImageTimeOut != null) clearTimeout( ImageTimeOut );
  if( CurrentMenuID != null )
  {
    MM_showHideLayers( CurrentMenuID, '', 'hide');
  		MM_swapImgRestore();
  }
  CurrentMenuID = menuID;
  MM_showHideLayers( CurrentMenuID, '', 'show');
}
