// change classfunction niouclass(id,myClass) {	var obj;	obj = document.getElementById(id);	obj.className = myClass;}// gestion des menu gauches, attribut displayfunction voir() {	var i, obj, args = voir.arguments;	if(document.getElementById) {		for (i=0; i<args.length; i++) {			obj = document.getElementById(args[i]);	 		obj.style.display = "block";	 		obj.style.visibility = "visible";	 	}	}}function cache() {	var i, obj, args = cache.arguments;		if(document.getElementById) {		for (i=0; i<args.length; i++) {			obj = document.getElementById(args[i]);	 		obj.style.display = "none";	 		obj.style.visibility = "hidden";	 	}	}}/* menu select change display  */	function AffLayer1(liste) {			var nomlayer=liste.options[liste.selectedIndex].value;		if (document.all) {			document.all[nomlayer].style.display="block";			}			if (document.layers) {				document.layers[nomlayer].display="block";			}		if (document.getElementById) {			document.getElementById(nomlayer).style.display="block";		}			}function swap_image() {    tmp = jQuery(this).attr('src');    jQuery(this).attr('src', jQuery(this).parent().attr('data-swap'));    jQuery(this).parent().attr('data-swap', tmp);};jQuery(document).ready(function(){  // active le mousehover sur image contenu dans les lien de class swap  jQuery('a.swap img').hover(swap_image, swap_image);  //apparition de la recherche au click  jQuery('#haut .rech a').click(function() {	jQuery("#haut .rech_form").show('slide',{direction:'right'},'low');	jQuery("#haut .rech").hide();	return false;  });  jQuery('#haut .rech_form .closeSearch').click(function(e){	e.preventDefault();	hideSearch();  });    // barre de texte sur slideshow home  jQuery('#carouselhome').hover(function(){    jQuery('.barre:hidden',this).show('slide',{direction:'down'},'low');        jQuery('.controls',this).css('background-image','none');  },function(){    jQuery('.controls',this).css('background-image','url("/images/carousel/carousel_texte_fond.png")');    jQuery('.barre:visible',this).hide('slide',{direction:'down'},'low');  });  // effet scrollable jquery-tools sur slideshow home  jQuery('#carouselhome[class="home"]').scrollable().navigator().autoscroll({interval: 6000});  // tabs sur focus 3  jQuery('#focus .focus_col3 ul li a').click(function() {    jQuery("#focus .focus_col3 ul li a").removeClass("active");    jQuery(this).addClass("active");    jQuery("#focus .focus_col3 > div").hide();    var quelp = jQuery(this).attr("href");    jQuery("#focus .focus_col3 "+quelp).show('slide',{direction:'up'},'fast');    return false;  });  // deroule/enroule du selector products  jQuery('.selecteur h2 a').click(function() {    if(jQuery('.selecteur .block:hidden').length){      jQuery(".selecteur h2 a").removeClass("active");      jQuery(this).addClass("active");      jQuery(".selecteur .block").show('slide',{direction:'up'});    }else if(jQuery('.selecteur .block:visible').length){      jQuery(".selecteur h2 a").removeClass("active");      jQuery(".selecteur .block").hide('slide',{direction:'up'});    }    return false;  });  if(jQuery('.overview_vigne_cold').length) jQuery('.overview_vigne_colg').addClass('overview_vigne_colg_760');  // slider du selector produits  jQuery( ".tonslider" ).slider({min:0,max:5,value:0});  jQuery(".priceslider").slider({min:0,max:4,value:0});  jQuery('.bulle_info .ferme').click(function(){jQuery(this).parents('.bulle_info').hide();});  // segmentation  jQuery('#segment .scol').hover(function() {    jQuery(".texte:hidden",this).show('slide',{direction:'up'});  },function() {    jQuery(".texte", this).hide('slide',{direction:'up'});  });   // segmentation clothing  var activeseg = jQuery('#seg_clothing .menu_onglet a.active').index('#seg_clothing .menu_onglet a')+1;  jQuery('#seg_clothing #segment'+activeseg).show();  jQuery('#seg_clothing .menu_onglet a').click(function(){    jQuery('#seg_clothing .menu_onglet a').removeClass('active');    jQuery(this).addClass('active');    var activeseg = jQuery(this).index('#seg_clothing .menu_onglet a')+1;    jQuery('#seg_clothing .clothe').hide();    jQuery('#seg_clothing #segment'+activeseg).show();    return false;  });  // effet scrollable jquery-tools sur slideshow innovations  jQuery('#technos #carouselhome').scrollable({circular: true}).navigator();});function hideSearch(){	if( jQuery("#wordsitesearch:focus").length == 0 ){	 jQuery(".rech_form").hide('slide',{direction:'right'},'low');	 jQuery("#haut .rech").show();	}}function initVideoAjaxFrame(){	Cufon.refresh();}function initVideoListAjaxFrame(){	initVideoAjaxFrame();	jQuery('#toplay').click();}
