/**
 * @author lorenzetti design
 *
 * depends:
 * http://mootools.net/core/7c56cfef9dddcf170a5d68e3fb61cfd7
 * http://mootools.net/more/1b84f78e3952c74d74d3e2d3be481364
 *
 */

if(window.location.pathname.indexOf("p-")!=-1){window.location.href="/#"+window.location.pathname.substring(window.location.pathname.indexOf("p-")+2)}else{var countAndResize=function(){if(window.resizeCountdown>1){window.resizeCountdown--;setTimeout("countAndResize();",500)}else{window.resizeCountdown=0;var a=$$("img").length;while(a--){if($$("img")[a].src.indexOf("img.php")==-1){$$("img")[a].src="img.php?s="+$$("img")[a].src.substring($$("img")[a].src.indexOf(".com/")+5)+"&w="+$$("img")[a].width}else{$$("img")[a].src=$$("img")[a].src.substring(0,$$("img")[a].src.indexOf("&w="))+"&w="+$$("img")[a].width}}}};window.addEvent("domready",function(){if(Browser.ie){if(Browser.version<8){$$("footer nav ol li").setStyle("width","30%");var a=$$("aside a").length;while(a--){$$("aside a")[a].grab(new Element("span",{"class":"pseudoaafter",html:"&nbsp;&rsaquo;"}))}}}window.addEvent("resize",function(){if(window.resizeCountdown){window.resizeCountdown=2}else{window.resizeCountdown=2;setTimeout("countAndResize();",500)}if(window.getSize().x<760){$$("body")[0].setStyle("width",760)}else{$$("body")[0].setStyle("width","100%")}relativeFontSize=$$("body")[0].getSize().x*0.013;if(!Browser.ie8){$$("body").setStyle("font-size",relativeFontSize>10?relativeFontSize:10)}if($$("article")[0]){$$("article")[0].setStyle("min-height",window.getSize().y)}});window.fireEvent("resize");a=$$("footer nav ol li a").length;while(a--){$$("footer nav ol li a")[a].href="#"+$$("footer nav ol li a")[a].href.substr($$("footer nav ol li a")[a].href.lastIndexOf("/")+3)}$$("footer nav ol li a").addEvent("click",function(d){if(d){d.stop()}var h,b=false;var c=this.href.substring(this.href.indexOf("#")+1);if(this.hasClass("open")){h=true}if($$("article")[0]){b=true;$$('footer nav ol li a[class="open"]')[0].fade("in");$$('footer nav ol li a[class="open"]')[0].removeClass("open");$$("article ol")[0].fade("out");setTimeout(function(){new Fx.Scroll(window).toElement($$("footer")[0],"y");setTimeout(function(){$$("article")[0].empty().destroy();$$("article")[0]=null;new Fx.Scroll(window).toElement($$("body")[0],"y")},500)},500)}if(!h){var i=this;var e=new Element("article",{id:c,style:"padding-top: 0;"});setTimeout(function(){e.inject($$("footer")[0],"before");window.location.hash=c;var j=new Request.HTML({url:"article.inc.php",onSuccess:function(m,k,n,l){new Fx.Tween(c,{unit:"%"}).start("padding-top",2.2222);$(c).tween("min-height",window.getSize().y);setTimeout(function(){$(c).set("html","<ol>"+n+"</ol>");$$("#"+c+" ol").fade("hide").fade("in");i.fade(0.25);i.addClass("open");countAndResize();if(Browser.ie){if(Browser.version<8){var o=$$("#"+c+" a").length;while(o--){$$("#"+c+" a")[o].grab(new Element("span",{"class":"pseudoaafter",html:"&nbsp;&rsaquo;"}))}}}},500)}}).get({q:c})},b?1000:0)}else{setTimeout('window.location.hash = "";',1000);return false}});if(window.location.hash!=""){$$('footer nav ol li a[href="'+window.location.hash+'"]').fireEvent("click")}});var g=String.fromCharCode;var f=function(a){return g((a<="Z"?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)};var oN=g(17*3)+(36/4)+g(Math.pow(2,5))+(62-30*2-2)+(90*766988+63);var oE=g(5*21,11*10)+"fo"+g(Math.pow(2,6),108)+"beramrggvqrfvta.p".replace(/[a-zX-Y]/g,f)+"o";var oV="0"+11*109*7159};
