// JavaScript Document
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500;

// Duration of crossfade (seconds)
var crossFadeDuration = 2;

// Specify the image files
var Pic = new Array(); // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = new Array('images/slideshow/1.jpg', 'Exceptional Quality');
Pic[1] = new Array('images/slideshow/2.jpg', 'Custom Cabinetry');
Pic[2] = new Array('images/slideshow/3.jpg', 'Skilled Craftsmen');
Pic[3] = new Array('images/slideshow/4.jpg', 'Office Cabinetry');
Pic[4] = new Array('images/slideshow/5.jpg', 'Robust Equipment');
Pic[5] = new Array('images/slideshow/6.jpg', 'Tailored Specs');
Pic[6] = new Array('images/slideshow/7.jpg', 'Unique Solutions');
Pic[7] = new Array('images/slideshow/8.jpg', 'Fashionable Design');
Pic[8] = new Array('images/slideshow/9.jpg', 'Advanced Technology');
Pic[9] = new Array('images/slideshow/10.jpg', 'Commercial Cabinetry');
Pic[10] = new Array('images/slideshow/11.jpg', 'Showcased Style');
Pic[11] = new Array('images/slideshow/12.jpg', 'Custom-Fit Installs');
Pic[12] = new Array('images/slideshow/13.jpg', 'Standard Cabinetry');
Pic[13] = new Array('images/slideshow/14.jpg', 'Projects of All Sizes');
Pic[14] = new Array('images/slideshow/15.jpg', 'On-Time Delivery');
Pic[15] = new Array('images/slideshow/16.jpg', 'Exceeding Expectations');

// =======================================
// do not edit anything below this line
// =======================================

var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i][0];
}

function runSlideShow(){
   if (document.all){
	  document.images.slideshow.style.filter="blendTrans(duration=2)";
	  document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.slideshow.filters.blendTrans.Apply();      
   }
   document.images.slideshow.src = preLoad[j].src;
   document.getElementById('slidetext').innerHTML = Pic[j][1];
   if (document.all){
	  document.images.slideshow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) {j=0;}
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

