// Copyright Acro Media Inc. 1998-2003, www.acromediainc.com
preloaded = 0;
var imageNames;
var imageOver;
graphicsDir = dirDepth+"graphics/nav/";

if(document.images){
	imageNames = new initArray("button1", "button2", "button3", "button4", "button5");
	imageOver = new initArray("b_home_02.gif", "b_search_02.gif", "b_location_02.gif", "b_about_02.gif", "b_contact_02.gif");
}

function preloadImages(){
	var i, temp;

	if(document.images){
		for(i=0; i<imageNames.length; i++){
			document.images[imageNames[i]].offsrc = document.images[imageNames[i]].src;
		}


		for(i=0; i<imageNames.length; i++){
			temp = new Image();
			temp.src = graphicsDir + imageOver[i];
			document.images[imageNames[i]].oversrc = temp.src;
		}
		preloaded = 1;
	}
}

function initArray(){
	if (document.images){
		this.length = initArray.arguments.length;
		for (var i=0;i<= this.length; i++){
			this[i] = initArray.arguments[i];
		}
	}
}

function mouseOver(imageID) {
	if(document.images && preloaded){
		document.images[imageNames[imageID]].src = document.images[imageNames[imageID]].oversrc;
	}
}

function mouseOut(imageID) {
	if(document.images && preloaded){
		document.images[imageNames[imageID]].src = document.images[imageNames[imageID]].offsrc;
	}
}



// Copyright Acro Media Inc. 1998-2002, www.acromediainc.com

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
NS3 = (!NS4 && !IE4 && document.images) ? 1 : 0;
NS2 = (!NS4 && !IE4 && !NS3 && !document.images) ? 1 : 0;

newWin=0;

function openUp(windowURL, windowWidth, windowHeight) {
	if(newWin){
		if(eval("newWin.location")){
			newWin.close();
		}
	}
	setTimeout("doOpen(\""+windowURL+"\", "+windowWidth+", "+windowHeight+")", 100);
}

function doOpen(windowURL, windowWidth, windowHeight) {
	newWin = window.open(windowURL,"printWindow","toolbar=1,menubar=0,width="+windowWidth+",height="+windowHeight+",scrollbars=1,resizable=1");

	if(!NS2 && !IE4){
		if(newWin.location){
			setTimeout("newWin.focus()", 100);
		}
	}
}
