function tb_getPageSize(){var a=document.documentElement;var b=window.innerWidth||self.innerWidth||a&&a.clientWidth||document.body.clientWidth;var c=window.innerHeight||self.innerHeight||a&&a.clientHeight||document.body.clientHeight;arrayPageSize=[b,c];return arrayPageSize}function tb_parseQuery(a){var b={};if(!a){return b}var c=a.split(/[;&]/);for(var d=0;d<c.length;d++){var e=c[d].split("=");if(!e||e.length!=2){continue}var f=unescape(e[0]);var g=unescape(e[1]);g=g.replace(/\+/g," ");b[f]=g}return b}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&typeof XMLHttpRequest=="function")){$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_overlay").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("slow",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";return false}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_show(a,b,c){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'>");$("#TB_overlay").click(tb_remove)}}if(a===null){a=""}$("body").append("<div id='TB_load'> </div>");$("#TB_load").fadeIn("normal");var d;if(b.indexOf("?")!==-1){d=b.substr(0,b.indexOf("?"))}else{d=b}var e=/\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;var f=d.toLowerCase().match(e);if(f==".jpg"||f==".jpeg"||f==".png"||f==".gif"||f==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(c){TB_TempArray=$("a[@rel="+c+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++){var g=TB_TempArray[TB_Counter].href.toLowerCase().match(e);if(!(TB_TempArray[TB_Counter].href==b)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML=" <span id='TB_next'><a href='#' title='Next'> </a></span> "}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML=" <span id='TB_prev'><a href='#' title='Previous'> </a></span> "}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length}}}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var d=tb_getPageSize();var e=d[0]-100;var f=d[1]-130;var g=imgPreloader.width;var h=imgPreloader.height;if(g>e){h=h*(e/g);g=e;if(h>f){g=g*(f/h);h=f}}else if(h>f){g=g*(f/h);h=f;if(g>e){h=h*(e/g);g=e}}TB_WIDTH=g+20;TB_HEIGHT=h;$("#TB_window").append("<a href='#' id='TB_closeWindowButton' title='Fermer (Esc Key)'> </a>"+TB_PrevHTML+TB_NextHTML+"<div class='display'><img id='TB_Image' src='"+b+"' width='"+g+"' height='"+h+"' alt='"+a+"'/>"+"<div id='TB_caption'>"+a+" <small>"+TB_imageCount+"</small></div></div>").fadeIn("normal");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function i(){if($(document).unbind("click",i)){$(document).unbind("click",i)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,c);return false}$("#TB_prev").click(i)}if(!(TB_NextHTML==="")){function j(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,c);return false}$("#TB_next").click(j)}document.onkeydown=function(a){if(a==null){keycode=event.keyCode}else{keycode=a.which}if(keycode==27){tb_remove()}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";j()}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";i()}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var h=b.replace(/^[^\?]+\??/,"");var i=tb_parseQuery(h);TB_WIDTH=i["width"]*1+20||630;TB_HEIGHT=i["height"]*1+0||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(b.indexOf("TB_iframe")!=-1){urlNoQuery=b.split("TB_");$("#TB_window").append("<div class='display'><div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><a href='#' id='TB_closeWindowButton' title='Fermer (Esc Key)'> </a></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW+10)+"px;height:"+(ajaxContentH+17)+"px;' onload='tb_showIframe()'> </iframe></div>")}else{if($("#TB_window").css("display")!="block"){if(i["modal"]!="true"){$("#TB_window").append("<div class='display'><div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><a href='#' id='TB_closeWindowButton' title='Fermer (Esc Key)'> </a></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(a)}}$("#TB_closeWindowButton").click(tb_remove);if(b.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").html($("#"+i["inlineId"]).html());tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else if(b.indexOf("TB_iframe")!=-1){tb_position();if(frames["TB_iframeContent"]===undefined){$("#TB_load").remove();$("#TB_window").css({display:"block"});$(document).keyup(function(a){var b=a.keyCode;if(b==27){tb_remove()}})}}else{$("#TB_ajaxContent").load(b+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}if(!i["modal"]){document.onkeyup=function(a){if(a==null){keycode=event.keyCode}else{keycode=a.which}if(keycode==27){tb_remove()}}}}catch(j){}}function tb_init(a){$(a).click(function(){var a=this.title||this.name||null;var b=this.href||this.alt;var c=this.rel||false;tb_show(a,b,c);this.blur();return false})}var tb_pathToImage="images/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox")})
/**/
$(document).ready(function(){$('.contact').click(function(){$('#basdepage').ScrollTo(1000);return false});$('#hautdepage').click(function(){$('#top').ScrollTo(1000);return false});$(".over-dark").hover(function(){$(this).toggleClass("over-active");$(this).find("p").toggleClass("over-active");},function(){$(this).toggleClass("over-active");$(this).find("p").toggleClass("over-active");});});jQuery.getPos=function(e)
{var l=0;var t=0;var w=jQuery.intval(jQuery.css(e,'width'));var h=jQuery.intval(jQuery.css(e,'height'));var wb=e.offsetWidth;var hb=e.offsetHeight;while(e.offsetParent){l+=e.offsetLeft+(e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t+=e.offsetTop+(e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);e=e.offsetParent;}
l+=e.offsetLeft+(e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t+=e.offsetTop+(e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);return{x:l,y:t,w:w,h:h,wb:wb,hb:hb};};jQuery.getClient=function(e)
{if(e){w=e.clientWidth;h=e.clientHeight;}else{w=(window.innerWidth)?window.innerWidth:(document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.offsetWidth;h=(window.innerHeight)?window.innerHeight:(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.offsetHeight;}
return{w:w,h:h};};jQuery.getScroll=function(e)
{if(e){t=e.scrollTop;l=e.scrollLeft;w=e.scrollWidth;h=e.scrollHeight;}else{if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop;l=document.documentElement.scrollLeft;w=document.documentElement.scrollWidth;h=document.documentElement.scrollHeight;}else if(document.body){t=document.body.scrollTop;l=document.body.scrollLeft;w=document.body.scrollWidth;h=document.body.scrollHeight;}}
return{t:t,l:l,w:w,h:h};};jQuery.intval=function(v)
{v=parseInt(v);return isNaN(v)?0:v;};jQuery.fn.ScrollTo=function(s){o=jQuery.speed(s);return this.each(function(){new jQuery.fx.ScrollTo(this,o);});};jQuery.fx.ScrollTo=function(e,o)
{var z=this;z.o=o;z.e=e;z.p=jQuery.getPos(e);z.s=jQuery.getScroll();z.clear=function(){clearInterval(z.timer);z.timer=null};z.t=(new Date).getTime();z.step=function(){var t=(new Date).getTime();var p=(t-z.t)/z.o.duration;if(t>=z.o.duration+z.t){z.clear();setTimeout(function(){z.scroll(z.p.y,z.p.x)},13);}else{st=((-Math.cos(p*Math.PI)/2)+0.5)*(z.p.y-z.s.t)+z.s.t;sl=((-Math.cos(p*Math.PI)/2)+0.5)*(z.p.x-z.s.l)+z.s.l;z.scroll(st,sl);}};z.scroll=function(t,l){window.scrollTo(l,t)};z.timer=setInterval(function(){z.step();},13);};
