srcold = ["b01.jpg","b02.jpg","b03.jpg","b04.jpg","b05.jpg","b06.jpg","b07.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b08.jpg","b07.jpg","b06.jpg","b05.jpg","b04.jpg","b03.jpg","b02.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b01.jpg","b09.jpg","b10.jpg","b11.jpg","b12.jpg","b13.jpg","b14.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b15.jpg","b14.jpg","b13.jpg","b12.jpg","b11.jpg","b10.jpg","b09.jpg","b01.jpg"];

src = ["q01.jpg","q07.jpg","q02.jpg","q03.jpg","q04.jpg","q08.jpg","q05.jpg","q06.jpg"];

src15 = ["01.jpg","02.jpg","03.jpg","04.jpg","05.jpg","06.jpg","07.jpg","08.jpg","09.jpg","10.jpg","11.jpg","12.jpg","13.jpg","14.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","15.jpg","14.jpg","13.jpg","12.jpg","11.jpg","10.jpg","09.jpg","08.jpg","07.jpg","06.jpg","05.jpg","04.jpg","03.jpg","02.jpg","01.jpg"];

srclift = ["01.jpg","02.jpg","03.jpg","04.jpg","05.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","06.jpg","05.jpg","04.jpg","03.jpg","02.jpg","01.jpg","07.jpg","08.jpg","09.jpg","10.jpg","11.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","12.jpg","11.jpg","10.jpg","09.jpg","08.jpg","07.jpg","01.jpg"];

fdata = "images/anim/";

fb880 = "slide_files/bed-880-";
ftilt = "slide_files/tilt-bed-";

sc=src; 
imid ="anim";
delay = 0.15;

ads=[]; ct=0; t=0;

function slidesho()
{
 var n=(ct+1)%sc.length;
 if (ads[n] && (ads[n].complete || ads[n].complete==null))
 {
  document[imid].src = ads[ct=n].src;
 }
 ads[n=(ct+1)%sc.length] = new Image;
 ads[n].src = fdata +sc[n];
 if (n <= 1)
   t=setTimeout("slidesho()",2.0*1000);
 else
   t=setTimeout("slidesho()",delay*1000);
}



/* SLIDESHOW TO 3 IMAGE LOCATIONS for home page contacts*/

contactsrc = ["ca01.jpg","cb01.jpg","cc01.jpg","ca02.jpg","cb02.jpg","cc02.jpg","ca03.jpg","cb03.jpg","cc03.jpg","ca04.jpg","cb04.jpg","cc04.jpg","ca05.jpg","cb05.jpg","cc05.jpg","ca06.jpg","cb06.jpg","cc06.jpg"];

pos = 0; count = 1;
function contacts()
{
  var allid = ["ca","ca","cb","cc"];			// name and id locations to use in cycle

  var newsrc = fdata+contactsrc[pos];			// get new source location using fdata which is path structure
  var curid = allid[count];				// location to update, grab from array based on count value.

  document.images[curid].src = newsrc;			// replace image

  if (pos >= contactsrc.length-1)			// is end of array reached (-1 as array count starts at 1 not 0)
   pos = 0;
  else
   pos++;

  if (count >= allid.length-1)					// is end of defined  locations reached.
   count = 1;
  else
   count++;

 if (count == 1)
   setTimeout("contacts()",2.0*1000);
 else
   setTimeout("contacts()",0.15*1000);
}

/*onload = function()
{
 if (document.images)
 slidesho();
}*/
