
var browser = navigator.appName.substring(0,8);
var version = parseInt(navigator.appVersion); 
var javasupport = ((browser == "Netscape") && (version >= 3)) || ((browser == "Microsof") && (version >= 3));
if (javasupport) {
	a0on     = new Image()
	a0on.src = 'designImages/menuImages/litrequest1.jpg'
	a0off     = new Image()
	a0off.src = 'designImages/menuImages/litrequest.jpg'
	b0on     = new Image()
	b0on.src = 'designImages/menuImages/usedtrailer1.jpg'
	b0off     = new Image()
	b0off.src = 'designImages/menuImages/usedtrailers.jpg'
	c0on     = new Image()
	c0on.src = 'designImages/menuImages/tnews1.jpg'
	c0off     = new Image()
	c0off.src = 'designImages/menuImages/tnews.jpg'
	d0on     = new Image()
	d0on.src = 'designImages/menuImages/compstore1.jpg'
	d0off     = new Image()
	d0off.src = 'designImages/menuImages/compstore.jpg'
	e0on     = new Image()
	e0on.src = 'designImages/menuImages/dealaccess1.jpg'
	e0off     = new Image()
	e0off.src = 'designImages/menuImages/dealaccess.jpg'
	f0on     = new Image()
	f0on.src = 'designImages/menuImages/contactus1.jpg'
	f0off     = new Image()
	f0off.src = 'designImages/menuImages/contactus.jpg'
	g0on     = new Image()
	g0on.src = 'designImages/menuImages/agric1.jpg'
	g0off     = new Image()
	g0off.src = 'designImages/menuImages/agric.jpg'
	h0on     = new Image()
	h0on.src = 'designImages/menuImages/mathan1.jpg'
	h0off     = new Image()
	h0off.src = 'designImages/menuImages/mathan.jpg'
	i0on     = new Image()
	i0on.src = 'designImages/menuImages/gov1.jpg'
	i0off     = new Image()
	i0off.src = 'designImages/menuImages/gov.jpg'
	j0on     = new Image()
	j0on.src = 'designImages/menuImages/careers1.jpg'
	j0off     = new Image()
	j0off.src = 'designImages/menuImages/careers.jpg'
	k0on     = new Image()
	k0on.src = 'designImages/menuImages/corpnews1.jpg'
	k0off     = new Image()
	k0off.src = 'designImages/menuImages/corpnews.jpg'
	l0on     = new Image()
	l0on.src = 'designImages/menuImages/events1.jpg'
	l0off     = new Image()
	l0off.src = 'designImages/menuImages/events.jpg'
}

function run_two(imgName,StatName) {
	img_act(imgName)
	showStatus(StatName)
	return true
}

function showStatus(StatName) {
	window.status = StatName
	return true
}

function img_act(imgName) {
	if (javasupport) {
		imgOn = eval(imgName + "on.src");
		document [imgName].src = imgOn;
	}
}

function img_inact(imgName) {
	if (javasupport) {
		imgOff = eval(imgName + "off.src");
		document [imgName].src = imgOff;
	}
}

src = [
   "/adRotatorImages/334pic compressed.JPG",
   "/adRotatorImages/345 loaded tilted compressed.JPG",
   "/adRotatorImages/4024.yellow ramps down.jpg",
   "/adRotatorImages/825 with planter.jpg",
   "/adRotatorImages/835 3.4frta.JPG",
   "/adRotatorImages/BottomDump302DJuly2010 3qtr rear.JPG",
   "/adRotatorImages/Chain drive opt 330 tilted 022210 compressed.JPG",
   "/adRotatorImages/Landoll-317-Aug tilted-2010 no truck.JPG",
   "/adRotatorImages/Landoll-950Cwith tail up.JPG",
   "/adRotatorImages/loaded side view 353bh1.JPG",
   "/adRotatorImages/lt1420 transport.JPG",
   "/adRotatorImages/unloading 455 comp.JPG",
]

duration = 3;

//Please do not edit below
ads=[]; ct=0;

function switchAd(){
	var n=(ct+1)%src.length;
	if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
		document["Ad_Image"].src = ads[ct=n].src;
	}

	ads[n=(ct+1)%src.length] = new Image;
	ads[n].src = src[n];
	setTimeout("switchAd()",duration*1000);
}

onload = function(){
	if (document.images)
	switchAd();
}
