// jquery.tools.min.js
(function(c){function p(d,a,b){var e=this,l=d.add(this),h=d.find(b.tabs),j=a.jquery?a:d.children(a),i;h.length||(h=d.children());j.length||(j=d.parent().find(a));j.length||(j=c(a));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(b.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(i>=0)return e;f=b.initialIndex;k=h.eq(f)}if(f===i)return e;g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[b.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});i=f;h.removeClass(b.current);k.addClass(b.current);return e}},getConf:function(){return b},getTabs:function(){return h},getPanes:function(){return j},getCurrentPane:function(){return j.eq(i)},getCurrentTab:function(){return h.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(b[g])&&c(e).bind(g,b[g]);e[g]=function(k){c(e).bind(g,k);return e}});if(b.history&&c.fn.history){c.tools.history.init(h);b.event="history"}h.each(function(f){c(this).bind(b.event,function(g){e.click(f,g);return g.preventDefault()})});j.find("a[href^=#]").click(function(f){e.click(c(this).attr("href"),f)});if(location.hash)e.click(location.hash);else if(b.initialIndex===0||b.initialIndex>0)e.click(b.initialIndex)}c.tools=c.tools||{version:"1.2.2"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,a){o[d]=a}};var o={"default":function(d,a){this.getPanes().hide().eq(d).show();a.call()},fade:function(d,a){var b=this.getConf(),e=b.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(b.fadeInSpeed,a)},slide:function(d,a){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,a)},ajax:function(d,a){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),a)}},m;c.tools.tabs.addEffect("horizontal",function(d,a){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();a.call()})});c.fn.tabs=function(d,a){var b=this.data("tabs");if(b)return b;if(c.isFunction(a))a={onBeforeClick:a};a=c.extend({},c.tools.tabs.conf,a);this.each(function(){b=new p(c(this),d,a);c(this).data("tabs",b)});return a.api?b:this}})(jQuery);(function(b){function h(c){if(c){var a=d.contentWindow.document;a.open().close();a.location.hash=c}}var g,d,f,i;b.tools=b.tools||{version:"1.2.2"};b.tools.history={init:function(c){if(!i){if(b.browser.msie&&b.browser.version<"8"){if(!d){d=b("<iframe/>").attr("src","javascript:false;").hide().get(0);b("body").append(d);setInterval(function(){var a=d.contentWindow.document;a=a.location.hash;g!==a&&b.event.trigger("hash",a)},100);h(location.hash||"#")}}else setInterval(function(){var a=location.hash;a!==g&&b.event.trigger("hash",a)},100);f=!f?c:f.add(c);c.click(function(a){var e=b(this).attr("href");d&&h(e);if(e.slice(0,1)!="#"){location.href="#"+e;return a.preventDefault()}});i=true}}};b(window).bind("hash",function(c,a){a?f.filter(function(){var e=b(this).attr("href");return e==a||e==a.replace("#","")}).trigger("history",[a]):f.eq(0).trigger("history",[a]);g=a;window.location.hash=g});b.fn.history=function(c){b.tools.history.init(this);return this.bind("history",c)}})(jQuery);
// jquery.scrollTo-1.4.0-min.js
;(function(h){var m=h.scrollTo=function(b,c,g){h(window).scrollTo(b,c,g)};m.defaults={axis:'y',duration:1};m.window=function(b){return h(window).scrollable()};h.fn.scrollable=function(){return this.map(function(){var b=this.parentWindow||this.defaultView,c=this.nodeName=='#document'?b.frameElement||b:this,g=c.contentDocument||(c.contentWindow||c).document,i=c.setInterval;return c.nodeName=='IFRAME'||i&&h.browser.safari?g.body:i?g.documentElement:this})};h.fn.scrollTo=function(r,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};a=h.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=h(k),d=r,l,e={},p=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(d)){d=n(d);break}d=h(d,this);case'object':if(d.is||d.style)l=(d=h(d)).offset()}h.each(a.axis.split(''),function(b,c){var g=c=='x'?'Left':'Top',i=g.toLowerCase(),f='scroll'+g,s=k[f],t=c=='x'?'Width':'Height',v=t.toLowerCase();if(l){e[f]=l[i]+(p?0:s-o.offset()[i]);if(a.margin){e[f]-=parseInt(d.css('margin'+g))||0;e[f]-=parseInt(d.css('border'+g+'Width'))||0}e[f]+=a.offset[i]||0;if(a.over[i])e[f]+=d[v]()*a.over[i]}else e[f]=d[i];if(/^\d+$/.test(e[f]))e[f]=e[f]<=0?0:Math.min(e[f],u(t));if(!b&&a.queue){if(s!=e[f])q(a.onAfterFirst);delete e[f]}});q(a.onAfter);function q(b){o.animate(e,j,a.easing,b&&function(){b.call(this,r,a)})};function u(b){var c='scroll'+b,g=k.ownerDocument;return p?Math.max(g.documentElement[c],g.body[c]):k[c]}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);
// senticad.js
$(function(){loading='<p><img src="/textpattern/template/img/loading.gif" /></p>';$('.toggleOn .close').css('display','block');linketude=$('.go-etudes').attr("href");linkurbanisme=$('.go-urbanisme').attr("href");linkenquete=$('.go-enquetes').attr("href");linksavoir=$('.go-savoirfaire').attr("href").replace(/\#.*$/,'');linkcontact=$('.go-contact').attr('href').replace(/\#.*$/,'');linkmentions=$('.go-mentionslegales').attr('href').replace(/\#.*$/,'');$('.go-etudes').attr('href',linketude+' #content_etudes');$('.go-urbanisme').attr('href',linkurbanisme+' #content_urbanisme');$('.go-enquetes').attr('href',linkenquete+' #content_enquetes');$("#about .go-savoirfaire, #about .close").click(function(){var toggleabout=$("#about .article_container");var loadsavoir=linksavoir+' #arts-savoir_faire';if($(toggleabout).hasClass('toggleOn')){$('#about .close').fadeOut("slow",function(){$(toggleabout).removeClass('toggleOn').slideUp().addClass('toggleOff');});}
else{$("#about .ajax").load(loadsavoir,function(){$(toggleabout).removeClass('toggleOff').slideDown(function(){$('#about .close').fadeIn("slow");}).addClass('toggleOn');});}
return false;});$('.li-main_nav').hover(function(){$('.li-main_nav').not(this).stop().fadeTo('fast',0.5);},function(){$('.li-main_nav').not(this).stop().fadeTo('fast',1);});var togglesection=$('#section .article_container');$(togglesection).addClass("toggleOff");if($(togglesection).hasClass('toggleOff')){$("#section .a-main_nav").click(function(){$(togglesection).removeClass('toggleOff').slideDown(function(){$('#section .close').fadeIn("slow");}).addClass('toggleOn');});}
$('#section .close').click(function(){$('#section .close').fadeOut("slow",function(){$(togglesection).removeClass('toggleOn').slideUp().addClass('toggleOff');$("#section .a-main_nav").removeClass('fii');});return false;});var art_height=0;$("#section .article").each(function(){if($(this).height()>art_height){art_height=$(this).height();}});$('.items').css({width:'2000em',position:'absolute',top:'0',left:'0'});$('#section .article').css({clear:'none',float:'left',marginRight:'25px'});$('.scrollable').height(art_height);$('#nav_section a').attr('href','').click(function(){$('#nav_section a').not(this).removeClass('fii');$(this).addClass('fii');if($(this).attr('rel')){}
else{$('#nav_section a').each(function(index){$(this).attr('rel',index);});}
var rel=$(this).attr('rel');var position=-725*rel+"px";$('.items').animate({left:position},500);return false;});$('#main_nav').tabs("#section .article_container > .tab",{current:'fii',effect:'ajax',initialIndex:'-1',onBeforeClick:function(event,tabIndex){var fleche=$('.indicateur div');if(tabIndex==0){$(fleche).animate({"left":"100px"},500);}
if(tabIndex==1){$(fleche).animate({"left":"350px"},500);}
if(tabIndex==2){$(fleche).animate({"left":"600px"},500);}
$("#section .article_container > .tab").html(loading);},onClick:function(){$('.items').css({width:'2000em',position:'absolute',top:'0',left:'0'});$('#section .article').css({clear:'none',float:'left',marginRight:'25px'});var art_height=0;$("#section .article").each(function(){if($(this).height()>art_height){art_height=$(this).height();}});$('.scrollable').animate({"height":art_height},"slow");$('#nav_section a').click(function(){$('#nav_section a').not(this).removeClass('fii');$(this).addClass('fii');if($(this).attr('rel')){}
else{$('#nav_section a').each(function(index){$(this).attr('rel',index);});}
var rel=$(this).attr('rel');var position=-725*rel+"px";$('.items').animate({left:position},500);return false;});}});var togglefooter=$('#footer .article_container');var loadcontact=linkcontact+' #content_contact';var loadmentions=linkmentions+' #content_mentionslegales';$(".go-contact, .go-mentionslegales").click(function(){var clic=this;$(togglefooter).removeClass('toggleOff').slideDown(function(){$('#footer .close').fadeIn("slow");if($(clic).is('.go-contact')){$("#footer .ajax").html(loading).load(loadcontact,function(){$.scrollTo("#content_contact",800);});};if($(clic).is('.go-mentionslegales')){$("#footer .ajax").html(loading).load(loadmentions,function(){$.scrollTo("#content_mentionslegales",800);});};}).addClass('toggleOn');$('.close_footer').show();return false;});$('#footer .close').click(function(){$('.close_footer').hide();$(this).fadeOut("slow",function(){$(togglefooter).removeClass('toggleOn').slideUp().addClass('toggleOff');});return false;});});
