<!--
    rubrique = 'store';
    comfrom  = '1';
    lang     = 'L1';
    noexit   = 0;

// Catalogue
function HandleMiniBook(param) {
    launch_catalogue('link', 'parameters');
}


function masquer_select(){
    $('#P1Menu>.catego_content').hide();
    $("objet").css("visibility","hidden");
    $("embed").css("visibility","hidden");
    $("select").css("visibility","hidden");
}

function afficher_select(){
    $('#P1Menu>.catego_content').hide();
    $("select").css("visibility","visible");
    $("objet").css("visibility","visible");
    $("embed").css("visibility","visible");
}

var effect={
tempo:false,
setX:function (element){
  var x=$(element).offset();
  effect.left=x.left;
  return Math.abs(x.left)+"px";
},

setWidth:function(element){
   var maxRight=$(element).offset();
   maxRight=(maxRight.left-effect.left);
   maxRight =maxRight>=200?maxRight:500;//bug opera
   return maxRight+"px";
},
setHeight:function(element){
  var maxHeight=$(element).height();
  return  maxHeight;
},

setTempo:function (){
    window.clearTimeout(effect.tempoactif);
    effect.tempo=false;
    effect.tempoactif=window.setTimeout('effect.masquerEnfant()',100);
},

afficherEnfant:function (element){
	$("#P1Menu>.currentTemp").removeClass("currentTemp");
    $(element).addClass("currentTemp");
    this.catego="#catego_"+parseInt($(element).attr("id"));
	var widthContenu=parseInt($(this.catego +" div:first").css("width"));
	effect.tempo=true;
    window.clearTimeout(effect.tempoactif);
    if (!isNaN(widthContenu)){
          //	$(this.catego+" div:first").css("width",effect.setWidth($("#1_tetiere")));
			//$(this.catego).css("left","0px");
			$(this.catego).show("",masquer_select());
	}else{
        window.clearTimeout(effect.tempoactif);
        afficher_select();
       }
    },

masquerEnfant:function (){
    if (effect.tempo==false){
         afficher_select();
         $("#P1Menu>.currentTemp").removeClass("currentTemp");
         $("objet").css("visibility","visible");
         $("embed").css("visibility","visible");
        }
    }
}



function initMenu(){
	$('#P1Menu>.P1Tetiere').mouseover(
 		function (e){new effect.afficherEnfant($(this))}
	);
	$('#P1Menu>.P0Tetiere').mouseover(
        function (e){new effect.afficherEnfant($(this))}
    );
	
	$('.txt_vousetesici').mouseover(
	 function (e){ $("#P1Menu>.currentTemp").removeClass("currentTemp");}
	);
	
	$('#P1Menu>.catego_content').mouseout(
	  function(){effect.setTempo();}
	);
	
	$('#P1Menu>.catego_content > *').mouseover(
	  function(){effect.tempo=true;}
	);
	

}
$(document).ready(initMenu);
//-->