window.onload = startup;



function	startup() {

var foodButton = document.getElementById("food");
if (foodButton.addEventListener)	{;
foodButton.addEventListener("mouseover", foodRoll, false);
foodButton.addEventListener("mouseout", foodOut, false);
foodButton.addEventListener("click", clickFoodButton, false);
}

else { 
foodButton.attachEvent("onmouseover", foodRoll);
foodButton.attachEvent("onmouseleave", foodOut);
foodButton.attachEvent("onclick", clickFoodButton);
}

var xxButton = document.getElementById("xx");
if (xxButton.addEventListener)	{;
xxButton.addEventListener("mouseover", xxRoll, false);
xxButton.addEventListener("mouseout", xxOut, false);
xxButton.addEventListener("click", clickxxButton, false);
}

else { 
xxButton.attachEvent("onmouseover", xxRoll);
xxButton.attachEvent("onmouseleave", xxOut);
xxButton.attachEvent("onclick", clickxxButton);
}

var infoButton = document.getElementById("info");
if (infoButton.addEventListener)	{;
infoButton.addEventListener("mouseover", infoRoll, false);
infoButton.addEventListener("mouseout", infoOut, false);
infoButton.addEventListener("click", clickInfoButton, false);
}

else { 
infoButton.attachEvent("onmouseover", infoRoll);
infoButton.attachEvent("onmouseleave", infoOut);
infoButton.attachEvent("onclick", clickInfoButton);
}

var aboutButton = document.getElementById("about");
if (aboutButton.addEventListener)	{;
aboutButton.addEventListener("mouseover", aboutRoll, false);
aboutButton.addEventListener("mouseout", aboutOut, false);
aboutButton.addEventListener("click", clickAboutButton, false);
}

else { 
aboutButton.attachEvent("onmouseover", aboutRoll);
aboutButton.attachEvent("onmouseleave", aboutOut);
aboutButton.attachEvent("onclick", clickAboutButton);
}

var ahhaButton = document.getElementById("ahha");
if (ahhaButton.addEventListener)	{;
ahhaButton.addEventListener("mouseover", ahhaRoll, false);
ahhaButton.addEventListener("mouseout", ahhaOut, false);
ahhaButton.addEventListener("click", clickAhhaButton, false);
}

else { 
ahhaButton.attachEvent("onmouseover", ahhaRoll);
ahhaButton.attachEvent("onmouseleave", ahhaOut);
ahhaButton.attachEvent("onclick", clickAhhaButton);
}

var oknotButton = document.getElementById("oknot");
if (oknotButton.addEventListener)	{;
oknotButton.addEventListener("mouseover", oknotRoll, false);
oknotButton.addEventListener("mouseout", oknotOut, false);
oknotButton.addEventListener("click", clickOknotButton, false);
}

else { 
oknotButton.attachEvent("onmouseover", oknotRoll);
oknotButton.attachEvent("onmouseleave", oknotOut);
oknotButton.attachEvent("onclick", clickOknotButton);
}

var cuButton = document.getElementById("cu");
if (cuButton.addEventListener)	{;
cuButton.addEventListener("mouseover", cuRoll, false);
cuButton.addEventListener("mouseout", cuOut, false);
cuButton.addEventListener("click", clickCuButton, false);
}

else { 
cuButton.attachEvent("onmouseover", cuRoll);
cuButton.attachEvent("onmouseleave", cuOut);
cuButton.attachEvent("onclick", clickCuButton);
}
}




function foodRoll(e)	{
		theimage=document.getElementById("foodButton");
		theimage.setAttribute("src", "images/food_rollover.gif");
} 		
function foodOut(e)	{
		theimage=document.getElementById("foodButton");
		theimage.setAttribute("src", "images/food_out.gif");
} 		
function xxRoll(e)	{
		theimage=document.getElementById("xxButton");
		theimage.setAttribute("src", "images/xx_rollover.gif");
} 		
function xxOut(e)	{
		theimage=document.getElementById("xxButton");
		theimage.setAttribute("src", "images/xx_out.gif");
} 		
function infoRoll(e)	{
		theimage=document.getElementById("infoButton");
		theimage.setAttribute("src", "images/info_rollover.gif");
} 		
function infoOut(e)	{
		theimage=document.getElementById("infoButton");
		theimage.setAttribute("src", "images/info_out.gif");
} 		
function aboutRoll(e)	{
		theimage=document.getElementById("aboutButton");
		theimage.setAttribute("src", "images/about_rollover.gif");
} 		
function aboutOut(e)	{
		theimage=document.getElementById("aboutButton");
		theimage.setAttribute("src", "images/about_out.gif");
} 		
function ahhaRoll(e)	{
		theimage=document.getElementById("ahhaButton");
		theimage.setAttribute("src", "images/ahha_rollover.gif");
} 		
function ahhaOut(e)	{
		theimage=document.getElementById("ahhaButton");
		theimage.setAttribute("src", "images/ahha_out.gif");
} 		
function oknotRoll(e)	{
		theimage=document.getElementById("oknotButton");
		theimage.setAttribute("src", "images/oknot_rollover.gif");
} 		
function oknotOut(e)	{
		theimage=document.getElementById("oknotButton");
		theimage.setAttribute("src", "images/oknot_out.gif");
} 	
function cuRoll(e)	{
		theimage=document.getElementById("cuButton");
		theimage.setAttribute("src", "images/cu_rollover.gif");
} 
function cuOut(e)	{
		theimage=document.getElementById("cuButton");
		theimage.setAttribute("src", "images/cu_out.gif");
} 	




function clickFoodButton(e)	{;
	window.open("messages/food.html", "_self");
}
function clickxxButton(e)	{;
	window.open("xxIndex.html", "_self");
}
function clickAboutButton(e)	{;
	window.open("about.html", "_self");
}
function clickInfoButton(e)	{;
	window.open("infoIndex.html", "_self");
}
function clickAhhaButton(e)	{;
	window.open("ahhaIndex.html", "_self");
}
function clickOknotButton(e)	{;
	window.open("notokIndex.html", "_self");
}
function clickCuButton(e)	{;
	window.open("cuIndex.html", "_self");
}

