// nav.js
// Defines JavaScript mouseOver actions for the navigation buttons
// Written by Takahiro Hisada on 08/30/2002

if(document.images)
{
	// pre-loading images
	homeOn = new Image
	whatsnewOn = new Image
	aboutOn = new Image
	resumeOn = new Image
	portfolioOn = new Image
	thoughtsOn = new Image
	picturesOn = new Image
	guestbookOn = new Image
	linksOn = new Image

	homeOff = new Image
	whatsnewOff = new Image
	aboutOff = new Image
	resumeOff = new Image
	portfolioOff = new Image
	thoughtsOff = new Image
	guestbookOff = new Image
	picturesOff = new Image
	linksOff = new Image

	homeOn.src = "/tako/images/pnl_wht_home.gif"
	whatsnewOn.src = "/tako/images/pnl_wht_whatsnew.gif"
	aboutOn.src = "/tako/images/pnl_wht_about.gif"
	resumeOn.src = "/tako/images/pnl_wht_resume.gif"
	portfolioOn.src = "/tako/images/pnl_wht_portfolio.gif"
	thoughtsOn.src = "/tako/images/pnl_wht_thoughts.gif"
	guestbookOn.src = "/tako/images/pnl_wht_guestbook.gif"
	picturesOn.src = "/tako/images/pnl_wht_pictures.gif"
	linksOn.src = "/tako/images/pnl_wht_links.gif"

	homeOff.src = "/tako/images/pnl_slv_home.gif"
	whatsnewOff.src = "/tako/images/pnl_slv_whatsnew.gif"
	aboutOff.src = "/tako/images/pnl_slv_about.gif"
	resumeOff.src = "/tako/images/pnl_slv_resume.gif"
	portfolioOff.src = "/tako/images/pnl_slv_portfolio.gif"
	thoughtsOff.src = "/tako/images/pnl_slv_thoughts.gif"
	guestbookOff.src = "/tako/images/pnl_slv_guestbook.gif"
	picturesOff.src = "/tako/images/pnl_slv_pictures.gif"
	linksOff.src = "/tako/images/pnl_slv_links.gif"
}

// function overImage()
// This function gets called when a cursor moves OVER a button.
// Using the image name passed in, gets the path to the appropriate
// image and replaces the current image with it. 
function overImage(imgName) {
    if(document.images) {
    document[imgName].src = eval(imgName + "On.src");
    }
}

// function overImage()
// This function gets called when a cursor moves OFF a button.
// Using the image name passed in, gets the path to the appropriate
// image and replaces the current image with it. 
function offImage(imgName) {
    if(document.images) {
    document[imgName].src = eval(imgName + "Off.src");
    }
}