var imagesRep;if(window.location.hostname.indexOf("localhost")<0){imagesRep="/app_themes/etsstyle/images"}else{imagesRep="/cms/app_themes/etsstyle/images"}$(document).ready(function(){if($("img.etslightbox").parent("a").length>0){$("head").append("<link>");var a=$("head").children(":last");a.attr({rel:"stylesheet",type:"text/css",href:"/cmsscripts/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css"});$.getScript("/cmsscripts/jquery-lightbox-0.5/js/jquery.lightbox-0.5.js",function(){setTimeout(function(){$("img.etslightbox").parent("a").lightBox({imageLoading:"/cmsscripts/jquery-lightbox-0.5/images/lightbox-ico-loading.gif",imageBtnClose:"/cmsscripts/jquery-lightbox-0.5/images/lightbox-btn-close.gif",imageBtnPrev:"/cmsscripts/jquery-lightbox-0.5/images/lightbox-btn-prev.gif",imageBtnNext:"/cmsscripts/jquery-lightbox-0.5/images/lightbox-btn-next.gif",imageBlank:"/cmsscripts/jquery-lightbox-0.5/images/lightbox-blank.gif",txtImage:"Image",txtOf:"de"})},100)})}});$(document).ready(function(){if($("img.etsmaphilight").length>0){$.getScript("/CMSScripts/jquery.maphilight.min.js",function(){setTimeout(function(){$.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:false,strokeColor:"336699",strokeOpacity:1,strokeWidth:0,fade:true,alwaysOn:false};$(".etsmaphilight").maphilight()},100)})}});function change(a){jQuery(".etstab:not(#"+a+")").hide();if(jQuery.browser.msie&&jQuery.browser.version.substr(0,3)=="6.0"){jQuery(".etstab#"+a).show()}else{jQuery(".etstab#"+a).fadeIn()}var b=jQuery(".etshtabs a[href=#"+a+"]").parent();b.addClass("select");jQuery(".etshtabs li").not(b).removeClass("select")}jQuery(document).ready(function(){jQuery(".etstab:not(:first)").hide();jQuery(".etstab:first").show();jQuery(".etshtabs a").click(function(){stringref=jQuery(this).attr("href").split("#")[1];change(stringref);return false});if(jQuery(".etshtabs li.select a").length>0){jQuery(".etshtabs li.select a").click()}else{jQuery(".etshtabs li").eq([Math.floor(Math.random()*jQuery(".etshtabs li").length)]).children("a").click()}});$(document).ready(function(){if(!$.browser.msie||$.browser.version.substr(0,1)>=7){$("#etsMCContainer").after('<div class="etsrcbl"></div><div class="etsrcbr"></div><div class="etsrcfiller"></div>')}var a=navigator.userAgent.toLowerCase();if(a.indexOf("firefox")==-1&&a.indexOf("safari")==-1&&a.indexOf("webkit")==-1){if($.browser.msie&&$.browser.version.substr(0,1)<9){$.getScript("/CMSScripts/jquery.curvycorners.source.js")}}});$(document).ready(function(){function c(){$(this).addClass("hovering")}function b(){$(this).removeClass("hovering")}var a={interval:100,sensitivity:20,over:c,timeout:100,out:b};$("li.mmelement").hoverIntent(a)});$(document).ready(function(){$("#menuElem").menu_toggle_adder({highlight_selected_link:"yes"})});$(document).ready(function(){$("table.etsTableauDonnees tbody").each(function(){if($(this).children("tr").length%2===0){$(this).children("tr:even").addClass("etsTableauDonneesTDEven");$(this).children("tr:odd").addClass("etsTableauDonneesTDOdd")}else{$(this).children("tr:even").addClass("etsTableauDonneesTDOdd");$(this).children("tr:odd").addClass("etsTableauDonneesTDEven")}})});$(document).ready(function(){var a=$(".etsBlocRetractableBoutton");a.toggle(function(){$(this).next(".etsBlocRetractable").slideToggle(600);$(this).removeClass("etsBlocRetractableBouttonFerme");$(this).addClass("etsBlocRetractableBoutton")},function(){$(this).next(".etsBlocRetractable").slideToggle(600);$(this).removeClass("etsBlocRetractableBoutton");$(this).addClass("etsBlocRetractableBouttonFerme")});a.next(".etsBlocRetractable").hide();a.removeClass("etsBlocRetractableBoutton");a.addClass("etsBlocRetractableBouttonFerme")});$(document).ready(function(){$("#etsMCTop .Cut").add(".CMSSiteMapList .Cut").each(function(){$(this).replaceWith($(this).html())});if($.browser.msie&&$.browser.version.substr(0,1)<7){$(".etsBellowHeader").css("height","792px")}});(function(a){a.fn.jqGalScroll=function(b){return this.each(function(e){var g=this;g.curImage=0;g.jqthis=a(this).css({position:"relative"});g.jqchildren=g.jqthis.children();g.opts=a.extend({},jqGalScroll,b);g.index=e;g.totalChildren=g.jqchildren.size();var f,c;switch(g.opts.direction){case"horizontal":f=g.totalChildren*g.opts.width;c=g.opts.height;break;case"vertical":f=g.opts.width;c=g.totalChildren*g.opts.height;break;default:f=g.totalChildren*g.opts.width;c=g.totalChildren*g.opts.height;break}g.container=a('<div id="jqGS'+e+'" class="jqGSContainer">').css({position:"relative"});g.ImgContainer=a('<div class="jqGSImgContainer" style="height:'+g.opts.height+'px;position:relative;overflow:hidden">').css({height:g.opts.height,width:g.opts.width,position:"relative",overflow:"hidden"});g.jqthis.css({height:c,width:f});g.jqthis.wrap(g.container);g.jqthis.wrap(g.ImgContainer);g.pagination=a('<div class="jqGSPagination">');g.jqthis.parent().parent().append(g.pagination);var d=a("<ul>").appendTo(g.pagination);var h={x:0,y:0};g.jqchildren.each(function(p){var o="";if(p==0){o="selected"}var l=a('<a href="#'+(p)+'" class="'+o+'">'+(p+1)+"</a>").click(function(){var j=this.index;g.pagination.find(".selected").removeClass("selected");a(this).addClass("selected");var n={};if(g.opts.direction=="diagonal"){n={right:(g.opts.width*j),bottom:(g.opts.height*j)}}else{if(g.opts.direction=="vertical"){n={bottom:(g.opts.height*j)}}else{if(g.opts.direction=="horizontal"){n={right:(g.opts.width*j)}}}}g.jqthis.stop().animate(n,g.opts.speed,g.opts.ease);index=j;return false});var k=l.get(0);k.index=p;a("<li>").appendTo(d).append(l);if(g.opts.direction=="diagonal"){h.x=p*g.opts.width;h.y=p*g.opts.height}else{if(g.opts.direction=="horizontal"){h.x=p*g.opts.width}else{if(g.opts.direction=="vertical"){h.y=p*g.opts.height}}}var r=a(this).css({height:g.opts.height,width:g.opts.width,position:"absolute",left:h.x,top:h.y});var s=r.find("img").hide();var q=a('<div class="jqGSLoader">').appendTo(r);var i=a('<div class="jqGSTitle">').appendTo(r).css({opacity:g.opts.titleOpacity}).hide();var m=new Image();m.onload=function(){m.onload=null;q.fadeOut();s.css({marginLeft:-m.width*0.5,marginTop:0,position:"absolute",left:"50%",top:"0%"}).fadeIn();var j=s.attr("alt");if(typeof j!="undefined"){i.text(j).fadeIn()}};m.src=s.attr("src")});a("#imgListFiller").hide()})};jqGalScroll={ease:null,speed:0,height:260,width:508,titleOpacity:0.6,direction:"horizontal"}})(jQuery);$(document).ready(function(){$("body").append('<span id="textResizeControl" style="position: absolute; left: -9999px;">&nbsp;</span>');timer();initialSize=$("#textResizeControl").height()});function checkSize(){var a=$("#textResizeControl").height();if(a!=initialSize){jQueryFunction();initialSize=a}timer()}function timer(){var a=setTimeout("checkSize()",1000)}function jQueryFunction(){};(function(a){a.fn.menu_toggle_adder=function(b){var d={highlight_selected_link:"yes"};var c=a.extend(d,b);if(d.highlight_selected_link=="yes"){a("#menuElem a.CMSListMenuLinkHighlighted").addClass("menu_selected");a("#menuElem li ul li a.CMSListMenuLinkHighlighted").parent("li").parent("ul").parent("li").children().eq(0).addClass("menu_selected")}a("#menuElem a:not(.menu_selected)").parent("li").children("ul").hide();a("#menuElem>li>a").parent().has("ul").children("a:not(.menu_selected)").each(function(){a(this).addClass("togglerBack")});a("#menuElem>li>a").parent().has("ul").children("a.menu_selected").each(function(){a(this).addClass("toggledBack")});a("#menuElem>li>a").each(function(){var f=a(this);var e=f.attr("class");if(f.parent().attr("class").indexOf("tampon")<0){if(e.indexOf("toggledBack")>0){f.toggle(function(){a(this).nextAll("ul").slideUp(600);f.attr("class","togglerBack")},function(){a(this).nextAll("ul").slideDown(600);f.attr("class","toggledBack")})}else{if(e.indexOf("togglerBack")>0){f.toggle(function(){a(this).nextAll("ul").slideDown(600);f.attr("class","toggledBack")},function(){a(this).nextAll("ul").slideUp(600);f.attr("class","togglerBack")})}}}})}})(jQuery);﻿/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
