if (document.images) {

     shop = new Image
     benefit = new Image
     popular = new Image
     sale = new Image
     quote = new Image
     about = new Image
     shop_on = new Image
     benefit_on = new Image
     popular_on = new Image
     sale_on = new Image
     quote_on = new Image
     about_on = new Image

     mid = new Image
     midshop = new Image
     midbenefit = new Image
     midpopular = new Image
     midsale = new Image
     midquote = new Image
     midabout = new Image

     shop.src = "images/shop.gif"
     benefit.src = "images/benefit.gif"
     popular.src = "images/popular.gif"
     sale.src = "images/sale.gif"
     quote.src = "images/quote.gif"
     about.src = "images/about.gif"
     shop_on.src = "images/shop_on.gif"
     benefit_on.src = "images/benefit_on.gif"
     popular_on.src = "images/popular_on.gif"
     sale_on.src = "images/sale_on.gif"
     quote_on.src = "images/quote_on.gif"
     about_on.src = "images/about_on.gif"

     mid.src = "images/mid.jpg"
     midshop.src = "images/midshop.jpg"
     midbenefit.src = "images/midbenefit.jpg"
     midpopular.src = "images/midpopular.jpg"
     midsale.src = "images/midsale.jpg"
     midquote.src = "images/midquote.jpg"
     midabout.src = "images/midabout.jpg"
}

function hiLite(imgField,newImg) {

// manages mouseOver animations
// imgField - the name or number of the document to be replaced
// newImg - the name of the image object to be swapped in

if (document.images) {
     document[imgField].src= eval(newImg + ".src")
     }
}

// Creating photo banners (homepage) 
	adImages1 = new Array("images/home3.jpg","images/home5.jpg","images/home7.jpg","images/home6.jpg")
	thisAd1 = 0
	imgCt1 = adImages1.length

	function rotate() {
		if (document.images) {
			thisAd1++
			if (thisAd1 == imgCt1) {
				thisAd1 = 0
			}
			document.adBanner1.src=adImages1[thisAd1]

		  	setTimeout("rotate()", 8 * 1000)
	  	}
	}



// Creating photo banners (other page) 
	adImages2 = new Array("images/home3s.jpg","images/home5s.jpg","images/home7s.jpg","images/home6s.jpg")
	thisAd2 = 0
	imgCt2 = adImages2.length

	function rotate2() {
		if (document.images) {
			thisAd2++
			if (thisAd2 == imgCt2) {
				thisAd2 = 0
			}
			document.adBanner2.src=adImages2[thisAd2]

		  	setTimeout("rotate2()", 6 * 1000)
	  	}
	}


