/******* /javascript/newContent.js *********/
/******* Could not load file or assembly 'EcmaScript.NET.modified, Version=0.1.1.0, Culture=neutral, PublicKeyToken=7d53ba4f537753a5' or one of its dependencies. The module was expected to contain an assembly manifest. *********/
/**** /javascript/newContent.js moved to header ****/

/******* /javascript/info.js *********/
/******* Could not load file or assembly 'EcmaScript.NET.modified, Version=0.1.1.0, Culture=neutral, PublicKeyToken=7d53ba4f537753a5' or one of its dependencies. The module was expected to contain an assembly manifest. *********/
/**** /javascript/info.js moved to header ****/

.y/this.wS.y*(this.cols-1))+1;var e=(a*this.rows+d)%this.fontFamiliesClass.length;if(this.i==e||this.isChanging){return}this.i=e;this.fontNum=(this.fontNum+1)%this.fontFamiliesClass.length;this._changeClass(this.fontFamiliesClass[this.fontNum])},_changeClass:function(a){this.fontFamiliesClass.each(function(b){if(a==b){$(document.body).addClass(b)}else{$(document.body).removeClass(b)}})},_fixTypeFace:function(a){this._fixLinks(this.fontNum+1);if(!$(document.body).hasClass("rolled")){return}$("overlayDiv").destroy()},_fixLinks:function(a){$$("a[href]").filter(function(b){return b.get("href").test(/\/t([0-9])?\//)}).each(function(b){b.set("href",b.get("href").replace(/\/t([0-9])?\//,"/t"+(a)+"/"))})}});var expodromeLink=new Class({initialize:function(){$$("a[href^=/expodrome]").each(function(a){a.set({href:"javascript:void(0)",events:{click:this._toggle.bind(this)}})},this)},_toggle:function(){var a=window.open("/expodrome.aspx","expoWindow","menubar=0,resizable=1,width=130,height=750, left=0, top=0");window.moveTo(150,0)}});window.addEvent("domready",function(){new expodromeLink()});

/******* /javascript/info.js *********/
var imageColoring=new Class({initialize:function(a){var c=[];var d=[];var b=$("menu").getElement("div.infoCenter").set("id","infoCenter");$("menu").getElement("div.infoLeft").set("id","infoLeft");$("menu").getElement("div.infoRight").set("id","infoRight");new Element("div",{id:"bigImageContainer","class":"booksImages"}).inject(b,"top");$$("div.bookPage .infoRight a").each(function(f){var e=f.get("class");f.addEvents({mouseover:this._addLegendClass.pass([e,"active"],this),click:this._getBook.pass(e,this)});if(!f.hasClass("current")){f.addEvent("mouseout",this._addLegendClass.pass(["none","active"],this))}f.set("href","javascript:void(0)");c.include(f)},this);$$("div.bookPage .infoLeft a").each(function(f){var e=f.get("class");f.addEvents({mouseover:this._addImagesClass.pass([e,"visited"],this),mouseout:this._addImagesClass.pass(["none","visited"],this),click:this._getBook.pass(e,this)});f.set("href","javascript:void(0)");d.include(f)},this);$("menu").store("scrollFx",new Fx.Scroll($("aspnetForm")));$("menu").store("imageC",c);$("menu").store("legendC",d);if($chk(a)){this._getBook(a)}},_addImagesClass:function(b,a){$("menu").retrieve("imageC").each(function(c){if(c.hasClass(b)){c.addClass(a).addClass("visited")}else{c.removeClass(a)}},this);return},_addLegendClass:function(b,a){$("menu").retrieve("legendC").each(function(c){if(c.hasClass(b)){c.addClass(a)}else{c.removeClass(a)}},this);return},_getBook:function(b){$("bigImageContainer").empty().set("text","loading...");this._addImagesClass(b,"current");this._addLegendClass(b,"current");var c=$("infoRight");c.getElement("a."+b).setStyle("background-position","left top");var e=$("infoLeft");var a=e.getElement("a."+b);if(!$chk(this.legendRequest)){this.legendRequest=new Request.HTML({url:"/ajax/returnBookImages.aspx",update:$("bigImageContainer")})}this.legendRequest.removeEvents("success");this.legendRequest.addEvent("success",function(){if(a){var f=a.getCoordinates(e);(function(g){$("menu").retrieve("scrollFx").cancel().start(0,g)}).delay(200,this,f.top+70)}}.bind(this));this.legendRequest.cancel().get({lbl:b});if(a){var d=a.getCoordinates(e);$("bigImageContainer").setStyle("margin-top",d.top)}else{$("bigImageContainer").setStyle("margin-top",0)}}});var backColoring=new Class({initialize:function(){this.c=new Color([255,255,255]);$("aspnetForm").setStyle("display","none");$(document.body).addEvents({mousemove:this.changeColor.bindWithEvent(this),mousedown:this.showMenu.bindWithEvent(this)});$(document.body).setStyle("background-color",this.c)},changeColor:function(a){this.c=this.c.setHue(a.page.x/window.getSize().x*360).setSaturation(100-a.page.y/window.getSize().y*100);$(document.body).setStyle("background-color",this.c);document.bgColor=this.c},showMenu:function(){if(!$chk(this.colorRequest)){this.colorRequest=new Request.HTML({url:"/ajax/setColor.aspx"})}this.colorRequest.cancel().get({color:"rgb("+this.c.toString()+")"});$("aspnetForm").setStyle("display","block");$(document.body).removeEvents("mousemove");$(document.body).removeEvents("mousedown")}});var textPageRef=new Class({initialize:function(){var a=new Hash();$("menu").getElements("div.textPage").each(function(b,c){b.getElements("div.infoCenter div.contentText div.texte a[rel=internal]").each(function(g){var d=g.get("href").replace("#","");var e;if(!a.get(d)){e=new Hash()}else{e=a.get(d)}var f=e.get("links")?e.get("links"):[];g.set("href","javascript:void(0)");g.addEvent("click",this._highlightObj.pass([d,g],this));f.push(g);e.set("links",f);a.set(d,e)},this);b.getElements("div.infoRight div.rightPeople a.imgRef, div.infoRight div.rightPeople a.peopleRef").each(function(f){var d=f.get("rel");var e;if(!a.get(d)){e=new Hash()}else{e=a.get(d)}if(f.hasClass("imgRef")){e.set("src",f.get("href")+"?maxwidth=589&amp;maxheight=589");e.set("type","image")}else{e.set("type","people")}f.set("href","javascript:void(0)");f.removeProperty("target");f.addEvent("click",this._highlightObj.pass(d,this));e.set("link",f);a.set(d,e)},this);b.getElements("div.infoRight div.rightPeople img").each(function(d){var e=d.get("alt");d.addEvent("click",this._highlightObj.pass(e,this))},this)},this);$("menu").store("globalInfo",a);return},_highlightObj:function(){var e=arguments&&arguments[0]?$("menu").retrieve("globalInfo").get(arguments[0]):false;if(!e){this._reset();return}var c=e.get("link");if(c){if(c.hasClass("reftogHover")){this._reset();return}}this._reset();if(c){c.addClass("reftogHover")}var a=arguments&&arguments[1]?arguments[1]:false;var b=e.get("links");switch(e.get("type")){case"image":var d=e.get("src");if(d&&b&&b.length>0){this._createImage(e.get("src"),a?a:b[0])}if(b){b.each(function(f){f.addClass("refHover")})}break;case"people":if(b){b.each(function(f){f.addClass("refHover")})}break}},_reset:function(){$("menu").getElements("img.imgTextHover, a.refHover,  a.reftogHover").each(function(a){if(a.hasClass("imgTextHover")){a.destroy()}else{a.removeClass("refHover").removeClass("reftogHover")}})},_createImage:function(b,a){new Element("img",{src:b,"class":"imgTextHover",events:{click:this._reset.bind(this)},styles:{top:a.getCoordinates($("menu")).top,left:(Browser.Engine.trident&&Browser.Engine.version<7)?-40:0}}).inject($("menu"))}});

