/******* /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/picturama.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/picturama.js moved to header ****/

.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/picturama.js *********/
var imagePreviewer=new Class({Binds:["_hidePreview","_getNextImage","_placePreviewDivOnResize","_getFull"],initialize:function(i){var d=$("picturama").setStyles({position:"relative"});var a=[];var e=new Element("div",{id:"overLayDiv","class":"overlay fixME",events:{click:this._hidePreview}}).inject($(document.body));var h=new Element("div",{id:"previewDiv",styles:{position:"absolute",cursor:"pointer","z-index":"5500",display:"none"},events:{click:this._getNextImage}}).inject($(document.body));var g=new Fx.Scroll($(document.body));this.curVideoSwf=0;var b,f=-1;this.currentProject=-1;this.currentLink=-1;d.getElements("div.p").each(function(c,j){var k=[];if(i==c.get("id")){b=j;f=0}c.getElements("a.img, a.video").each(function(m,l){switch(m.get("class")){case"img":k.include({container:m,img:m.get("href"),type:"image"});m.set("href","javascript:void(0)").addEvent("click",this._getFull.pass([j,l]));break;case"video":k.include({container:m,video:m.get("href"),type:"video"});m.set("href","javascript:void(0)").addEvent("click",this._getFull.pass([j,l]));break}},this);if(k.length>0){a.push({container:c,images:k})}},this);d.store("scrollFx",g);d.store("mainObj",a);this.mainObjLength=a.length;if(b>=0&&f>=0){window.addEvent("load",this._getFull.pass([b,f],this))}else{this._hidePreview()}if(Browser.Engine.trident&&Browser.Engine.version<7){window.onresize=this._placePreviewDivOnResize}else{window.addEvent("resize",this._placePreviewDivOnResize)}},_getFull:function(b,a){if(this.currentProject<0){this._showPreview()}switch(this._getPreviewType(b,a)){case"image":this._setPreviewImg(this._getImgSrc(b,a));break;case"video":this._setPreviewVideo(this._getVidSrc(b,a));break}if(this.currentProject!=b){this._setProjectActive(this.currentProject,false);this._setProjectActive(b,true);this._placePreviewDiv(b)}this.currentProject=b;this.currentLink=a;this._setImgVisited(this._getImgLinkElt(this.currentProject,this.currentLink));return},_getNextImage:function(){var b=this.currentProject,c=this.currentLink,a=this._getProjectObj(b);if(c+1>=a.images.length){b=(b+1)%this.mainObjLength;c=0}else{c=c+1}return this._getFull(b,c)},_setPreviewImg:function(a){if(Browser.Engine.trident&&Browser.Engine.version<7){new Asset.image(a,{onload:function(b){b.inject($("previewDiv").empty())}})}return new Element("img",{src:a,styles:{display:"block",zoom:1,position:"relative"}}).inject($("previewDiv").empty())},_setPreviewVideo:function(a){var b=new Element("div",{styles:{"background-color":"#000000"}}).inject($("previewDiv").empty());var d="/video.swf?r="+$time();var c=new Swiff(d,{width:500,height:300,container:b,vars:{urlVideo:a,autoplay:"true",fs:"false",w:500,h:300},params:{scale:"showall",allowFullScreen:"true",allowScriptAccess:"sameDomain"}});return b},_showPreview:function(){this._setProjectActive(this.currentProject,true);$("overLayDiv").setStyle("display","block");$("previewDiv").setStyle("display","block");return},_hidePreview:function(){this._setProjectActive(this.currentProject,false);this.currentProject=-1;this.currentLink=-1;$("overLayDiv").setStyle("display","none");$("previewDiv").setStyle("display","none");return},_placePreviewDiv:function(b){var a=this._getImgLinkElt(b,0).getCoordinates();$("previewDiv").setStyles({top:a.top,left:a.left});$("picturama").retrieve("scrollFx").start(0,(a.top-40)>0?a.top-40:0);return},_placePreviewDivOnResize:function(){if(this.currentProject>=0){this._placePreviewDiv(this.currentProject)}},_getProjectObj:function(a){return $("picturama").retrieve("mainObj")[a]},_getImgLinkElt:function(b,a){return this._getProjectObj(b).images[a].container},_getImgSrc:function(b,a){return this._getProjectObj(b).images[a].img},_getVidSrc:function(b,a){return this._getProjectObj(b).images[a].video},_getPreviewType:function(b,a){return this._getProjectObj(b).images[a].type},_setImgVisited:function(a){a.addClass("visited")},_setProjectActive:function(a,b){if(a<0||!$chk(this._getProjectObj(a))){return}if(b){this._getProjectObj(a).container.addClass("active")}else{this._getProjectObj(a).container.removeClass("active")}}});


