function tcZizzer(a,b,c,d){this.scrollTargetName=b;this.slideContainerName=a;this.display_width=$(this.slideContainerName).getSize().x;this.allSlides=null;this.width_of_all_images=0;this.eachimagename=c;this.clickCallback=d;this.clickActive=true;this.hasClicked=false;this.currentActiveSlide=0;if($(this.slideContainerName))this.width_of_all_images=this.initZdisplay()}
tcZizzer.prototype.initZdisplay=function(){var a=0;$$("."+this.eachimagename).each(function(b){x=b.getSize().x;a+=x});$(this.slideContainerName).setStyle("width",a);this.allSlides=[];i=0;$$(".zslide_image").each(function(b){ob=new tcZSlideDisplay(b,i,this);this.allSlides[i++]=ob}.bind(this));return a};tcZizzer.prototype.getSlideElement=function(a){e=this.allSlides[a];if(!e)return null;return e.getImageElement()};tcZizzer.prototype.getScrollTargetName=function(){return this.scrollTargetName};
tcZizzer.prototype.getSlide=function(a){return this.allSlides[a]};tcZizzer.prototype.getSlideWidth=function(a){return this.getSlideElement(a).getWidth()};tcZizzer.prototype.getSlideCoords=function(a){return this.getSlideElement(a).getCoordinates($(this.slideContainerName))};tcZizzer.prototype.setClickActive=function(a){this.clickActive=a};tcZizzer.prototype.isClickActive=function(){return this.clickActive};tcZizzer.prototype.getHasClicked=function(){return this.hasClicked};
tcZizzer.prototype.getNumSlides=function(){return this.allSlides.length};tcZizzer.prototype.rhsOffScreen=function(a){return this.width_of_all_images-this.getSlideCoords(a).left>this.display_width};tcZizzer.prototype.getPixelsOffRhs=function(){return this.width_of_all_images-this.display_width};tcZizzer.prototype.getFullWidth=function(){return this.width_of_all_images};tcZizzer.prototype.getCurrentActiveSlide=function(){return this.currentActiveSlide};
tcZizzer.prototype.setHasClicked=function(){this.hasClicked=true};tcZizzer.prototype.clickedOnChild=function(a){if(this.isClickActive()){this.currentActiveSlide=a.idx;if(this.clickCallback){this.setClickActive(false);this.clickCallback(a)}}};tcZizzer.prototype.scrollTo=function(a){x=(new Fx.Scroll(this.getScrollTargetName())).toElement(this.getSlideElement(a))};tcZizzer.prototype.scrollToLocation=function(a,b){(new Fx.Scroll(this.getScrollTargetName())).set(a,b)};
tcZizzer.prototype.reset=function(){x=(new Fx.Scroll(this.getScrollTargetName())).set(0)};function tcZSlideDisplay(a,b,c){this.imgele=a;this.idx=b;this.container=c;this.imgele.addEvent("mousedown",this._clickedOnFrame.bind(this))}tcZSlideDisplay.prototype.getImageElement=function(){return this.imgele};tcZSlideDisplay.prototype.getIndex=function(){return this.idx};tcZSlideDisplay.prototype._clickedOnFrame=function(){this.container.setHasClicked();this.clickedOnFrame()};
tcZSlideDisplay.prototype.clickedOnFrame=function(){this.container.clickedOnChild(this)};
