var delegate={didAppendContent:function(c,f){this.view=c;var g=c.currentSection;
if(g.movieLink){if(!g.close){g.close=new Element("a",{className:"close "+c.triggerClassName,href:"#"}).insert("Close");
g.content.insertBefore(g.close,g.content.firstChild)}var e=(c.previousSection)?c.previousSection.id:c.orderedSections[0];
g.close.href="#"+e}if(c.viewMasterId=="gallery-container"){var b=c.view.view().parentNode;
var a=g.content.getHeight();if(AC.Detector.isFirefox()){a+=20}if(AC.Detector.isWebKit()&&!AC.Detector.isiPhone()){a+=10
}var h=$(b).getHeight();var d=(a/h)*100;new Effect.Scale(b,d,{scaleX:false,scaleContent:false,duration:c.options.animationDuration})
}},didShow:function(b,c,a){this.didAppendContent(b,a.content);this.didShow=function(){}
}};Event.onDOMReady(function(){var b=new AC.ViewMaster.Viewer($$("a.herolink"),"hero","herolink",{silentTriggers:true});
b.setDelegate(Object.extend(delegate,{willShow:function(f,g,e){var d=e.id.match(/^hero-\d$/)?true:false
}}));var a=new AC.ViewMaster.Viewer($$(".gallery-mouse-sections"),"gallery-mouse","gallery-mouse",{silentTriggers:true,animationDuration:0.4});
a.viewMasterId="gallery-container";a.setDelegate(delegate);a.didAppendContent(a);
var c=new AC.ViewMaster.Tracker("click")});