function findObj(a){if(document.getElementById){return document.getElementById(a)}else{if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b]}}else{if(!document.getElementById&&!document.all){document.getElementById=function(b){return{style:{}}}}}}}function insertAfter(c,a){var b=a.parentNode;if(b.lastChild==a){b.appendChild(c)}else{b.insertBefore(c,a.nextSibling)}}function inArray(b,c,d){var a;for(a=0;a<b.length;a++){if(b[a]===c){if(!d){return true}else{return a}}}return false}function setOpacity(c,b,a){var d=findObj(c);b=(b==100&&a)?99.999:b;d.style.filter="alpha(opacity:"+b+")";d.style.KHTMLOpacity=b/100;d.style.MozOpacity=b/100;d.style.opacity=b/100}function fadeIn(b,a){if(a<=100){setOpacity(b,a);a+=5;window.setTimeout("fadeIn('"+b+"',"+a+")",5)}}function fadeOut(b,a){if(a>=0){setOpacity(b,a);a-=5;window.setTimeout("fadeOut('"+b+"',"+a+")",5)}}function newWindowsForLink(d){if(!document.getElementsByTagName){return false}var c=new RegExp(d,"g"),a=document.getElementsByTagName("A"),b;for(b=a.length-1;b>=0;b--){if(a[b].className&&a[b].className.match(c)){a[b].onclick=function(){window.open(this.href);return false}}}return}jQuery(function(){jQuery.fn.fancyzoom.defaultsOptions.imgDir="./script/ressources/";jQuery("figure > a").fancyzoom()});jQuery(function(){newWindowsForLink("externe")});jQuery(function(){jQuery("nav > ul").each(function(){var c=jQuery(this);c.bind({mouseover:function(d){c.doTimeout("main-nav",250,b,d.target)},mouseout:function(){c.doTimeout("main-nav",500,a)}});function b(e){var d=jQuery(e).closest("li.collapsible");a(d);jQuery(d).siblings().stop().fadeTo(500,0.3);d.children("a").addClass("hover");d.children("ul:hidden").slideDown("fast")}function a(f,e){var d=f?jQuery(f).closest("li.collapsible").siblings():c.children();jQuery(d).siblings().stop().fadeTo(500,1);d.children("a").removeClass("hover");d.children("ul").slideUp("fast")}})});