var headerDir="/i/garth/common/nav/";var headerPrefix="hd_";var headerDivider="_";var headerFileExtension=".gif";var buttonDir="/i/garth/common/button/";var buttonPrefix="button_";var buttonDivider="_";var buttonFileExtension=".gif";var slideshowDir="photos/";var slideshowPrefix="photo-";var slideshowDivider="-";var slideshowFileExtension=".jpg";function imgButtonSwap(B,A){imgSwap(B,A,buttonDir,buttonPrefix,buttonDivider,buttonFileExtension);}function imgHeaderSwap(B,A){imgSwap(B,A,headerDir,headerPrefix,headerDivider,headerFileExtension);}function imgSwap(G,A,C,B,E,D){var F="";if(A){F=E+A;}G.src=C+B+G.id+F+D;}function preloadImages(){if(document.images){if(!document.MM_p){document.MM_p=new Array();}var B=document.MM_p.length;var A=MM_preloadImages.arguments;for(var C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){document.MM_p[B]=new Image;document.MM_p[B++].src=A[C];}}}}function popUp(B,A,D){var C=window.open(B,"popUp","width="+A+",height="+D+",location=no,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no");C.focus();}function imgSlideshowDisplay(E,A,B){var C=document.getElementById(B);var D="";if(A){D=slideshowDivider+A;}C.src=slideshowDir+slideshowPrefix+E.id+D+slideshowFileExtension;C.alt=E.alt;}var slideshowImages=new Array();var slideshowInterval=null;function startSlideshow(B){var A=document.getElementsByTagName("img")||document.images;for(var D=0;D<A.length;D++){var F=A[D];var G=F.className.split(" ");for(var C=0;C<G.length;C++){if(G[C]==B){slideshowImages[slideshowImages.length]=F;break;}}}var E=slideshowImages.shift();slideshowImages[slideshowImages.length]=E;slideshowInterval=setInterval("displayNextSlide()",5000);}function displayNextSlide(){var A=slideshowImages.shift();imgSlideshowDisplay(A,"med","main");slideshowImages[slideshowImages.length]=A;}