$(document).ready(function(){if(JsConfig.Supersized.Enable){$.supersized({keyboard_nav:0,vertical_center:0,slide_links:"false",random:JsConfig.Supersized.Rand,slides:JsConfig.Supersized.Images,transition:JsConfig.Supersized.Transition,transition_speed:JsConfig.Supersized.Speed,slide_interval:((JsConfig.Supersized.HomePageOnly&&!JsConfig.HomePage)?12000000:JsConfig.Supersized.Interval)});$(document).bind("SuperSizedImgLoad",function(){$("#supersized").css("height",$("#global").innerHeight())})}$("ul.sf-menu").superfish({delay:300,animation:{opacity:"show"},speed:"normal",autoArrows:false,dropShadows:false});$(".link").hover(function(){$(this).addClass("link-hover")},function(){$(this).removeClass("link-hover")});$(".photo-overlay").hover(function(){$(this).find("img").stop().animate({opacity:0.3},200);$(this).find(".liste-bien-pict-description").animate({bottom:"10px"})},function(){$(this).find("img").stop().animate({opacity:1},200);$(this).find(".liste-bien-pict-description").animate({bottom:"-57px"})});$(window).load(function(){if($(".slideshow").size()){$(".slideshow").setSlideShow()}});JsConfig.MiniMotForm.Id=$(".minimoteur:first").attr("id");var $_GET={};window.$_GET=$_GET; if(!$.isNue(JsConfig.Dg)){$.traceDump({VarName:"$_GET",Var:$_GET})}var $_HASH={};window.$_HASH=$_HASH;$.each(window.location.hash.substring(1).split("&"),function(){var TabKV=this.split("=");if(!$.isNue(TabKV[0])&&!$.isNue(TabKV[1])){$_HASH[TabKV[0]]=decodeURI(TabKV[1]).urlDecode()}});if((!$.isNue($_HASH)||!$.isNue($("#"+JsConfig.MiniMotForm.Id)))&&!$.isNue($_GET)){$_HASH=$.extend($_GET,$_HASH)}if(!$.isNue(JsConfig.Dg)){$.traceDump({VarName:"$_HASH",Var:$_HASH})}if(!$.isNue($_HASH)){window.location.hash=""}$(window).bind("beforeunload",function(){if(!$.isNue($_HASH)){if(!$.isNue($("#"+JsConfig.MiniMotForm.Id))&&JsConfig.ModeAjax){$_HASH=$.extend($_HASH,$.getDataForm($("#"+JsConfig.MiniMotForm.Id)))}var TabH=Array();$.each($_HASH,function(k,v){if(!$.isNue(v)){TabH.push(k+"="+v)}});var H=TabH.join("&");if(!$.isNue(H)){window.location.hash="#"+H}}});$("label").each(function(){var CurFormId=$(this).closest("form").attr("id");var AttachedInput=$("#"+CurFormId+" .custom-input[id="+$(this).attr("for")+"]");if(!$.isNue(AttachedInput)){$(this).click(function(event){event.preventDefault();AttachedInput.trigger("click")})}});$(".custom-input").click(function(event){event.preventDefault();$(this).prop("checked",(($(this).prop("checked"))?false:true));var CurFormId=$(this).closest("form").attr("id");var Inputs=null;switch($(this).attr("type")){case"radio":Inputs=$("#"+CurFormId+" .custom-input[name="+$(this).attr("name")+"]");break;case"checkbox":Inputs=$(this);break}Inputs.each(function(){var AttachedLabel=$("#"+CurFormId+" label[for="+$(this).attr("id")+"]");var AttachedClass="custom-"+$(this).attr("type")+"-checked";if(AttachedLabel.hasClass(AttachedClass)!=$(this).prop("checked")){if($(this).prop("checked")){AttachedLabel.addClass(AttachedClass)}else{AttachedLabel.removeClass(AttachedClass)}}});eval("var FctnCallBack="+$(this).attr("data-callback"));if($.isFunction(FctnCallBack)){FctnCallBack.call(null,this)}});$("select.custom-select").setCustomSelect();$(".FormSlider").each(function(){var SliderConfig=eval("JsConfig."+$(this).attr("id"));var CurFormId=$(this).closest("form").attr("id");if(!$.isNue(SliderConfig.InputMin)){$.addHidden($("#"+CurFormId),{Id:SliderConfig.InputMin,Name:SliderConfig.InputMin});$("#"+SliderConfig.InputMin).attr("bounds","min");$("#"+SliderConfig.InputMin).attr("slider",$(this).attr("id"))}if(!$.isNue(SliderConfig.InputMax)){$.addHidden($("#"+CurFormId),{Id:SliderConfig.InputMax,Name:SliderConfig.InputMax});$("#"+SliderConfig.InputMax).attr("bounds","max");$("#"+SliderConfig.InputMax).attr("slider",$(this).attr("id"))}$("#"+$(this).attr("id")).slider({range:true,min:SliderConfig.Min,max:SliderConfig.Max,step:SliderConfig.Step,values:SliderConfig.Values,slide:function(event,Sl){switch(JsConfig.Lng){case"fr":$("#Lib"+$(this).attr("id")).val("Entre "+Sl.values[0].formatNumber()+" et plus de "+Sl.values[1].formatNumber()+(" "+SliderConfig.Unit||""));break;case"uk":$("#Lib"+$(this).attr("id")).val("Between "+Sl.values[0].formatNumber()+" and more than "+Sl.values[1].formatNumber()+(" "+SliderConfig.Unit||""));break}$("#"+SliderConfig.InputMin).val(Sl.values[0]);$("#"+SliderConfig.InputMax).val(Sl.values[1])}});$("#"+$(this).attr("id")+" a").eq(0).addClass("ui-slider-handle-left");$("#"+$(this).attr("id")+" a").eq(1).addClass("ui-slider-handle-right");switch(JsConfig.Lng){case"fr":$("#Lib"+$(this).attr("id")).val("Entre "+SliderConfig.Min.formatNumber()+" et plus de "+SliderConfig.Max.formatNumber()+(" "+SliderConfig.Unit||""));break;case"uk":$("#Lib"+$(this).attr("id")).val("Between "+SliderConfig.Min.formatNumber()+" and more than "+SliderConfig.Max.formatNumber()+(" "+SliderConfig.Unit||""));break}});$("form").each(function(i){var FId=(!$.isNue("SFK",true))?$(this).attr("id").replace((SFK||""),""):$(this).attr("id");var FRealId=(FId.indexOf("__",0)!=-1)?FId.substring(0,FId.indexOf("__",0)):FId;if(!$.isNue("JsConfig.Form."+FRealId+".Default",true)){var DefaultChp=eval("JsConfig.Form."+FRealId+".Default");for(var i=0;i