$(document).ready(function(){function m(){$('.imdiv').width(122);$('.infomoza').show();$('.deta-info').css({display:"none"});$('.mosa-image').width(120);$('.imdiv').css({background:"#191919",border:"1px solid #4E4E4E"});$.cookie('afichage','deta',{expires:-1,path:"/"});}function d(){$('.imdiv').width(690);$('.infomoza').hide();$('.deta-info').show();$('.mosa-image').height(180);$('.mosa-image').width(135);$.cookie('afichage','deta',{expires:365,path:"/"});}$('.moza-choix').click(function(){m();});$('.detaill-choix').click(function(){d();});$('.affiche-detaill').click(function(){d();var InfoDetail=$(this).attr("id");InfoDetail=InfoDetail.replace("suplim","#info");var destination=$(InfoDetail).offset().top;$("html:not(:animated),body:not(:animated)").animate({scrollTop:destination-15},2000);$(InfoDetail).css({background:"#3C001E",border:"1px solid #FF0683"});return false;});$('.moza').click(function(){var destination=$("#wage").offset().top;$("html,body").animate({scrollTop:destination},2000,function(){m()});});$('a[name=modal]').click(function(e){e.preventDefault();var id=$(this).attr('class');id=id.replace("connection","#connection");var loadAction=$(this).attr('title');loadAction=loadAction.replace("Ajouter a vos favoris","connection");var maskHeight=$(document).height();var maskWidth=$(window).width();$('#mask').css({'width':maskWidth,'height':maskHeight});$('#mask').fadeIn(500);$('#mask').fadeTo("slow",0.8);var winH=$(window).height();var winW=$(window).width();$('#connect-bod').load("/"+loadAction+".php",function(){$(id).css('top',winH/4);$(id).css('left',winW/2-$(id).width()/2);$(id).fadeIn(700);});});$('.fenetre .close').click(function(e){e.preventDefault();$('#mask').hide();$('.fenetre').hide();});$('#mask').click(function(){$(this).hide();$('.fenetre').hide();});$('.noteShow').click(function(){$(this).css({color:"#FF6600"});$(".recent-ad").css({color:"#666666"});$(".bestSee").css({color:"#666666"});$('#page-prez').fadeTo("slow",0);$('#hide-see').fadeTo("slow",0);$('#hide-note').fadeTo("slow",1);$('#page-prez').hide(500);$('#hide-see').hide(500);$('#hide-note').show(100);});$('.recent-ad').click(function(){$(this).css({color:"#FF6600"});$(".noteShow").css({color:"#666666"});$(".bestSee").css({color:"#666666"});$('#hide-note').fadeIn(1000);$('#hide-note').fadeTo("slow",0);$('#page-prez').fadeTo("slow",0);$('#page-prez').fadeTo("slow",1);$('#hide-note').hide(500);$('#hide-see').hide(500);$('#page-prez').show();});$('.bestSee').click(function(){$(this).css({color:"#FF6600"});$(".noteShow").css({color:"#666666"});$(".recent-ad").css({color:"#666666"});$('#hide-note').fadeTo("slow",0);$('#page-prez').fadeTo("slow",0);$('#hide-see').fadeTo("slow",1);$('#hide-note').hide(500);$('#page-prez').hide(500);$('#hide-see').show();});$('.rsdow').click(function(){$('.rss').animate({height:"50px"});$('.rsdow').hide();$('.rsup').show();});$('.rsup').click(function(){$(this).hide();$('.rss').animate({height:"15px"});$('.rsdow').show();});});
