/*
general nav mouseovers
*/

if (document.images) {
	adoptionsOff = new Image();
	adoptionsOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_adoptions.jpg";
	supportOff = new Image();
	supportOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_support.jpg";
	volunteerOff = new Image();
	volunteerOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_volunteer.jpg";
	spayOff = new Image();
	spayOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_spay.jpg";
	raiderOff = new Image();
	raiderOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_raider.jpg";
	eventsOff = new Image();
	eventsOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_events.jpg";
	
	searchOff = new Image();
	searchOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_search.gif";
	
	shopOff = new Image();
	shopOff.src = "http://www.houstonhumane.org/images/buttons/tn_b_shop.jpg";
	
	adoptions2Off = new Image();
	adoptions2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_adoptions2.gif";
	support2Off = new Image();
	support2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_support2.gif";
	volunteer2Off = new Image();
	volunteer2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_volunteer2.gif";
	spay2Off = new Image();
	spay2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_spay2.gif";
	raider2Off = new Image();
	raider2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_raider2.gif";
	events2Off = new Image();
	events2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_events2.gif";
	
	search2Off = new Image();
	search2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_search2.gif";
	
	shop2Off = new Image();
	shop2Off.src = "http://www.houstonhumane.org/images/buttons/tn_b_shop2.gif";
	
	adoptionsOn = new Image();
	adoptionsOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_adoptions_on.jpg";
	supportOn = new Image();
	supportOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_support_on.jpg";
	volunteerOn = new Image();
	volunteerOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_volunteer_on.jpg";
	spayOn = new Image();
	spayOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_spay_on.jpg";
	raiderOn = new Image();
	raiderOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_raider_on.jpg";
	eventsOn = new Image();
	eventsOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_events_on.jpg";
	searchOn = new Image();
	searchOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_search_on.gif";
	
	
	shopOn = new Image();
	shopOn.src = "http://www.houstonhumane.org/images/buttons/tn_b_shop_on.jpg";
	
	adoptions2On = new Image();
	adoptions2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_adoptions2_on.gif";
	support2On = new Image();
	support2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_support2_on.gif";
	volunteer2On = new Image();
	volunteer2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_volunteer2_on.gif";
	spay2On = new Image();
	spay2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_spay2_on.gif";
	raider2On = new Image();
	raider2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_raider2_on.gif";
	events2On = new Image();
	events2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_events2_on.gif";
	search2On = new Image();
	search2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_search2_on.gif";
	
	shop2On = new Image();
	shop2On.src = "http://www.houstonhumane.org/images/buttons/tn_b_shop2_on.gif";
	
	
	
}


function swapOn(imgName) {
    if (document.images) { 
        imgOn = eval(imgName + "On.src");
        document [imgName].src = imgOn;
	}
}

function swapOff(imgName) {
	if (document.images) {
        imgOff = eval(imgName + "Off.src");
        document [imgName].src = imgOff;
	}
}



/*
Netscape 4 Resize bug 
Workaround for a Netscape 4 bug that causes 
stylesheets to be corrupted when the window is resized.
*/

if (document.layers) {
	var widthCheck = window.innerWidth;
	var heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}

function resizeFix() {
	with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href;
	}}
	
}
