$(document).ready(function(){$(".picto_coinPL").hover(function(){$(this).parent(".img").find(".pictoCoinPlEn").show()},function(){$(this).parent(".img").find(".pictoCoinPlEn").hide()});var a=-1;$("#contenuListe .listeProduits .produitListe .img").mouseout(function(){a=-1});$("#contenuListe .listeProduits .produitListe .img .infos").mouseover(function(){var b=$(this).parent(".img");var d=$("div.produitListe").index(b.parent(".produitListe"));var c=d;if(c>4){while(c>4){c=c-5}}a=d;$("#calqueSortie").remove();$(".miniFiche").hide();$(".produitListe .img,.produitListe .titre").css("zIndex",1);$(".produitListe .zonePrix,.produitListe .qtePanier").css("zIndex",2);var g=b.next(".miniFiche");var i=b.prev(".titre");var e=b.nextAll(".zonePrix, .qtePanier");b.css("zIndex","110");i.css("zIndex","110");e.css("zIndex","110");var j=$("#content").position();if(g.find(".contenu").is(":empty")){var h=b.attr("class").substr(4,1);var f="";if(h==0){g.find(".contenu").load("/VAD/DetailProduitLight?"+b.attr("params"),function(){var k=$(".itemOffre",this).size();if(k>5){if(c<2){f="dCol aDroite";$(".itemOffre",this).removeClass("floatLeft").addClass("floatRight")}else{f="dCol"}}else{if(c==0){f="aDroite";$(".itemOffre",this).removeClass("floatLeft").addClass("floatRight")}}if(f!=""){g.addClass(f)}if(a==d){g.show();$("#content").prepend('<div id="calqueSortie"><img src="/style1/images/commun/1ptrans.gif"></div>');$("#calqueSortie").css({top:-j.top,left:-j.left});$("#calqueSortie img").css({height:$(document).height(),width:$(document).width()});$("#calqueSortie").mouseover(function(){sortieMiniFiche(g,b,i,e)})}else{b.css("zIndex","1");i.css("zIndex","1");e.css("zIndex","2")}})}else{g.find(".contenu").load("/VAD/DetailProduitLight?"+b.attr("params"),function(){if(c==0){f="aDroite"}if(f!=""){g.addClass(f)}if(a==d){g.show();$("#content").prepend('<div id="calqueSortie"><img src="/style1/images/commun/1ptrans.gif"></div>');$("#calqueSortie").css({top:-j.top,left:-j.left});$("#calqueSortie img").css({height:$(document).height(),width:$(document).width()});$("#calqueSortie").mouseover(function(){sortieMiniFiche(g,b,i,e)})}else{b.css("zIndex","1");i.css("zIndex","1");e.css("zIndex","2")}})}}else{if(a==d){g.show();$("#content").prepend('<div id="calqueSortie"><img src="/style1/images/commun/1ptrans.gif"></div>');$("#calqueSortie").css({top:-j.top,left:-j.left});$("#calqueSortie img").css({height:$(document).height(),width:$(document).width()});$("#calqueSortie").mouseover(function(){sortieMiniFiche(g,b,i,e)})}else{b.css("zIndex","1");i.css("zIndex","1");e.css("zIndex","2")}}})});function sortieMiniFiche(d,b,c,a){d.hide();$("#calqueSortie").remove();b.css("zIndex","1");c.css("zIndex","1");a.css("zIndex","2")};
