var blurstatus = false;var blurback = false;window.addEvent( 'domready', function(){	menu_init('menu_ul_recherche');	//loadMenu();	if( $('btn_account') )	{	$('btn_account').addEvent('click', function(e)			{				var box = $('se_logger');				var myEffects = new Fx.Morph(box, {duration: 800});				if( box.style.visibility == 'visible'){					myEffects.start({						'opacity': [1,0]					});									}else{										myEffects.start({						'opacity': [0,1]					});				}		 	});	}			hideBoxUser();});var chrono = null;function stopTempo(){  if (chrono!=null)    clearTimeout(chrono);  chrono = null;}function demarreTempo(){  if (chrono==null)    chrono = setTimeout("mouseOut()","20");}function mouseOut(){  changeBackground( '/images/marque/gabarit_788x289/bandeau_gen.jpg', '' );  chrono = null;}function getPwdMd5 ( idLogin, idPass, idMd5, idForm ) {	pwd = document.getElementById(idPass).value;	document.getElementById(idPass).value = '';	buf = hex_md5(pwd);	document.getElementById(idMd5).value = buf;	document.getElementById(idForm).submit();	return true;}function ngetPwdMd5 ( idLogin, idPass, idMd5, idForm ) {	pwd = document.getElementById(idPass).value;	document.getElementById(idPass).value = '';		buf = hex_md5(pwd);	document.getElementById(idMd5).value = buf;	}function openIt ( url ) {	document.location.href = url;}function submitForm ( id ) {	document.getElementById(id).submit();}function changeAndSubmitForm ( change, id ) {	document.getElementById(id).action = change;	document.getElementById(id).submit();}function resetLoginEmail() {	if ( document.getElementById('ida_login').value == 'email@domaine.com' ) {		document.getElementById('ida_login').value = '';	}}function resetLoginPassword() {	if ( document.getElementById('ida_pass').value == 'password' ) {		document.getElementById('ida_pass').value = '';	}}function resetSearchKeywords() {	if ( document.getElementById('ids_keywords').value == 'recherche' ) {		document.getElementById('ids_keywords').value = '';	}}function resetValue( element, value ){	var el = null;	if( $$('#'+element) == '' ){		el = $$('.'+element);	}else{		el = $$('#'+element);		}}function hideBoxUser(){	$(document).addEvents({		'click' : function( e ){		if( blurstatus == false  )		{			var box = $('se_logger');			var myEffects = new Fx.Morph(box, {duration: 800});				if( box.style.visibility == 'visible'){					myEffects.start({						'opacity': [1,0]					});									}			}		}	});}function loadMenu() {	//var element = $$('.items_brand');		/*var element = $$('.items_brand');	if( element.length > 0 )	{				var totIncrement = 0;				var interval = false;				var increment = element[0].getStyle('height').toInt();		var maxTopIncrement = increment*( -(element.length - 6 ) );				var fx = new Fx.Style( 'brand_ul', 'margin-top', {			duration: 1000,			transition: Fx.Transitions.linear,			wait: false		});			if( totIncrement == 0 ){			$$('.fleche_haut').setStyle('visibility', 'hidden');		}						// Previous Button		$$('.fleche_haut').addEvents({		'mouseover' : function( event ){			interval = window.setInterval(				function()				{					$$('.fleche').setStyle('visibility', 'visible');					if( totIncrement < 0 )					{						totIncrement += increment ;						fx.stop();						fx.start( totIncrement );											}else{						//$$('.fleche_haut').setStyle('visibility', 'hidden');					}				},				350			);		}});						$$('.fleche_haut').addEvents({			'mouseout' : function( event ){				fx.stop();				window.clearInterval( interval )		}});					// Next Button		$$('.fleche').addEvents({		'mouseover' : function( event ){			interval = window.setInterval(				function()				{					$$('.fleche_haut').setStyle('visibility', 'visible');					if( totIncrement > maxTopIncrement )					{						totIncrement -= increment;						fx.stop();						fx.start( totIncrement );					}														},				350			);		}})				$$('.fleche').addEvents({		'mouseout' : function( event ){			fx.stop();			window.clearInterval( interval );		}});	}*/}function changeBackground( file, alt ){	var element = $('background_brand');	if( element )	{		var img = element.getElements( 'img' );			img.setProperty( 'src', file );			}	/*img.fade('out');	img.fade('in');*/	/*var new_img = '/images/marque/gabarit_788x289/bandeau_'+id+'.jpg';		var img = element.getElements( 'img' );	if( img.getProperty('src') != new_img )	{		var fx = new Fx.Style( element, 'opacity', {			duration : 300,						wait: false,			onComplete: function(){				img.setProperty( 'src', new_img );				img.setProperty( 'alt', alt );				new Fx.Style( element, 'opacity', {				duration : 300,				wait: true				}).start( 1 );							}		});		fx.start( 0.4 );	}*/	}function displayE( id ){	var element = $(id);	document.getElementById(id).style.display = 'block';		/*var fx = new Fx.Style( element, 'opacity', {			duration : 300		});				if( element.style.visibility != 'visible' ){					fx.start( 0, 1 );		}*/		var f = new Fx.Slide( element, {	        duration: 500,	        transition: Fx.Transitions.linear			} );		f.slideOut();}function displayEffect( id ){		/*displayE( id );						var elementsul = document.getElementsByTagName('ul');		var reg = new RegExp( '^type[0-9]{1,}$');		for( var i = 0; i < elementsul.length; i++ )		{		 		    var exp_result = reg.exec( elementsul[i].id );		    if(  exp_result != null )		    {		      if( exp_result != id )		      {		          		          var fad = $(''+exp_result+'');                    if( fad.style.visibility == 'visible' ){			            new Fx.Style( fad, 'opacity', {	              			duration : 300,	              			wait: false	              		}).start( 1,0 );                    }		      }		    }		      		}*/}function openMenu( id ){    var element = $(id);	if( element )	{	  		element.style.display = 'block';		var elementsul = document.getElementsByTagName('ul');		var reg = new RegExp( '^submenu[0-9]{1,}$');		for( var i = 0; i < elementsul.length; i++ )		{			 var exp_result = reg.exec( elementsul[i].id );			 if(  exp_result != null )			    {			      if( exp_result != id )			      {			          var fad = $(''+exp_result+'');			          fad.style.display = 'none';			      }			    }		}	}}