window.defaultStatus='Karps Hardware Store and Homebrew Shop';

if (top.location !=self.location) {
   top.location = self.location
}

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("nav/hardware_tools_on.gif","nav/truck_rental_on.gif","nav/services_on.gif","nav/homebrew_on.gif'","nav/sharkbite_on.gif","nav/contact_on.gif","nav/hardware_tools_home.jpg","nav/truck_rental_home.gif","nav/services_home.jpg","nav/homebrew_home.jpg","nav/sharkbite_home.jpg")

if (document.images) {
	toolsGraphic = new Image
	truckGraphic = new Image
	servicesGraphic = new Image
	homebrewGraphic = new Image
	sharkbiteGraphic = new Image
	contactGraphic = new Image
	logoGraphic = new Image

	toolsGraphic.src = "nav/hardware_tools_home.jpg"
	truckGraphic.src = "nav/truck_rental_home.jpg"
	servicesGraphic.src = "nav/services_home.jpg"
	homebrewGraphic.src = "nav/homebrew_home.jpg"
	sharkbiteGraphic.src = "nav/sharkbite_home.jpg"
	contactGraphic.src = "nav/karps_home.gif"
	logoGraphic.src = "nav/karps_home.jpg"
	
	toolsOff = new Image
	truckOff = new Image
	servicesOff = new Image
	homebrewOff = new Image
	sharkbiteOff = new Image
	contactOff = new Image
	toolsOn = new Image
	truckOn = new Image
	servicesOn = new Image
	homebrewOn = new Image
	sharkbiteOn = new Image
	contactOn = new Image

	toolsOff.src = "nav/hardware_tools.gif"
	truckOff.src = "nav/truck_rental.gif"
	servicesOff.src = "nav/services.gif"
	homebrewOff.src = "nav/homebrew.gif"
	sharkbiteOff.src = "nav/sharkbite.gif"
	contactOff.src = "nav/contact.gif"
	toolsOn.src = "nav/hardware_tools_on.gif"
	truckOn.src = "nav/truck_rental_on.gif"
	servicesOn.src = "nav/services_on.gif"
	homebrewOn.src = "nav/homebrew_on.gif"
	sharkbiteOn.src = "nav/sharkbite_on.gif"
	contactOn.src = "nav/contact_on.gif"
}

function chgImg(imgField,newImg) {
	if (document.images) {
			document[imgField].src= eval(newImg + ".src")
	}
}

function displayStatusMsg(msgStr) { 
  status=msgStr;
}

