//*****************************************************************************
// index.js
//*****************************************************************************

//*****************************************************************************
// Image maps for the buttons
//*****************************************************************************

if(document.images)
{
	home_a = new Image
	home_p = new Image
	how_a = new Image
	how_p = new Image
	who_a = new Image
	who_p = new Image
	contact_a = new Image
	contact_p = new Image
	breaking_a = new Image
	breaking_p = new Image
	
	home_a.src = 		"images/home_active.gif"
	home_p.src = 		"images/home_passive.gif"
	how_a.src =			"images/how_active.gif"
	how_p.src =			"images/how_passive.gif"
	who_a.src = 		"images/who_active.gif"
	who_p.src = 		"images/who_passive.gif"
	contact_a.src =		"images/contact_active.gif"
	contact_p.src =		"images/contact_passive.gif"
	breaking_a.src =	"images/breaking_active.gif"
	breaking_p.src =	"images/breaking_passive.gif"
	
}

//*****************************************************************************
// function to swap in the image
//*****************************************************************************
function swapImg(imgField, newImg)
{
	if (document.images)
	{
		document[imgField].src = eval(newImg + ".src")
	}


}
