////NO need to edit ///////////// /*********************************************** * Swiss Army Image slide show script - © John Davenport Scheuer: http://home.comcast.net/~jscheuer1/ * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code ***********************************************/ function preloadctrl(im){ if (typeof im=='string'){ var imo=new Image(); imo.src=im; } } if(document.images&&typeof preload_ctrl_images!='undefined'&&preload_ctrl_images){ var ctrlimgs=[previmg, stopimg, playimg, nextimg] for (var i_tem = 0; i_tem < ctrlimgs.length; i_tem++) if (ctrlimgs[i_tem]) preloadctrl(ctrlimgs[i_tem]) } var iss=[]; //array to cache inter_slide instances function inter_slide(){ if(!document.images||arguments.length==0) return; var imgs=arguments[0]; var width=null, height=null, delay=null; if(arguments.length==2) delay=arguments[1]; else if(arguments.length==3||arguments.length==4) width=arguments[1], height=arguments[2], delay=arguments[3]? arguments[3] : null; this.dom=(document.getElementById) //modern dom browsers this.da=document.all this.delay=imgs.delay? imgs.delay : delay? delay : 3000+iss.length*750; this.nextimgidx=0; iss[this.issid=iss.length]=this; this.imgs=imgs; if (imgs.random) this.imgs.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :) this.imgborder=imgs.border? parseInt(imgs.border) : 0; if (!this.dom){ this.postimgs=new Array() //preload imgs for (p=0;p' : ''; if (imgs.controls_top){ this.controls(); document.write(brs) } document.write('
<\/div>
<\/div><\/div><\/div>') if(this.descriptions) document.write(brs+'
'+this.dp+' <\/span>
\n'); if(this.counter&&!this.descriptions) document.write(brs); if(this.counter) this.cntrl() if (!imgs.controls_top){ document.write(this.ics? '' : brs); this.controls(); } } else document.write('
<\/div>') if (this.dom) //if modern browsers such as Firefox, IE5+ this.startit() else{ this.nextimgidx++ setInterval("iss["+this.issid+"].rotateimg()", this.delay) } } inter_slide.prototype.cntrl=function(){ this.cpad=this.imgs.length.toString().length; document.write('
Viewing Image: <\/span><\/b> of  '+this.imgs.length+'<\/b><\/div>'); } inter_slide.prototype.controls=function(){ var brs=this.addbr? '
' : '  '; if(!this.ics&&!this.no_c) document.write('
\n'+ (this.no_auto? '   ' : ' \n')+ ' '+(this.jumpto? brs+'Jump to: ' : '')+'<\/div>') else if(this.ics&&!this.no_c){ var op=document.body.filters? ' style="filter:alpha(opacity=100);"' : ' style="opacity:'+(this.man_start? 0.99 : 0.45)+';"'; document.write('