// Copyright Dennix, Inc. Inc. 1998-2003, www.dennixinc.com
preloaded = 0;
var imageNames;
var imageOver;
graphicsDir = dirDepth+"graphics/toolbar/";

if(document.images){
	imageNames = new initArray("button1", "button2", "button3", "button4", "button5", "button6", "button7");
	imageOver = new initArray("b_home_02.gif", "b_timbers_02.gif", "b_locations_02.gif", "b_outstanding_02.gif", "b_developer_02.gif", "b_whatsnew_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;
	}
}