if(!isMITLoaded){ alert('MIT File is missing - Slideshow may not work properly');} /** * Misc **/ isSlideShowLoaded=true; //Cross browser refresher var ON_SLIDE_SELECT=true; function refresh(){ parent.location.href=this.location.href } /** * SlideShow Object * Yoohooo My First JS Object **/ MY_SlideShow=function(dp,skin,dir){ this.w=false; this.h=false; this.dir=dir; this.skin="default"; this.dataProvider(dp); this.setSkin(skin); } MY_SlideShow.prototype={dataProvider:function(uri){this.dp=uri;},addEventListener:function(event,listener){this.lst=listener;},setSkin:function(skin){this.skin=skin},setSize:function(w,h){this.w=w;this.h=h; },write:function(htmlid,first){if(!this.dp){alert('SlideShow DataProvider not defined');}else { if(this.w==false||this.h==false){this.w=document.getElementById(htmlid).style.width?parseInt(document.getElementById(htmlid).style.width):parseInt(document.getElementById(htmlid).offsetWidth); this.h=document.getElementById(htmlid).style.height?parseInt(document.getElementById(htmlid).style.height):parseInt(document.getElementById(htmlid).offsetHeight);}var so = new SWFObject(this.dir+this.skin+"/swf/SlideShow.swf", "Slideshow_"+htmlid, this.w, this.h, "0", "#ffffff");so.addVariable("Theme", this.dir+this.skin+"/img/apps/slideshow/");so.addVariable("ListCover" , this.dp);so.addVariable("JSFunction", this.lst);so.addVariable("FirstSlide", first);so.addParam("allowScriptAccess", "always");so.addParam("scale", "noscale");so.addParam("wmode","transparent");so.write(htmlid); }}}