function init() {
	var x = document.getElementById('mainNav').getElementsByTagName('img');
	for (var i=0;i<x.length;i++)
	{
		addEvent(x[i],"mouseover",swapIn);
		addEvent(x[i],"mouseout",swapOut);
	}
	var y = document.getElementById('gameLayer').getElementsByTagName('a');
	for (var j=0;j<y.length;j++) {
		if (y[j].className == 'JMTicon') {
			addEvent(y[j],"click",showBottle);
			addEvent(y[j],"focus",showBottle);
		}
	}/**/
}
/*
function initbonus() {
	var y = document.getElementById('gameLayer').getElementsByTagName('a');
	for (var j=0;j<y.length;j++) {
		if (y[j].className == 'JMTBonusicon') {
			addEvent(y[j],"click",showBonus);
			addEvent(y[j],"focus",showBonus);
		}
	}
}
*/
//img swaps for navigation
function swapIn() {
	this.src = "/images/all/" + this.id + "_btn_on.gif";
}
function swapOut() {
	this.src = "/images/all/" + this.id + "_btn_off.gif";
}

//for game reveal
/*function showBottle() {
	this.parentNode.innerHTML = "<img src=\"images/treasurehunt/sweepsBottle.png\" alt=\"sweeps bottle\" width=\"75\" height=\"93\"><p>You've found a hidden bottle!<br><a href=\"/treasurehunt/account.asp\">See your total</a> &gt;&gt;</p>";
}
function showBonus() {
	this.parentNode.innerHTML = "<img src=\"images/treasurehunt/bonusBottle.png\" alt=\"Bonus bottle\" width=\"66\" height=\"99\"><p>You've found a Bonus bottle!<br><a href=\"/treasurehunt/bonus.asp\">Click here to see if you're an instant winner</a> &gt;&gt;</p>";
}
*/