//minified with google closure compiler service
(function(b){b.fn.ascensor=function(a){function l(c,m){jQuery("html,body").queue([]).stop();o-=50;var d=a.WindowsOn,e=a.WindowsOn-1,f=a.WindowsOn+1;e<0&&(e=h-1);f>h-1&&(f=0);var g=a.ContentCoord.split(" & "),j=g[e],k=g[f],d=g[d].split("|"),d=parseInt(d[c]),j=j.split("|"),j=parseInt(j[c]),k=k.split("|"),k=parseInt(k[c]);d==k+m?(a.WindowsOn=f,b.scrollTo(b("#"+a.AscensorName+f),o,{axis:a.NavigationDirection,onAfter:function(){o=1E3;if(a.ReturnURL==!0)window.location.href=i==f?"#/"+a.AscensorName+"0": "#/"+a.AscensorName+f}}),a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b("."+a.AscensorName+"NavigationButton:eq("+a.WindowsOn+")").css("background","#444"))):d==j+m?(a.WindowsOn=e,b.scrollTo(b("#"+a.AscensorName+e),1E3,{axis:a.NavigationDirection,onAfter:function(){if(a.ReturnURL==!0)window.location.href=i==f?"#/"+a.AscensorName+"0":"#/"+a.AscensorName+e}}),a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b("."+a.AscensorName+ "NavigationButton:eq("+a.WindowsOn+")").css("background","#444"))):b.scrollTo(b("#"+a.AscensorName+a.WindowsOn),1E3,{axis:a.NavigationDirection})}var a=b.extend({AscensorName:"maison",WindowsFocus:!0,WindowsOn:0,NavigationDirection:"xy",Direction:"y",Navig:!0,Link:!0,PrevNext:!0,KeyArrow:!1,keySwitch:!1,CSSstyles:!0,ReturnURL:!0,ReturnCode:!1,ChocolateAscensor:!1,AscensorMap:"4|3",ContentCoord:"1|1 & 2|2 & 1|2 & 3|4 & 1|3 & 3|1 & 2|3 & 2|1"},a),i=a.WindowsOn,d=location.href,d=d.substring(d.lastIndexOf("/")+ 1),u=d.length,v=a.AscensorName.length,p=d.split(a.AscensorName),p=parseInt(p[1]);if(d!=0&&u==v+1)a.WindowsOn=p;var h=0,f=b(window).height(),g=b(window).width(),e=b(this),q='<p>every page has the class ".'+a.AscensorName+'"',r="",n='<p>every navigation button has the class ".'+a.AscensorName+'NavigationButton"</br></br>',d=a.AscensorMap.split("|"),s=parseInt(d[0]),t=parseInt(d[1]);b(e).css("width",s*g);b(e).css("height",t*f);b(e).children("div").each(function(c){h+=1;b(this).addClass(a.AscensorName); b(this).attr("id",a.AscensorName+c);b(this).height(f);b(this).width(g);q+="<p>the id of the content "+c+' is "#'+a.AscensorName+c+'" </p>';b(this).children().height()>f?b(this).css({"overflow-y":"scroll"}):b(this).css({"overflow-y":"hidden"});b(this).children().width()>g?b(this).css({"overflow-x":"scroll"}):b(this).css({"overflow-x":"hidden"})});a.Direction=="x"&&a.ChocolateAscensor==!1?b(e).children("div").each(function(){var c=b(this).attr("id").split(a.AscensorName),c=parseInt(c[1]);b(this).css("position", "absolute");b(this).css("left",g*c)}):a.Direction=="y"&&a.ChocolateAscensor==!1?b(e).children("div").each(function(){var c=b(this).attr("id").split(a.AscensorName),c=parseInt(c[1]);b(this).css("position","absolute");b(this).css("top",f*c)}):(a.Direction=="y"&&a.ChocolateAscensor==!0||a.Direction=="x"&&a.ChocolateAscensor==!0)&&b(e).children("div").each(function(c){var c=a.ContentCoord.split(" & ")[c].split("|"),m=parseInt(c[1])-1,d=parseInt(c[0])-1;b(this).css("margin-top",function(){return d*f}); b(this).css("margin-left",function(){return m*g});b(this).css("position","absolute")});a.Link==!0&&b(e).children("div").each(function(c){var d=c+1;b(this).append('<a href="#'+a.AscensorName+d+'" rel="ConcentLink" class="'+a.AscensorName+"Link"+c+'">liens'+c+"</a>");r+='&lt;a href="#'+a.AscensorName+d+'" rel="ConcentLink" class="'+a.AscensorName+"Link"+c+'"&gt;liens'+c+"&lt;/a&gt;</br>"});b("a").click(function(){if(b(this).attr("rel")=="ConcentLink"){jQuery("html,body").queue([]).stop();var c=b(this).attr("class").split(a.AscensorName+ "Link"),d=parseInt(c[1])+1;d>h-1&&(d=0);a.WindowsOn=d;b.scrollTo(b("."+a.AscensorName+":eq("+d+")"),1E3,{axis:a.NavigationDirection,onAfter:function(){if(a.ReturnURL==!0)window.location.href=i==d?"#/"+a.AscensorName+"0":"#/"+a.AscensorName+d}});a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b("."+a.AscensorName+"NavigationButton:eq("+a.WindowsOn+")").css("background","#444"));return!1}});a.Navig==!0&&(b(e).append('<dl id="'+a.AscensorName+'Navigation"></dl>'), n+='&lt;dl id="'+a.AscensorName+'Navigation"&gt;</br>',b(e).children("div").each(function(c){b("#"+a.AscensorName+"Navigation").append('<dt class="'+a.AscensorName+'NavigationButton" ><a href="#" title="Link for Content" id="'+a.AscensorName+"NavigationButton"+c+'"></a></dt>').find("dt:eq("+a.WindowsOn+")").css("background","#444");n+='&lt;dt class="'+a.AscensorName+'NavigationButton" &gt;&lt;a href="#" title="Link for Content" id="'+a.AscensorName+"NavigationButton"+c+'"&gt;&lt;/a&gt;&lt;/dt&gt;</br>'}), n+="&lt;/dl&gt;");a.CSSstyles==!0&&(b("#"+a.AscensorName+"Navigation dt").css({"z-index":"20000",position:"fixed",width:"40px",height:"25px",background:"#fff"}),b("#"+a.AscensorName+"Navigation dt:eq("+a.WindowsOn+")").css({background:"#444"}),a.ChocolateAscensor==!0?b("#"+a.AscensorName+"Navigation").find("dt").each(function(c){var c=a.ContentCoord.split(" & ")[c].split("|"),d=parseInt(c[1])-1,e=parseInt(c[0])-1,f=t*60,g=s*65;b(this).css("bottom",function(){return e*-50+f});b(this).css("right",function(){return d* -70+g})}):b("#"+a.AscensorName+"Navigation").find("dt").each(function(a){b(this).css("bottom",function(){return a*30})}));b("."+a.AscensorName+"NavigationButton").click(function(){jQuery("html,body").queue([]).stop();var c=b(this).find("a").attr("id").split(""+a.AscensorName+"NavigationButton"),d=parseInt(c[1]);a.WindowsOn=d;b.scrollTo(b("."+a.AscensorName+":eq("+d+")"),1E3,{axis:a.NavigationDirection,onAfter:function(){if(a.ReturnURL==!0)window.location.href=i==d?"#/"+a.AscensorName+"0":"#/"+a.AscensorName+ d}});a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b(this).css("background","#444"))});a.PrevNext==!0&&b(e).append('<a id="'+a.AscensorName+'Prev" href="?">prev</a><a id="'+a.AscensorName+'Next" href="?">next</a>');b("#"+a.AscensorName+"Prev").click(function(){jQuery("html,body").queue([]).stop();var c=a.WindowsOn-1;c<0&&(c=h-1);b.scrollTo(b("#"+a.AscensorName+c),1E3,{axis:a.NavigationDirection,onAfter:function(){if(a.ReturnURL==!0)window.location.href=i==c? "#/"+a.AscensorName+"0":"#"+a.AscensorName+c}});a.WindowsOn=c;a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b("."+a.AscensorName+"NavigationButton:eq("+a.WindowsOn+")").css("background","#444"));return!1});a.CSSstyles==!0&&b("#"+a.AscensorName+"Prev").css({position:"fixed","z-index":"20000",top:"20px",left:"30px",background:"#ccc",color:"333",padding:"10px"});a.CSSstyles==!0&&b("#"+a.AscensorName+"Next").css({position:"fixed","z-index":"20000",top:"20px",left:"90px", background:"#ccc",color:"333",padding:"10px"});b("#"+a.AscensorName+"Next").click(function(){jQuery("html,body").queue([]).stop();var c=a.WindowsOn+1;c>h-1&&(c=0);b.scrollTo(b("#"+a.AscensorName+c),1E3,{axis:a.NavigationDirection,onAfter:function(){if(a.ReturnURL==!0)window.location.href=i==c?"#/"+a.AscensorName+"0":"#"+a.AscensorName+c}});a.WindowsOn=c;a.CSSstyles==!0&&(b("."+a.AscensorName+"NavigationButton").css("background","#fff"),b("."+a.AscensorName+"NavigationButton:eq("+a.WindowsOn+")").css("background", "#444"));return!1});b(window).resize(function(){f=b(window).height();g=b(window).width();a.Direction=="x"&&a.ChocolateAscensor==!1?b(e).children("div").each(function(){var c=b(this).attr("id").split(a.AscensorName),c=parseInt(c[1]);b(this).css("left",g*c)}):a.Direction=="y"&&a.ChocolateAscensor==!1?b(e).children("div").each(function(){var c=b(this).attr("id").split(a.AscensorName),c=parseInt(c[1]);b(this).css("top",f*c)}):(a.Direction=="y"&&a.ChocolateAscensor==!0||a.Direction=="x"&&a.ChocolateAscensor== !0)&&b(e).children("div").each(function(c){var c=a.ContentCoord.split(" & ")[c].split("|"),d=parseInt(c[1])-1,e=parseInt(c[0])-1;b(this).css("margin-top",function(){return e*f});b(this).css("margin-left",function(){return d*g})});b(e).children("div").each(function(){b(this).children().height()>f?b(this).css({"overflow-y":"scroll"}):b(this).css({"overflow-y":"hidden"});b(this).children().width()>g?b(this).css({"overflow-x":"scroll"}):b(this).css({"overflow-x":"hidden"})});b("."+a.AscensorName).height(f); b("."+a.AscensorName).width(g);b.scrollTo(b("#"+a.AscensorName+a.WindowsOn),0,{axis:a.NavigationDirection})});var o=1E3;a.KeyArrow==!1||a.keySwitch==!1?(d=function(a){switch(a.keyCode){case 40:return!1;case 38:return!1;case 37:return!1;case 39:return!1}},b.browser.mozilla?b(document).keypress(d):b(document).keydown(d)):a.KeyArrow==!0&&a.keySwitch==!0&&(d=function(a){switch(a.keyCode){case 40:return l(0,-1),!1;case 38:return l(0,1),!1;case 37:return l(1,1),!1;case 39:return l(1,-1),!1}},b.browser.mozilla? b(document).keypress(d):b(document).keydown(d));a.ReturnCode==!0&&(b("body").append('<div><div id="result"><h1>Code Page</h1><p id="pageCode">'+q+'</p><br/><h1>Code Link</h1><p id="LinkCode">'+r+'</p></br><h1>Code Navigation</h1><p id="NavCode" ><p>'+n+'<p id="close">close this windows</p></div></div>'),b("#result").css({position:"fixed",top:"20%",left:"30%",background:"#fff",padding:"20px","font-size":"12px"}),b("#close").css({"padding-left":"600px",color:"#f00","margin-top":"20px"}),b("#result h1").css({"font-size":"18px"}), b("#result p").css({"margin-left":"30px"}),b("#close").click(function(){b("#result").hide()}));a.WindowsFocus==!0&&b.scrollTo(b("#"+a.AscensorName+a.WindowsOn),0,{axis:a.NavigationDirection})}})(jQuery);
