');} else {doc.writeln(''+h+'');} if (bShowTitle) { doc.writeln('
'); if (bShowText) { doc.writeln(''); if (textFrame=='index') { doc.writeln(''); doc.writeln(''); doc.writeln(''); doc.writeln('

Start

Next

Text

'+this.title+'

'); var params=new nullObj(); params['table']='border=1 cellspacing=0 cellpadding=4 bgcolor='+indexBackground; params['cell']='width='+thumbW*2; thumbs.txtToHTML(params,doc); } else { if (mode==1) { doc.writeln('

Stop

'); doc.writeln('

Index

'); doc.writeln('

'+this.title+'

'); } else { doc.writeln('

Start

'); doc.writeln('

Next

'); doc.writeln('

Index

'); doc.writeln('

'+this.title+'

'); } } } else { doc.writeln('

'); doc.writeln(this.title+'

'); } doc.writeln('
'); } if ((bShowText) && (textFrame=='text')) { doc.writeln('
'); // doc.writeln(''); doc.writeln('
Next
Thumbs
'); doc.writeln(this.text); doc.writeln('
'); } doc.writeln(''); doc.close(); } } function GTSlide_display(imageCtrl,nextImage) { var doc; var f; var rW,rH,sW,sH; if (bScaleToFit) { if (displayW) { rW=displayW/this.w; rH=displayH/this.h; } else { rW=1; rH=1; } if (rW

'); else doc.writeln('

