function newWindow(currentimage) {
 imagewindow=window.open(currentimage,"ImageWin","width=600,height=600")
 imagewindow.focus() 
}

thisPic=0
SLIDE_speed =3000
//numPic=myPix.length - 1
function chgSlide(direction){
clearTimeout(slidetimeout);
numPic=myPix.length - 1
  if ( document.images){
   thisPic=thisPic+direction
   }
   if ( thisPic > numPic){
     thisPic =0
   } 
   if (thisPic < 0){
     thisPic = numPic
   } 
   document.myPicture.src=myPix[thisPic]
}

function slideshow(){
numPic=myPix.length - 1
 if (document.images){
   thisPic++
   if (thisPic==numPic)
    thisPic=0
 document.myPicture.src=myPix[thisPic]
  slidetimeout=setTimeout("slideshow()",SLIDE_speed)  
 } 
}
function SLIDE_speeds(SLIDE_valgt)
{
  SLIDE_speed = SLIDE_valgt.options[SLIDE_valgt.selectedIndex].value;
}
function preLoadImages(){
var t='<layer top="-100" left="0" visibility="hide"><div style="position:absolute; top:-100px; left:0px; visibility:hidden">';
for(i=0;i<arguments.length;i++)t+='<img src="'+arguments[i]+'" height="54" width="216">';
t+='</div></layer>';
document.write(t);
}

//preLoadImages('images/homeover.gif','images/contactover.gif','images/reviewsover.gif','images/commisionsover.gif','images/fishsilkbuttonover.gif','images/fish_wc_over.gif','images/fishceramicover.gif');
function swapImage(imgN,imgU){
if(document.images)document.images[imgN].src=imgU;
}


/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/

//set image paths
src = ["images/display1.gif", "images/display2.gif"]




//set duration for each image
duration = 10;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
onload = function(){
if (document.images)
switchAd();
}

//photoslide show




