window.Modernizr=function(ap,ao,an){function O(){al.input=function(e){for(var d=0,f=e.length;d<f;d++){R[e[d]]=!!(e[d] in ae)}return R}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),al.inputtypes=function(b){for(var l=0,k,j,g,c=b.length;l<c;l++){ae.setAttribute("type",j=b[l]),k=ae.type!=="text",k&&(ae.value=ad,ae.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(j)&&ae.style.WebkitAppearance!==an?(aj.appendChild(ae),g=ao.defaultView,k=g.getComputedStyle&&g.getComputedStyle(ae,null).WebkitAppearance!=="textfield"&&ae.offsetHeight!==0,aj.removeChild(ae)):/^(search|tel)$/.test(j)||(/^(url|email)$/.test(j)?k=ae.checkValidity&&ae.checkValidity()===!1:/^color$/.test(j)?(aj.appendChild(ae),aj.offsetWidth,k=ae.value!=ad,aj.removeChild(ae)):k=ae.value!=ad)),T[b[l]]=!!k}return T}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function Q(f,e){var h=f.charAt(0).toUpperCase()+f.substr(1),g=(f+" "+Z.join(h+" ")+h).split(" ");return !!S(g,e)}function S(e,c){for(var f in e){if(af[e[f]]!==an&&(!c||c(e[f],ag))){return !0}}}function U(d,c){return(""+d).indexOf(c)!==-1}function W(d,c){return typeof d===c}function Y(d,c){return aa(ab.join(d+";")+(c||""))}function aa(b){af.cssText=b}var am="1.7pre",al={},ak=!0,aj=ao.documentElement,ai=ao.head||ao.getElementsByTagName("head")[0],ah="modernizr",ag=ao.createElement(ah),af=ag.style,ae=ao.createElement("input"),ad=":)",ac=Object.prototype.toString,ab=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),Z="Webkit Moz O ms Khtml".split(" "),X={svg:"http://www.w3.org/2000/svg"},V={},T={},R={},P=[],N,M=function(b){var h=ao.createElement("style"),g=ao.createElement("div"),f;h.textContent=b+"{#modernizr{height:3px}}",ai.appendChild(h),g.id="modernizr",aj.appendChild(g),f=g.offsetHeight===3,h.parentNode.removeChild(h),g.parentNode.removeChild(g);return !!f},K=function(){function c(h,g){g=g||ao.createElement(b[h]||"div");var a=(h="on"+h) in g;a||(g.setAttribute||(g=ao.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(h,""),a=W(g[h],"function"),W(g[h],an)||(g[h]=an),g.removeAttribute(h))),g=null;return a}var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c}(),J=({}).hasOwnProperty,I;W(J,an)||W(J.call,an)?I=function(d,c){return c in d&&W(d.constructor.prototype[c],an)}:I=function(d,c){return J.call(d,c)},V.touch=function(){return"ontouchstart" in ap||M("@media ("+ab.join("touch-enabled),(")+"modernizr)")},V.rgba=function(){aa("background-color:rgba(150,255,150,.5)");return U(af.backgroundColor,"rgba")};for(var L in V){I(V,L)&&(N=L.toLowerCase(),al[N]=V[L](),P.push((al[N]?"":"no-")+N))}al.input||O(),al.crosswindowmessaging=al.postmessage,al.historymanagement=al.history,al.addTest=function(d,c){d=d.toLowerCase();if(!al[d]){c=!!c(),aj.className+=" "+(c?"":"no-")+d,al[d]=c;return al}},aa(""),ag=ae=null,ak&&ap.attachEvent&&function(){var b=ao.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(F,E){function q(h,g){var l=-1,k=h.length,j,i=[];while(++l<k){j=h[l],(g=j.media||g)!="screen"&&i.push(q(j.imports,g),j.cssText)}return i.join("")}function r(d){var c=-1;while(++c<B){d.createElement(C[c])}}var D="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",C=D.split("|"),B=C.length,A=new RegExp("(^|\\s)("+D+")","gi"),z=new RegExp("<(/*)("+D+")","gi"),y=new RegExp("(^|[^\\n]*?\\s)("+D+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),x=E.createDocumentFragment(),w=E.documentElement,v=w.firstChild,u=E.createElement("body"),t=E.createElement("style"),s;r(E),r(x),v.insertBefore(t,v.firstChild),t.media="print",F.attachEvent("onbeforeprint",function(){var b=-1,i=q(E.styleSheets,"all"),d=[],h;s=s||E.body;while((h=y.exec(i))!=null){d.push((h[1]+h[2]+h[3]).replace(A,"$1.iepp_$2")+h[4])}t.styleSheet.cssText=d.join("\n");while(++b<B){var g=E.getElementsByTagName(C[b]),f=g.length,e=-1;while(++e<f){g[e].className.indexOf("iepp_")<0&&(g[e].className+=" iepp_"+C[b])}}x.appendChild(s),w.appendChild(u),u.className=s.className,u.innerHTML=s.innerHTML.replace(z,"<$1font")}),F.attachEvent("onafterprint",function(){u.innerHTML="",w.removeChild(u),w.appendChild(s),t.styleSheet.cssText=""})}(ap,ao),al._enableHTML5=ak,al._version=am,aj.className=aj.className.replace(/\bno-js\b/,"")+" js "+P.join(" ");return al}(this,this.document);(function(j,o,r){var q="hashchange",l=document,n,m=j.event.special,k=l.documentMode,p="on"+q in o&&(k===r||k>7);function s(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}j.fn[q]=function(a){return a?this.bind(q,a):this.trigger(q)};j.fn[q].delay=50;m[q]=j.extend(m[q],{setup:function(){if(p){return false}j(n.start)},teardown:function(){if(p){return false}j(n.stop)}});n=(function(){var d={},e,a=s(),c=function(h){return h},b=c,f=c;d.start=function(){e||g()};d.stop=function(){e&&clearTimeout(e);e=r};function g(){var h=s(),i=f(a);if(h!==a){b(a=h,i);j(o).trigger(q)}else{if(i!==a){location.href=location.href.replace(/#.*/,"")+i}}e=setTimeout(g,j.fn[q].delay)}j.browser.msie&&!p&&(function(){var i,h;d.start=function(){if(!i){h=j.fn[q].src;h=h&&h+s();i=j('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){h||b(s());g()}).attr("src",h||"javascript:0").insertAfter("body")[0].contentWindow;l.onpropertychange=function(){try{if(event.propertyName==="title"){i.document.title=l.title}}catch(t){}}}};d.stop=c;f=function(){return s(i.location.href)};b=function(w,z){var x=i.document,y=j.fn[q].domain;if(w!==z){x.title=l.title;x.open();y&&x.write('<script>document.domain="'+y+'"<\/script>');x.close();i.location.hash=w}}})();return d})()})(jQuery,this);(function(b){var a=0;b.getScrollbarWidth=function(){if(!a){if(b.browser.msie){var e=b('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body"),d=b('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body");a=e.width()-d.width();e.add(d).remove()}else{var c=b("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});a=100-c.width();c.parent().remove()}}return a}})(jQuery);jQuery.extend(jQuery.easing,{easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a}});(function(a){a.fn.dd_validate=function(){var b=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);a(this).filter('[class*="dd_validate"]').each(function(){var e,f=typeof(a(this).attr("data-dd_invalid-message"))!=="undefined"?a('<span class="dd_invalid-message"><span class="validate-arrow"></span>'+a(this).attr("data-dd_invalid-message")+' <span class="validate-close" title="Fermer">x</span></span>'):"",c;a(this).addClass("dd_not-validated");if(a(this).hasClass("dd_validate-email")||a(this).hasClass("dd_validate-courriel")){e="email";c="blur"}else{if(a(this).hasClass("dd_validate-tel")||a(this).hasClass("dd_validate-telephone")||a(this).hasClass("dd_validate-phone")||a(this).hasClass("dd_validate-numeric")){e="num";c="keyup keydown blur"}else{e="text";c="blur"}}function d(g){switch(e){case"num":case"phone":return((g.keyCode>=48&&g.keyCode<=57)||(g.keyCode>=96&&g.keyCode<=105)||g.keyCode==8||g.keyCode==9||g.keyCode==37||g.keyCode==39||g.keyCode==13||(g.type=="blur"&&a(g.target).val().length>0));break;case"email":return b.test(a(g.target).val());break;case"text":return a(g.target).val().length>0;default:return true}}a(this).wrap('<div class="dd_validate-wrapper" />"');a(this).bind(c,function(g){$this=a(this);if(g.type=="blur"){if(d(g)){$this.removeClass("dd_validate-invalid dd_not-validated").parent().find(".dd_invalid-message").fadeOut(150).queue(function(){a(this).remove();a(this).dequeue()})}else{$this.parent().find(".dd_invalid-message").remove();$this.addClass("dd_validate-invalid dd_not-validated").after(f);$this.parent().find(".dd_invalid-message").hide().fadeIn(150).css("left",$this.outerWidth())}}return d(g)})});a(".dd_invalid-message .validate-close").live("click",function(){a(this).parent().fadeOut(100,function(){a(this).remove()})});a(this).first().closest("form").submit(function(c){if(!a(this).hasClass("formComplete")){c.preventDefault();a(this).find(":text, textarea").blur();if(a(this).find(".dd_not-validated").length==0){a(this).addClass("formComplete").submit()}}})}})(jQuery);$.extend({getUrlVars:function(){var d=[],c;var a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var b=0;b<a.length;b++){c=a[b].split("=");d.push(c[0]);d[c[0]]=c[1]}return d},getUrlVar:function(a){return $.getUrlVars()[a]}});(function(a){a.fn.dd_lightbox=function(){if(this.length===0){return this}else{var c=this,b={};b.params={slowFade:200,fastFade:80,markup:a('<div id="dd-lightbox"><div><img></div></div>')};b.controls={prev:a('<div class="dd-lb-control" id="dd-lb-controls-prev" title="Précédent">Précédent</div>'),next:a('<div class="dd-lb-control" id="dd-lb-controls-next" title="Suivant">Suivant</div>'),close:a('<div class="dd-lb-control" id="dd-lb-controls-close" title="Fermer">Fermer</div>'),caption:a('<p   class="dd-lb-control" id="dd-lb-title">Chargement en cours…</p>'),get:function(){return a(".dd-lb-control").not("#dd-lb-title, #dd-lb-controls-close")},appendTo:function(f){f.append(this.prev).append(this.next);this.get().show()},remove:function(){this.get().remove()}};b.params.windowHeight=function(){return a(window).height()};a(window).bind("resize",function(){b.params.windowHeight()});var d=b.params.fastFade,e=b.params.slowFade;return c.each(function(){var f=a(this);f.siblings=a("[rel="+(f.attr("rel")||"youkaidiyoukaida")+"]");f.siblingsNumber=f.siblings.length;f.index=c.index(f);f.bind("click",function(h){h.preventDefault();b.params.markup.appendTo("body").fadeIn(e);f.fullsize=f.attr("href");var g=a("#dd-lightbox").data("action","c");g.wrapper=g.find("> div");g.image=g.find("img");g.image.setSource=function(){return a("#dd-lightbox img").attr("src",f.fullsize+"?cache="+Math.floor(Math.random()*100001))};g.image.originalHeight=0;b.controls.caption.appendTo(g.wrapper);g.wrapper.css({width:a(this).width(),height:a(this).height(),top:a(window).height()/2-a(this).height()/2});a(window).bind("resize",function(){g.wrapper.css("top",a(window).height()/2-g.image.height()/2);if(b.params.windowHeight()<g.image.originalHeight){g.image.height(b.params.windowHeight);g.wrapper.width(g.image.width())}});g.image.setSource().data("action","n").bind("load",function(){g.image.originalHeight=g.image.height();a(window).resize();b.controls.next.add(g.image).add(b.controls.caption).data("action",f.index===f.siblingsNumber-1?"c":"n");b.controls.prev.data("action",f.index===0?"c":"p");b.controls.close.appendTo(g.wrapper).data("action","c");f.current=c.eq(f.index);f.author=f.current.attr("data-auteur")?"Photo: "+f.current.attr("data-auteur"):"";f.title=f.current.attr("title")||"";if(f.title&&f.author){b.controls.caption.text(f.title+" | "+f.author)}else{if(f.title){b.controls.caption.text(f.title)}else{if(f.author){b.controls.caption.text(f.author)}else{b.controls.caption.remove()}}}if(f.siblingsNumber<=1){b.controls.remove()}else{f.next=f.siblings.eq(f.index+1);f.prev=f.siblings.eq(f.index-1);b.controls.appendTo(g.wrapper)}g.wrapper.animate({width:g.image.width(),height:g.image.height(),top:a(window).height()/2-g.image.height()/2},e);a(this).fadeIn(d);g.wrapper.hover(function(i){if(i.type=="mouseleave"){a(".dd-lb-control").fadeOut(d)}else{a(".dd-lb-control").fadeIn(d)}})});g.bind("click",function(j){j.preventDefault();var i=a(j.target).data("action");switch(i){case"p":f.index=f.index-1;f.fullsize=f.prev.attr("href");break;case"n":f.index=f.index+1;f.fullsize=f.next.attr("href");break;case"c":g.fadeOut(e,function(){b.controls.remove();a(this).remove()});default:break}g.image.fadeOut(e,function(){g.image.setSource();b.controls.caption.remove();b.controls.caption.appendTo(g.wrapper).text("Chargement en cours...")})})})})}}})(jQuery);function object(b){function a(){}a.prototype=b;return new a()}$(function(){function a(){if($("#googlemap").length){window.googlemaps_place=function(){function o(q){q=q||{};google.maps.OverlayView.apply(this,arguments);this.content_=q.content||"";this.disableAutoPan_=q.disableAutoPan||false;this.maxWidth_=q.maxWidth||0;this.pixelOffset_=q.pixelOffset||new google.maps.Size(0,0);this.position_=q.position||new google.maps.LatLng(0,0);this.zIndex_=q.zIndex||null;this.boxClass_=q.boxClass||"infoBox";this.boxStyle_=q.boxStyle||{};this.closeBoxMargin_=q.closeBoxMargin||"2px";this.closeBoxURL_=q.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";if(q.closeBoxURL===""){this.closeBoxURL_=""}this.infoBoxClearance_=q.infoBoxClearance||new google.maps.Size(1,1);this.isHidden_=q.isHidden||false;this.alignBottom_=q.alignBottom||false;this.pane_=q.pane||"floatPane";this.enableEventPropagation_=q.enableEventPropagation||false;this.div_=null;this.closeListener_=null;this.eventListener1_=null;this.eventListener2_=null;this.eventListener3_=null;this.moveListener_=null;this.contextListener_=null;this.fixedWidthSet_=null}o.prototype=new google.maps.OverlayView();o.prototype.createInfoBoxDiv_=function(){var s;var r=this;var q=function(u){u.cancelBubble=true;if(u.stopPropagation){u.stopPropagation()}};var t=function(u){u.returnValue=false;if(u.preventDefault){u.preventDefault()}if(!r.enableEventPropagation_){q(u)}};if(!this.div_){this.div_=document.createElement("div");this.setBoxStyle_();if(typeof this.content_.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+this.content_}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(this.content_)}this.getPanes()[this.pane_].appendChild(this.div_);this.addClickHandler_();if(this.div_.style.width){this.fixedWidthSet_=true}else{if(this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_){this.div_.style.width=this.maxWidth_;this.div_.style.overflow="auto";this.fixedWidthSet_=true}else{s=this.getBoxWidths_();this.div_.style.width=(this.div_.offsetWidth-s.left-s.right)+"px";this.fixedWidthSet_=false}}this.panBox_(this.disableAutoPan_);if(!this.enableEventPropagation_){this.eventListener1_=google.maps.event.addDomListener(this.div_,"mousedown",q);this.eventListener2_=google.maps.event.addDomListener(this.div_,"click",q);this.eventListener3_=google.maps.event.addDomListener(this.div_,"dblclick",q)}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",t);google.maps.event.trigger(this,"domready")}};o.prototype.getCloseBoxImg_=function(){var q="";if(this.closeBoxURL_!==""){q="<img";q+=" src='"+this.closeBoxURL_+"'";q+=" align=right";q+=" style='";q+=" position: relative;";q+=" cursor: pointer;";q+=" margin: "+this.closeBoxMargin_+";";q+="'>"}return q};o.prototype.addClickHandler_=function(){var q;if(this.closeBoxURL_!==""){q=this.div_.firstChild;this.closeListener_=google.maps.event.addDomListener(q,"click",this.getCloseClickHandler_())}else{this.closeListener_=null}};o.prototype.getCloseClickHandler_=function(){var q=this;return function(r){r.cancelBubble=true;if(r.stopPropagation){r.stopPropagation()}q.close();google.maps.event.trigger(q,"closeclick")}};o.prototype.panBox_=function(t){var E;var F;var v=0,z=0;if(!t){E=this.getMap();if(E instanceof google.maps.Map){if(!E.getBounds().contains(this.position_)){E.setCenter(this.position_)}F=E.getBounds();var r=E.getDiv();var y=r.offsetWidth;var w=r.offsetHeight;var C=this.pixelOffset_.width;var D=this.pixelOffset_.height;var x=this.div_.offsetWidth;var s=this.div_.offsetHeight;var A=this.infoBoxClearance_.width;var B=this.infoBoxClearance_.height;var G=this.getProjection().fromLatLngToContainerPixel(this.position_);if(G.x<(-C+A)){v=G.x+C-A}else{if((G.x+x+C+A)>y){v=G.x+x+C+A-y}}if(this.alignBottom_){if(G.y<(-D+B+s)){z=G.y+D-B-s}else{if((G.y+D+B)>w){z=G.y+D+B-w}}}else{if(G.y<(-D+B)){z=G.y+D-B}else{if((G.y+s+D+B)>w){z=G.y+s+D+B-w}}}if(!(v===0&&z===0)){var u=E.getCenter();E.panBy(v,z)}}}};o.prototype.setBoxStyle_=function(){var r,q;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";q=this.boxStyle_;for(r in q){if(q.hasOwnProperty(r)){this.div_.style[r]=q[r]}}if(typeof this.div_.style.opacity!=="undefined"&&this.div_.style.opacity!==""){this.div_.style.filter="alpha(opacity="+(this.div_.style.opacity*100)+")"}this.div_.style.position="absolute";this.div_.style.visibility="hidden";if(this.zIndex_!==null){this.div_.style.zIndex=this.zIndex_}}};o.prototype.getBoxWidths_=function(){var r;var s={top:0,bottom:0,left:0,right:0};var q=this.div_;if(document.defaultView&&document.defaultView.getComputedStyle){r=q.ownerDocument.defaultView.getComputedStyle(q,"");if(r){s.top=parseInt(r.borderTopWidth,10)||0;s.bottom=parseInt(r.borderBottomWidth,10)||0;s.left=parseInt(r.borderLeftWidth,10)||0;s.right=parseInt(r.borderRightWidth,10)||0}}else{if(document.documentElement.currentStyle){if(q.currentStyle){s.top=parseInt(q.currentStyle.borderTopWidth,10)||0;s.bottom=parseInt(q.currentStyle.borderBottomWidth,10)||0;s.left=parseInt(q.currentStyle.borderLeftWidth,10)||0;s.right=parseInt(q.currentStyle.borderRightWidth,10)||0}}}return s};o.prototype.onRemove=function(){if(this.div_){this.div_.parentNode.removeChild(this.div_);this.div_=null}};o.prototype.draw=function(){this.createInfoBoxDiv_();var q=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=(q.x+this.pixelOffset_.width)+"px";if(this.alignBottom_){this.div_.style.bottom=-(q.y+this.pixelOffset_.height)+"px"}else{this.div_.style.top=(q.y+this.pixelOffset_.height)+"px"}if(this.isHidden_){this.div_.style.visibility="hidden"}else{this.div_.style.visibility="visible"}};o.prototype.setOptions=function(q){if(typeof q.boxClass!=="undefined"){this.boxClass_=q.boxClass;this.setBoxStyle_()}if(typeof q.boxStyle!=="undefined"){this.boxStyle_=q.boxStyle;this.setBoxStyle_()}if(typeof q.content!=="undefined"){this.setContent(q.content)}if(typeof q.disableAutoPan!=="undefined"){this.disableAutoPan_=q.disableAutoPan}if(typeof q.maxWidth!=="undefined"){this.maxWidth_=q.maxWidth}if(typeof q.pixelOffset!=="undefined"){this.pixelOffset_=q.pixelOffset}if(typeof q.position!=="undefined"){this.setPosition(q.position)}if(typeof q.zIndex!=="undefined"){this.setZIndex(q.zIndex)}if(typeof q.closeBoxMargin!=="undefined"){this.closeBoxMargin_=q.closeBoxMargin}if(typeof q.closeBoxURL!=="undefined"){this.closeBoxURL_=q.closeBoxURL}if(typeof q.infoBoxClearance!=="undefined"){this.infoBoxClearance_=q.infoBoxClearance}if(typeof q.isHidden!=="undefined"){this.isHidden_=q.isHidden}if(typeof q.enableEventPropagation!=="undefined"){this.enableEventPropagation_=q.enableEventPropagation}if(this.div_){this.draw()}};o.prototype.setContent=function(q){this.content_=q;if(this.div_){if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null}if(!this.fixedWidthSet_){this.div_.style.width=""}if(typeof q.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+q}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(q)}if(!this.fixedWidthSet_){this.div_.style.width=this.div_.offsetWidth+"px";this.div_.innerHTML=this.getCloseBoxImg_()+q}this.addClickHandler_()}google.maps.event.trigger(this,"content_changed")};o.prototype.setPosition=function(q){this.position_=q;if(this.div_){this.draw()}google.maps.event.trigger(this,"position_changed")};o.prototype.setZIndex=function(q){this.zIndex_=q;if(this.div_){this.div_.style.zIndex=q}google.maps.event.trigger(this,"zindex_changed")};o.prototype.getContent=function(){return this.content_};o.prototype.getPosition=function(){return this.position_};o.prototype.getZIndex=function(){return this.zIndex_};o.prototype.show=function(){this.isHidden_=false;if(this.div_){this.div_.style.visibility="visible"}};o.prototype.hide=function(){this.isHidden_=true;if(this.div_){this.div_.style.visibility="hidden"}};o.prototype.open=function(s,r){var q=this;if(r){this.position_=r.getPosition();this.moveListener_=google.maps.event.addListener(r,"position_changed",function(){q.setPosition(this.getPosition())})}this.setMap(s);if(this.div_){this.panBox_()}};o.prototype.close=function(){if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null}if(this.eventListener1_){google.maps.event.removeListener(this.eventListener1_);google.maps.event.removeListener(this.eventListener2_);google.maps.event.removeListener(this.eventListener3_);this.eventListener1_=null;this.eventListener2_=null;this.eventListener3_=null}if(this.moveListener_){google.maps.event.removeListener(this.moveListener_);this.moveListener_=null}if(this.contextListener_){google.maps.event.removeListener(this.contextListener_);this.contextListener_=null}this.setMap(null)};var h={zoom:16,center:new google.maps.LatLng(46.522545,6.64244),panControl:false,mapTypeId:google.maps.MapTypeId.ROADMAP},d=new google.maps.Map(document.getElementById("googlemap"),h),i={position:new google.maps.LatLng(46.520716,6.640255),title:"",map:d},p={position:new google.maps.LatLng(46.522567,6.64381),title:"",map:d},e={position:new google.maps.LatLng(46.522523,6.642241),title:"",map:d},m={closeBoxURL:"",isHidden:false,enableEventPropagation:true,disableAutoPan:true},l=object(m),j=object(m),g=object(m);l.content='<div class="gmap-infobox" id="perdonnet">Studio de Perdonnet</a>';l.position=i.position;j.content='<div class="gmap-infobox" id="bethusy">Studio de Béthusy</a>';j.position=p.position;g.content='<div class="gmap-infobox" id="refectoire">Aula, bureau et<br> réfectoire de Béthusy</a>';g.position=e.position;var k=new o(l);var f=new o(j);var n=new o(g);new google.maps.Marker(i);new google.maps.Marker(p);new google.maps.Marker(e);k.open(d);f.open(d);n.open(d)};jQuery.getScript("http://maps.google.com/maps/api/js?sensor=false&async=2&key=AIzaSyCFQ1YwopSga7piUZq4jPCiXAazFPd64N0&callback=googlemaps_place")}}function b(){alertTop=$(window).height()/2-$(".alert").outerHeight()/2;$(".alert").css("top",alertTop)}b();$(window).resize(function(){b()});$(".alert input[type=submit], body:has(.alert)").live("click",function(d){d.preventDefault();if(!$(d.target).is(".alert, .alert *:not(input)")){$(".alert").fadeOut(150,function(){$(this).remove()})}});smoothScroll=function(g){if(!$(g).length){return false}else{var d=$(g),h=d.offset().top,f=h/5<200?200:(h/5>800?800:h/5);function e(j,i,k){$("html, body").animate({scrollTop:j},i,"easeInOutExpo",function(){if(typeof k=="function"){k()}k=null})}e(h,f,function(){var i=window.location.hash;i=(i.indexOf("&h=")>-1)?i.substring(0,(i.indexOf("&h="))):i;window.location.hash=i.length?i+"&h="+g.substring(1):g.substring(1);$(window).data("hasScrolled",true)})}};$('a[href^="#"]').live("click",function(f){f.preventDefault();var d=$(this).attr("href");smoothScroll(d)});$(window).load(function(){var d=$.getUrlVar("h");smoothScroll("#"+d)});$(window).resize(function(){$(".no-touch #pagetop").hide().css({position:"fixed",top:$(window).height()-24});$(window).trigger("scroll")});$(window).trigger("resize");$(window).scroll(function(){if($(window).scrollTop()>($("#header").height()+240-$(window).height())){$(".no-touch #pagetop").fadeIn(40)}else{$(".no-touch #pagetop").fadeOut(40)}});var c={};c.$source=$("#header .nav a:first");/*$("#header .nav a, #photos #content .nav a").not('#nav-fb a').live("click",function(d){window.location.hash=$(this).attr("href").substring($(this).attr("href").lastIndexOf("/")+1);c.$source=$(d.target);return false});$('#nav-fb a').die('click');*/$(window).bind("hashchange",function(g){var f=window.location.hash.substring(1),j=c.$source.is("#content .nav a")?"#content .galerie":"#content",d=j=="#content"?"#header":"#content",i=(f.indexOf("&")==-1||d!="#header")?f:f.substring(0,window.location.hash.indexOf("&")-1),h=$(d+' .nav a[href*="'+i+'"]').length?true:false;if(f&&h&&!$(window).data("hasScrolled")){$(j).removeAttr("style").fadeOut(200,function(){$(d+' .nav a[href="'+i+'"]').append('<p id="loader"></p>');$(this).load("index.php"+f+" "+j+" > *",function(k){$("#loader").remove();var e=$(k),l=e.find(".nav b a").eq(0).closest("li").attr("id");photoCurrent=e.find(".nav b a").eq(1).closest("li").attr("id"),newTitle=e.find("h1").attr("data-pagetitle"),newId=e.find("h1").attr("data-pagename");$("html").attr("id",newId);$(document).attr("title",newTitle);$(".nav b a").unwrap();$("#"+l+" a").add("#"+photoCurrent+" a").wrap("<b></b>");$(".lb, .galerie a").dd_lightbox();a();$(j).fadeIn(200)})})}else{if(!$(window).data("hasScrolled")){$(".lightbox, .lb, .galerie a").dd_lightbox()}a()}$(window).data("hasScrolled",false)});$(window).trigger("hashchange")});