'); doc.close(); } else { if (this.effect == -1) { f=imgSlide.filters.blendTrans; f.Apply(); if (bScaleToFit) { imageCtrl.width=sW; imageCtrl.height=sH; } if (this.imgObj) imageCtrl.src=this.imgObj.src; else imageCtrl.src=this.name; f.Play(); } else { if (this.effect>0) { f=imgSlide.filters['revealTrans']; f.Transition=this.effect-1; f.Apply(); } if (bScaleToFit) { imageCtrl.width=sW; imageCtrl.height=sH; } if (this.imgObj) imageCtrl.src=this.imgObj.src; else imageCtrl.src=this.name; if (this.effect>0) f.Play(); } } starting=false; this.displayTextBox(); } function GTSlide_preload() { if (this.imgObj == null) { this.imgObj=new Image(); this.imgObj.src=this.name; } } // --------------------- OMMatrix --------------------------- // // num rows=0|num cols=0|obj mat=null| // dim|get|set|txtToHTML|txtSet| function OMMatrix() { this.dim=OMMatrix_dim; this.get=OMMatrix_get; this.set=OMMatrix_set; this.txtSet=OMMatrix_txtSet; this.txtToHTML=OMMatrix_txtToHTML; } function OMMatrix_dim(cols,rows,initVal) { var i,j,k=0; this.mat=new nullObj(); this.cols=cols; this.rows=rows; for (i=0;i var pre=''; var post=''; var cellAttribs=''; var tableAttribs=''; var numArgs=OMMatrix_txtToHTML.length-1; if (isProp(params,'pre')) pre=params['pre']; if (isProp(params,'post')) post=params['post']; if (isProp(params,'table')) tableAttribs=params['table']; if (isProp(params,'cell')) cellAttribs=params['cell']; doc.write(''); var cols=this.cols; var rows=this.rows; var i,j; for (i=0;i '); for (j=0; j '+pre+this.get(j,i)+post+''); doc.writeln(''); } doc.writeln('
'); } // Program Routines ----------- function displaySlide(slideInd) { var d=new Date(); var elapsed=d.getTime(); Ind=slideInd; if (bDisplaying) { if (elapsed> displayFinished) bDisplaying=false; } if (!bDisplaying) { displayFinished=displayDelay+elapsed+120; bDisplaying=true; nextInd=((slideInd+1)%numSlides); arrySlides[slideInd].display(imgSlide,arrySlides[nextInd]); } } function advanceSlide() { var nextInd; Ind=((Ind+1)%numSlides); nextInd=((Ind+1)%numSlides); arrySlides[Ind].display(imgSlide,arrySlides[nextInd]); if (lastDelay != arrySlides[Ind].delay) { if (lastDelay!=-1) window.clearInterval(timerId); timerId=window.setInterval("advanceSlide()",arrySlides[Ind].delay); lastDelay=arrySlides[Ind].delay; } arrySlides[nextInd].preload(); } function nextSlide() { var d=new Date(); var elapsed=d.getTime(); if (bDisplaying) { if (elapsed> displayFinished) bDisplaying=false; } if (!bDisplaying) { displayFinished=displayDelay+elapsed+120; bDisplaying=true; Ind=((Ind+1)%numSlides); nextInd=((Ind+1)%numSlides); arrySlides[Ind].display(imgSlide,arrySlides[nextInd]); } } function showText() { textFrame='text'; arrySlides[Ind].displayTextBox(); } function showIndex() { setMode(0); textFrame='index'; arrySlides[Ind].displayTextBox(); } function prevSlide() { var d=new Date(); var elapsed=d.getTime(); if (bDisplaying) { if (elapsed> displayFinished) bDisplaying=false; } if (!bDisplaying) { displayFinished=displayDelay+elapsed+120; bDisplaying=true; nextInd=(Ind%numSlides); Ind=((Ind+numSlides-1)%numSlides); arrySlides[Ind].display(imgSlide,arrySlides[nextInd]); } } function startShow() { window.clearInterval(timerId); starting=true; setMode(1); } function setMode(newMode) { if ((mode == 1) && (newMode==0)) { mode=0; window.clearInterval(timerId); lastDelay=-1; arrySlides[Ind].displayTextBox(); } if ((mode == 0) && (newMode==1)) { mode=1; textFrame='text'; lastDelay=-1; arrySlides[((Ind+1)%numSlides)].preload(); advanceSlide(); } } function closeDown() { setMode(0); } function prepareThumbs() { var img; var i; var s; var rW,rH,sW,sH; var numThumbs; var m=1; if (bShowThumbTitle) m=2; numThumbs=arrySlides.length; var cols=Math.floor(textWidth/(thumbW*2)); var rows=Math.floor(numThumbs/cols); if (numThumbs%cols) rows++; rows=rows*m; thumbs=new OMMatrix(); thumbs.dim(cols,rows,''); var i,j,k=0; for (i=0;i
'); if (bShowThumbTitle) { if (img.title!="") thumbs.set(j,i+1,'
'+img.title+'
'); else thumbs.set(j,i+1,' '); } k++; } else { thumbs.set(j,i,' '); if (bShowThumbTitle) thumbs.set(j,i+1,' '); } } } } function makeCheck() { // if (!isProp(top.ImageBox,"bReady")) // alert(listProps(top.ImageBox.document)); if (isProp(top.ImageBox.document,"imageCtrl")) { bReady=true; imgSlide=top.ImageBox.document.images['imageCtrl']; window.clearInterval(timerId); timerId=window.setInterval("startShow()",2000); } else alert('Help'); } function init() { bReady=true; Ind=-1; mode=0; if (parseInt(navigator.appVersion)>=4) { if (navigator.appName.indexOf("Microsoft") !=-1) { IE=true; } else { IE=false; } } loadSlides(); prepareThumbs(); timerId=window.setInterval("makeCheck()",2000); } function loadSlides() { arrySlides=new Array(); arrySlides[0]=new GTSlide("spin2.jpg",400,301,5000,0,'','',''); arrySlides[1]=new GTSlide("spin4.jpg",400,277,5000,0,'','',''); arrySlides[2]=new GTSlide("spin5.jpg",400,419,5000,0,'','',''); arrySlides[3]=new GTSlide("spin6.jpg",400,272,5000,0,'','',''); arrySlides[4]=new GTSlide("spin7.jpg",400,202,5000,0,'','',''); arrySlides[5]=new GTSlide("spin8.jpg",400,360,5000,0,'','',''); arrySlides[6]=new GTSlide("spin.jpg",400,722,5000,0,'','',''); arrySlides[7]=new GTSlide("spin9.jpg",400,319,5000,0,'','',''); arrySlides[8]=new GTSlide("spinsmom.jpg",401,578,5000,0,'','',''); arrySlides[9]=new GTSlide("trio2.jpg",550,262,9000,0,'','',''); imageBackground="000000"; titleBackground="000000"; titleColor="FFFFFF"; textBackground="000000"; textColor="FFFFFF"; displayW=666; displayH=360; indexBackground="000000"; indexColor="FFFFFF"; thumbW=78; thumbH=78; textWidth=686; MIDIVolume=3; bShowText=false; bShowTitle=false; bScaleToFit=true; bShowThumbTitle=false; bPlaySound=false; numSlides=arrySlides.length; }