/*!
 * @description Plugin jQuery pour la gestion des cookies
 * @requires jQuery
 * @version 1.5
 * @author Mike
 */
(function(a){jQuery.cookie=(function(){var b={expire:0,path:"/",domain:document.location.host,secure:(document.location.protocol=="https:")};var c=function(d){return(d+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!<>\|\:])/g,"\\$1")};return{set:function(e,g,f){if(typeof e!=="string"||e.length==0){return}var d=a.extend(b,f||{});if(d.expire){d.expire=new Date(new Date().getTime()+(d.expire*86400000)).toGMTString()}document.cookie=e+"="+encodeURIComponent(g)+((d.expire)?"; expires="+d.expire:"")+"; path="+d.path+"; domain="+d.domain+((d.secure)?"; secure=true":"")},get:function(e){if(typeof e!=="string"||e.length==0){return undefined}var d=new RegExp("^"+c(e)+"=(.*)$");var f=a.grep(document.cookie.split("; "),function(g){return d.test(g)});return(f.length>0)?decodeURIComponent(d.exec(f[0])[1]):undefined},del:function(d){if(this.get(d)!==undefined){return this.set(d,"",{expire:-1})}},all:function(){if(document.cookie.length>0){return document.cookie.split("; ")}return""}}})()})(jQuery);
/*!
 * @description Lib site
 * @requires jQuery 1.7+
 * @version 1.4.1.7
 * @author Mike
 */
(function(g){var i=function(q,p){if(typeof p=="undefined"){p=""}return p+q.substring(q.lastIndexOf("/")+1)};var n=function(){var s=[],r;var p=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var q=0;q<p.length;q++){r=p[q].split("=");s.push(r[0]);s[r[0]]=r[1]}return s};var e=function(p){return n()[p]};var a=function(){var v=5000;var q=0;var r=g("ul#flashinfos");var u=g("ul#flashinfos li");var s=r.height();r.find("a").each(function(){g(this).attr("tabindex","-1")});u.filter("#blankflashinfo").animate({marginTop:"-"+s+"px"},"slow",function(){g(this).remove()});u.each(function(x){g(this).css("height","auto");if(g(this).height()<s){var w=(s-g(this).height())/2;g(this).css("padding-top",w+"px").css("padding-bottom",w+"px")}});var p=function(){g("ul#flashinfos li").first().fadeOut("slow",function(){t(this)})};var t=function(w){g(w).show().appendTo(r)};if(u.length>2){u.hover(function(){clearInterval(iInterval)},function(){iInterval=setInterval(p,v)});iInterval=setInterval(p,v)}};var h=function(){g("#slidebannerscont").css("overflow-y","hidden");var p=g("#slidebanners");p.find("a").each(function(){g(this).attr("tabindex","-1")});p.find("ul").bxCarousel({display_num:1,move:1,speed:500,margin:0,auto:true,auto_interval:3000,controls:false,auto_hover:true})};var j=function(){var p=parseInt(g.cookie.get("varleft"));if(!isNaN(p)){g("div#pellicule").css("left",p+"px")}};var m=function(){var s=-((15*150)+(16*20)-670);var t=6;var p=t/2;var q=g("div#pellicule");var r=function(x,u){var w=parseInt(q.css("left"));var v=(u!==undefined&&u===true)?p:t;switch(x){case"g":return v*Math.abs(w);break;case"d":return v*(Math.abs(s)-Math.abs(w));break;default:return undefined;break}};g("div#pellicule a").each(function(){g(this).attr("tabindex","-1")});g("div#diapo_navig_g").mouseover(function(){g(this).toggleClass("dngHover");q.stop().animate({left:"0px"},r("g"),"linear")}).mousedown(function(){q.stop().animate({left:"0px"},r("g",true),"linear")}).mouseup(function(){q.stop().animate({left:"0px"},r("g"),"linear")}).mouseout(function(){g(this).toggleClass("dngHover");q.stop();if(parseInt(q.css("left"))!=parseInt(g.cookie.get("varleft"))){g.cookie.set("varleft",q.css("left"))}});g("div#diapo_navig_d").mouseover(function(){g(this).toggleClass("dndHover");q.stop().animate({left:s+"px"},r("d"),"linear")}).mousedown(function(){q.stop().animate({left:s+"px"},r("d",true),"linear")}).mouseup(function(){q.stop().animate({left:s+"px"},r("d"),"linear")}).mouseout(function(){g(this).toggleClass("dndHover");q.stop();if(parseInt(q.css("left"))!=parseInt(g.cookie.get("varleft"))){g.cookie.set("varleft",q.css("left"))}})};var d=function(){g("div#wrapper").on("click","a.lien_ext, div#Forum div.postright a",function(){if(!this.href.match(/^mailto\:/)&&(this.hostname!=location.hostname)){window.open(this.href);return false}});g("a.lien_ext, div#Forum div.postright a").not("[href*='mailto']").not("[href*='"+window.location.host+"']").each(function(){this.title=g.trim(this.title+" (nouvelle fen\352tre)")}).not(":has(img)").addClass("lien_ext_txt")};var l=function(){g("div#menu dl").on("mouseenter mouseleave",function(){g(this).toggleClass("simhover")})};var f=function(){var p=g("div#divers_photos");p.find("h2.titre_page").after('\n\t\t\t\t<div class="hline"></div>\n\t\t\t\t<p class="modeemploi">(Cliquez sur les petits + pour d\351velopper les cat\351gories.)</p>');p.find("dd").slice(1).hide();p.find("dt").first().prepend('<img class="galToggle" src="images/toggle_off.gif" width="11" height="11" alt="" title="Cliquez pour voir ou cacher l\'album" />&nbsp;');p.find("dt").slice(1).prepend('<img class="galToggle" src="images/toggle_on.gif" width="11" height="11" alt="" title="Cliquez pour voir ou cacher l\'album" />&nbsp;');p.find("dt img").click(function(){var q=i(this.src,"images/");if(q=="images/toggle_off.gif"){g(this).attr("src","images/toggle_on.gif")}else{if(q=="images/toggle_on.gif"){g(this).attr("src","images/toggle_off.gif")}}g(this).parent("dt").next("dd").animate({height:"toggle",opacity:"toggle"},{duration:"slow"})})};var k=function(){g("a.album").colorbox({transition:"elastic",maxWidth:"95%",maxHeight:"95%",previous:"Pr\351c\351dent",next:"Suivant",close:"Fermer",current:"- {current}/{total} -",returnFocus:false})};var b=function(){g("a[id*=revue_video]").off("click").each(function(){var p=parseInt(g(this).attr("class"))==43?"640px":"720px";g(this).colorbox({transition:"elastic",width:p,height:"480px",iframe:true,rel:"videos",current:"- {current}/{total} -",href:g(this).attr("rel")})})};var c=function(){g(document).snowfall({flakeCount:60,flakeColor:"#FFFFFF",flakeIndex:999999,minSize:2,maxSize:4,minSpeed:2,maxSpeed:10,round:true,shadow:false})};var o=function(){g.ajaxSetup({cache:false});d();a();h();j();m();k();b();if(g("div#divers_photos").length){f()}};g(document).ready(function(){o()})})(jQuery);
