var t;var j=0;var p;var captions=new Array();;var slidecaption;var pause=false;var slideShowSpeed=5000;var preLoad=new Array();var crossFadeDuration=3
var Pic=new Array()
function processDoc(){}
function getElementById(item){if(document.all){return document.all[item];}
if(document.getElementById){return document.getElementById(item);}
alert("Your browser is unable to use our search.  \nPlease upgrade to a newer, more secure, browser at http://www.mozilla.com");return null;}
function initPix(){slidecaption=getElementById("slidecaption");
var timg;
timg=getElementById("slide1");if(timg!=null){Pic[0]='1.jpg';captions[0]=timg.alt;}
timg=getElementById("slide2");if(timg!=null){Pic[1]='2.jpg';captions[1]=timg.alt;}
timg=getElementById("slide3");if(timg!=null){Pic[2]='3.jpg';captions[2]=timg.alt;}
}
function init(){initPix();p=Pic.length
for(i=0;i<p;i++){preLoad[i]=new Image()
preLoad[i].src="slide"+Pic[i]}
runSlideShow();}
function popDefaultSlide(){var snum;snum=j-1;if(snum==-1)snum=2;popSlide(snum);}
function popAnimWithCaption(obj){if(obj!=null){var s=obj.src
s=s.substr(0,s.length-3)+"gif";popWithCaption(s,obj.alt);}}
var w,ct;function delayedCaption(caption){if(w==null){if(ct<50){ct++;setTimeout("delayedCaption(\""+caption+"\");",100);}}else{w.setCaption(caption);}}
function popWithCaption(u,caption){var path=u;var slide=new Image;slide.src=u;if(u.indexOf('/')==-1){path=document.location.pathname;u=path.substr(0,path.lastIndexOf("/")+1)+u;}
u=mmprefix+'content/pops/popup.htm?'+u;w=window.open(u,'','width='+(slide.width+150)+', height='+(slide.height+200)+", title=\""+caption+"\")");setTimeout("delayedCaption(\""+caption+"\");",500);}
function popThis(u){popWithCaption(u,"");}
function openSlidePopup(num){var pict;if(num>Pic.length){num=Pic.length;pict="1.jpg";}else{pict=Pic[num];}
var path=document.location.pathname;var u=path.substr(0,path.lastIndexOf("/")+1);popWithCaption(u+pict,"");}
function popSlide(num){openSlidePopup(num);}
function runSlideShow(){if(document.images.SlideShow==null)return;if(document.all){document.images.SlideShow.style.filter="blendTrans(duration=2)"
 document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()}
if(preLoad.length==0)return;document.images.SlideShow.src=preLoad[j].src
if(document.all){document.images.SlideShow.filters.blendTrans.Play()}
var captext=captions[j];if(captext==null)captext="";var capnode=document.createTextNode(captext);var oldcap;if(slidecaption.childNodes.length>0){oldcap=slidecaption.childNodes[0];}
if(oldcap!=null){slidecaption.replaceChild(capnode,oldcap);}else{slidecaption.appendChild(capnode);}
if(!pause){j=j+1
if(j>(p-1))j=0}
t=setTimeout('runSlideShow()',slideShowSpeed)}