<!--
// Slide Show Java Script file
var Cload = new Array() ;
var Cimages = new Array() ; 

Cimages[1] = "Edgewater1.bmp";
Cimages[2] = "Edgewater2.bmp";
Cimages[3] = "Edgewater3.bmp";
Cimages[4] = "Edgewater4.bmp";
Cimages[5] = "Edgewater5.bmp";
Cimages[6] = "Edgewater6.bmp";
Cimages[7] = "Edgewater7.bmp";
Cimages[8] = "Edgewater8.bmp";
Cimages[9] = "Edgewater9.bmp";
Cimages[10] = "Edgewater10.bmp";
Cimages[11] = "Edgewater11.bmp";
Cimages[12] = "Edgewater12.bmp";
Cimages[13] = "Edgewater13.bmp";
Cimages[14] = "Edgewater14.bmp";
Cimages[15] = "Edgewater15.bmp";
Cimages[16] = "Edgewater16.bmp";
Cimages[17] = "Edgewater17.bmp";
Cimages[18] = "Edgewater18.jpg";
Cimages[19] = "Edgewater19.jpg";
Cimages[20] = "Edgewater20.jpg";

var Cimgct = Cimages.length ;
var looper  ;
var total_pics = 0;

for (i = 1; i < Cimgct; i++) {
  Cload[i] = new Image() ;
  Cload[i].src = Cimages[i];
  total_pics = i ;
}

var speed = 3000  
var PictureCount = 1 ;
var imgct = eval(Cload.length)  ;



function Stop_Slide_Show() {
        clearTimeout(looper);
        }
function Start_Slide_Show() {
          
     
      if (document.images) {  
            
              if (PictureCount >= total_pics){
                  PictureCount = 0 ; 
                            }
              if (PictureCount <= 0) {
               
                PictureCount = 0 ;
              }
              PictureCount = PictureCount + 1 
              
              document.images.Edgewater_Pictures.src=Cload[PictureCount].src ;
              looper =  setTimeout("Start_Slide_Show()", 1 * speed );
      }   
     
        
   }

function Scroll_Right() {
    Stop_Slide_Show();
  
    if (document.images){
       PictureCount = PictureCount + 1 ;
      if (PictureCount > total_pics) {    
        PictureCount = 1 ;
      } 
      document.images.Edgewater_Pictures.src=Cload[PictureCount].src ;
    }
}

function Scroll_Left()  {
    Stop_Slide_Show();
 
    if (document.images){  
     PictureCount = PictureCount - 1;
      if (PictureCount < 1)  {      
          PictureCount= total_pics;
      }
           document.images.Edgewater_Pictures.src=Cload[PictureCount].src ;
    }
}

function FP_goToURL(url) {  //v1.0
 window.location=url;
}
var wdmax=100;          //set maximum width of square image (px)
var wdmin=0;            //set minimum thickness of edge-on image (px)
var inc=10;              //set step change in px (wdmax-wdmin must be a multiple) )These two variables
var rate = 50;          //pause between steps (in millisec)                      )determine flip-flop speed
var pause = 3000;       //pause between flip and flop (in millisec)
var ff="flip";          //initialise whether movement starts with a "flip" (sideways) or "flop" (vertical) change.
var swap = 0 ;
var looper ;

 edimage0 = new Image;
 edimage1 = new Image;
 edimage2 = new Image;
 edimage3 = new Image;

if (document.images){
 edimage0.src= "bassproshops_logo.gif" ;
 edimage1.src ="fishing.jpg";
 edimage2.src ="boat0003.jpg";
 edimage3.src= "manintent.jpg" ;
 }
 else {
 edimage0 = "";
 edimage1 = "";
 edimage2 = "";
 edimage3 = "";

 }


function start() {

 flipflop() ;
 }
function stop_flipflop() {
        clearTimeout(looper);
        }


function flipflop() {

 if (ff=="flip") {
  var wd = document.getElementById("pic").getAttribute("width");
  wd = wd - inc;
  document.getElementById("pic").setAttribute("width",wd);
  if (wd==wdmin) {
   if (swap == 0 ){
    document.getElementById("pic").setAttribute("src",edimage0.src); //substitute name of your second picture
    swap = 1 ;
   }
   else {
   if (swap== 1){
    swap = 2 ;
    document.getElementById("pic").setAttribute("src",edimage1.src);
    }
   else {
    if (swap ==2) {
    swap =3 ;
    document.getElementById("pic").setAttribute("src",edimage2.src);
     }
   else {
   if (swap == 3){
   document.getElementById("pic").setAttribute("src",edimage3.src);
   swap = 4;
   }
   else {
   if (swap == 4);
   document.getElementById("pic").setAttribute("src",edimage0.src);
   swap = 5;
   }
}
  }
   }  
   inc=-inc;
   }
  if (wd==wdmax) {
   ff="flip"; // should be flop
   inc=-inc;
   if (swap == 5) { 
    
    stop_flipflop()   ;
  }
  else {
   looper = setTimeout("flipflop()",pause);
   }

    }
   else {
   looper = setTimeout("flipflop()",rate);
   }
  }
  
 else {
  var ht = document.getElementById("pic").getAttribute("height");
  ht = ht - inc;
  document.getElementById("pic").setAttribute("height",ht);
  if (ht==wdmin) {
   
    document.getElementById("pic").setAttribute("src","fishing.jpg");
    inc=-inc;
   } 
  if (ht==wdmax) {
   ff="flip";
   inc=-inc;
   looper = setTimeout("flipflop()",pause);
   }
   else {
   looper = setTimeout("flipflop()",rate);
   }
  }
}

//-->



