var menuImagePath = "graphics/menu/"

var menuImagesOff = new Array()
var menuImagesRoll = new Array()
var menuImagesOn = new Array()

var book = new Image()
var bookRoll = new Image()

book.src = "graphics/purchasebook1.jpg"
bookRoll.src = "graphics/purchasebook2.jpg"

var icon1 = new Image()
var icon2 = new Image()
var icon3 = new Image()
var icon1Roll = new Image()
var icon2Roll = new Image()
var icon3Roll = new Image()

icon1.src = "graphics/effecticon1.jpg"
icon1Roll.src = "graphics/effecticon1roll.jpg"

icon2.src = "graphics/effecticon2.jpg"
icon2Roll.src = "graphics/effecticon2roll.jpg"

icon3.src = "graphics/effecticon3.jpg"
icon3Roll.src = "graphics/effecticon3roll.jpg"

var headerLinks = new Array()
var headerLinksRoll = new Array()

headerLinks[0] = new Image()
headerLinks[1] = new Image()
headerLinksRoll[0] = new Image()
headerLinksRoll[1] = new Image()

headerLinks[0].src = "graphics/web1.gif"
headerLinks[1].src = "graphics/web2.gif"
headerLinksRoll[0].src = "graphics/web1roll.gif"
headerLinksRoll[1].src = "graphics/web2roll.gif"

for (i=1; i<=7; i++)
{
	menuImagesOff[i] = new Image()
	menuImagesRoll[i] = new Image()
	menuImagesOn[i] = new Image()
	menuImagesOff[i].src = menuImagePath + i + ".gif"
	menuImagesRoll[i].src = menuImagePath + i + "roll.gif"
	menuImagesOn[i].src = menuImagePath + i + "on.gif"
}

function rollover(i)
{
	if (i != currentSelection)
	{
		document.images["mb"+i].src = menuImagesRoll[i].src
	}
}

function rollout(i)
{
	if (i != currentSelection)
	{
		document.images["mb"+i].src = menuImagesOff[i].src
	}
}

function rollBook(s)
{
	if (s==0) document.images["book"].src = book.src
	if (s==1) document.images["book"].src = bookRoll.src
}

function rollEffect(i,s)
{
	if (s==0) document.images["icon"+i].src = eval("icon"+i+".src")
	if (s==1) document.images["icon"+i].src = eval("icon"+i+"Roll.src")
}

function rollWeb(i,s)
{
	if (s==0) document.images["w"+i].src = headerLinks[i].src
	if (s==1) document.images["w"+i].src = headerLinksRoll[i].src
}