function SlideShow(element,width,height,transition){this.element=element;this.images=[];this.controls={};this.transition=transition||'fade';var currentWidth=this.element.width();if(!width||width>currentWidth){width=currentWidth;} this.width=width;this.height=height;this.element.css({'height':this.height+'px'});} SlideShow.prototype.showLoadingImage=function(toggle){if(toggle){this.loadingImage_=document.createElement('div');this.loadingImage_.className='slideshow-loading';var img=document.createElement('img');img.src=WP_SLIDESHOW_IMAGES.load;this.loadingImage_.appendChild(img);this.loadingImage_.appendChild(this.makeZeroWidthSpan());this.loadingImage_.style.lineHeight=this.height+'px';this.element.append(this.loadingImage_);}else if(this.loadingImage_){this.loadingImage_.parentNode.removeChild(this.loadingImage_);this.loadingImage_=null;}};SlideShow.prototype.init=function(){this.showLoadingImage(true);var self=this;for(var i=0;i