/* ================================================================ 
This copyright notice must be kept untouched in the stylesheet at 
all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/pro_drop_1.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);









// Set the slideshow speed (in milliseconds)
var SlideShowSpeed ="3000";

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = "3";

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

Picture[1]  = 'images/indexSlide/35sweden.jpg';
Picture[2]  = 'images/indexSlide/30ninilchik_jump1.jpg';
Picture[3]  = 'images/indexSlide/40ace.jpg';
Picture[4]  = 'images/indexSlide/32parish.jpg';
Picture[5]  = 'images/indexSlide/32glencanyon.jpg';
Picture[6]  = 'images/indexSlide/28cleanseas_ice.jpg';
Picture[7]  = 'images/indexSlide/34mccaughan.jpg';
Picture[8]  = 'images/indexSlide/19crosby.jpg';
Picture[9]  = 'images/indexSlide/38slabbers.jpg';
Picture[10]  = 'images/indexSlide/38batey.jpg';
Picture[11]  = 'images/indexSlide/28sharpe.jpg';
Picture[12]  = 'images/indexSlide/angola.jpg';
Picture[13]  = 'images/indexSlide/philly.jpg';
Picture[14]  = 'images/indexSlide/sanDiego.jpg';
Picture[15]  = 'images/indexSlide/express.jpg';
Picture[16]  = 'images/indexSlide/caldot.jpg';
Picture[17]  = 'images/indexSlide/Griffith.jpg';


Caption[1]  = "35ft x 13ft Packman";
Caption[2]  = "30ft x 10ft Packman";
Caption[3]  = "40ft x 14ft Packman";
Caption[4]  = "32ft x 10ft Packcat";
Caption[5]  = "32ft x 11ft Packman";
Caption[6]  = "28ft x 10ft Packman";
Caption[7]  = "34ft x 10ft Packman";
Caption[8]  = "19ft x 8ft Packman";
Caption[9]  = "38ft x 13ft Packman";
Caption[10]  = "38ft x 12ft Packman";
Caption[11]  = "28ft x 10ft Packcat";
Caption[12]  = "40ft x 13ft Packcat";
Caption[13]  = "32ft x 12ft Packcat";
Caption[14]  = "24ft x 8.5ft Packcat";
Caption[15]  = "30ft x 11ft Packcat Express";
Caption[16]  = "54ft x 17ft Packman";
Caption[17]  = "32ft x 11ft Packman";





var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
