var Poster=Class.create({initialize:function(A,C,B){this.eTempPtr=A;this.id=C;this.oPanel=B;this.isFirst();this.segmentsPrepare()},isFirst:function(){this.bFirst=this.eTempPtr.hasClassName("first");if(this.bFirst){this.eTempPtr.removeClassName("first")}},segmentsPrepare:function(){this.aSegments=[];this.ePtr=new Element("div",{className:"maze"});this.pullOutLink();if(this.bFirst){this.ePtr.addClassName("first current");this.oPanel.setCurrentPoster(this)}this.segmentsInit();this.eTempPtr.replace(this.ePtr)},pullOutLink:function(){var A=this.eTempPtr.getElementsBySelector("a.link")[0];if(A){this.sUrl=A.getAttribute("href");A.remove()}},segmentsInit:function(){for(var A=0;A<this.oPanel.SEGMENTS_NUMBER;A++){this.aSegments.push(new Segment(this.aSegments.length,this));this.ePtr.appendChild(this.aSegments.last().ePtr)}},show:function(){this.oPanel.bAni=true;this.ePtr.addClassName("current");this.oPanel.linkControl(this);this.eachSegment(function(){this.show()})},hide:function(){this.ePtr.removeClassName("current");this.eachSegment(function(){this.hide()})},eachSegment:function(A){this.aSegments.each(function(B){return A.apply(B,[])})}});