if (document.images) {
	// Initialize Variables
	var defaultInactivePath  = "images/nav/off/";
	var defaultActivePath    = "images/nav/over/";
	var defaultExt           = ".gif";
	var rolloverImages       = new Object();
	var isCached             = false;
	
	// Precache images
	rolloverImages["home"]    = new rolloverObject("home", 132, 28, defaultInactivePath, defaultActivePath, defaultExt);
	rolloverImages["aboutus"]        = new rolloverObject("aboutus", 132, 32, defaultInactivePath, defaultActivePath, defaultExt);
	rolloverImages["portfolio"]       = new rolloverObject("portfolio",  132, 32, defaultInactivePath, defaultActivePath, defaultExt);
	rolloverImages["jobs"]        = new rolloverObject("jobs", 132, 30, defaultInactivePath, defaultActivePath, defaultExt);
	rolloverImages["clientarea"]    = new rolloverObject("clientarea", 132, 31, defaultInactivePath, defaultActivePath, defaultExt);
	rolloverImages["contact"]       = new rolloverObject("contact",  132, 30, defaultInactivePath, defaultActivePath, defaultExt);
	isCached = true;
	
}

function rolloverObject(name, width, height, inactivePath, activePath, ext) {
	this.inactive      = new Image(width, height);
	this.inactive.src  = inactivePath + name + ext;
	this.active        = new Image(width, height);
	this.active.src    = activePath + name + ext;
	return true;
}

function activate(imageName) {
	if (document.images && isCached) document.images[imageName].src = rolloverImages[imageName].active.src;
	return true
}

function deactivate(imageName) {
	if (document.images && isCached) document.images[imageName].src = rolloverImages[imageName].inactive.src;
	return true
}	