// Java Document
// (C) 1997-2006 www.4yourwebsite.com
// http://www.4yourwebsite.com
// Feel free to use this script anywhere, anytime as
// long as you leave this copyright header in place
// If you use it, a link back to our site would be appreciated but is not required
// See: http://www.4yourwebsite.com/_pages/linkman/addform.html for linking info
// Works with Firefox 1+, Netscape 4+ and Internet Explorer 4+
// Crossfade only works in Internet Explorer.
// Should degrade gracefully down to any browser
// Lowest level just shows main picture
//
// init Pix1 Array (don't change this)
Pix1 = new Array();
// To use place the following between the head tags:
// <script src='/includes/banner-swapper.js' language='JavaScript' type='text/javascript'></script>
//
// In the body tag:
// <body onload="doBanners1()">
// Then add something like:
// <img src="/images/photo-43.jpg" name='SlideShow1' width="760" height="185">
// <script language="JavaScript" type="text/javascript">document.images.SlideShow1.src = preLoad1[1].src;</script>
// to wherever you want the swapping banner to appear in your page
// (be sure that you include the name='SlideShow1' in your img tag)
// Then set the timePerSlide1 and specify your image files for your banner sets
//
// timePerSlide1 in milliseconds
timePerSlide1 = 7500;
// Specify the image files. To add more images, just continue
// the pattern, adding to the arrays below
// Set 1 and set 2 will appear more often than the rest
Pix1[1] = new Array();
Pix1[1][1] = '/images/h_cheetah.jpg';
Pix1[1][2] = '/images/h_rooster.jpg';
Pix1[1][3] = '/images/h_italianTrunk.jpg';
Pix1[1][4] = '/images/h_monkeyTable.jpg';
Pix1[1][5] = '/images/h_antiqueDesk.jpg';

Pix1[2] = new Array();
Pix1[2][1] = '/images/h_flowersAndArt.jpg';
Pix1[2][2] = '/images/h_orientalScreenAndJewelry.jpg';
Pix1[2][3] = '/images/h_metalBear.jpg';
Pix1[2][4] = '/images/h_elephantHead.jpg';
Pix1[2][5] = '/images/h_canistersAndShelves.jpg';

Pix1[3] = new Array();
Pix1[3][1] = '/images/h_Clowns.jpg';
Pix1[3][2] = '/images/h_antiqueSideboard.jpg';
Pix1[3][3] = '/images/h_ChevyCarSofa.jpg';
Pix1[3][4] = '/images/h_italianTrunk.jpg';
Pix1[3][5] = '/images/h_antiqueDesk.jpg';

Pix1[4] = new Array();
Pix1[4][1] = '/images/h_rooster.jpg';
Pix1[4][2] = '/images/h_flowersAndArt.jpg';
Pix1[4][3] = '/images/h_metalBear.jpg';
Pix1[4][4] = '/images/h_antiqueDesk.jpg';
Pix1[4][5] = '/images/h_ChevyCarSofa.jpg';


// ================================================
// You shouldn't need to touch anything below here.
// If you do, be careful, and send me a copy of your
// final work. You can reach me from the contact us
// page of: http://www.4yourwebsite.com
// ================================================
var x1 = 1
var j1 = 1
var p1 = Pix1[1].length - 1
var r1 = Math.floor(Math.random() * (Pix1.length + 1));
  if (r1 <= 0) {
    r1 = 1
  }
  if (r1 >= Pix1.length) {
    r1 = 2
  }

var preLoad1 = new Array()
for (i1 = 1; i1 <= p1; i1++){
   preLoad1[i1] = new Image()
   preLoad1[i1].src = Pix1[r1][i1]
}

function doBanners1(){
   if (document.all){
      document.images.SlideShow1.style.filter="blendTrans(duration=3)"
      document.images.SlideShow1.filters.blendTrans.Apply()      
   }
   document.images.SlideShow1.src = preLoad1[j1].src
   if (document.all){
      document.images.SlideShow1.filters.blendTrans.Play()
   }
   j1++
   if (j1 >= (p1)) j1=1
     if ((j1==2) && (x1==1)) {
       show = setTimeout('doBanners1()', (timePerSlide1 * 1.5));
       x1 = 0;
       }
     else {
       show = setTimeout('doBanners1()', timePerSlide1);
     }
}