/*****************************************************************
Filename:		scripts.js
Date:			10/28/2008
Author:			Amy Ballard
Description:	javascript that controls the menu undelines that indicate the current page for http://www.stevenreddy.com/
				Linked within frame name="header" .
				Called by <body onload="changeFont(1);"> for each page in the "content" frame
				The "menuItem" value is the array location of the page being loaded

Revisions		
10/28/2008	Amy Ballard		Created. 
****************************************************************/


// controls the menu highlighting depending on the page you are on

function changeFont(menuItem)	{
	menuList = new Array();
	
	menuList[0] = "parent.frames[0].document.getElementById('home').style.textDecoration =";
	menuList[1] = "parent.frames[0].document.getElementById('show').style.textDecoration =";
	menuList[2] = "parent.frames[0].document.getElementById('technique').style.textDecoration =";
	menuList[3] = "parent.frames[0].document.getElementById('bio').style.textDecoration =";
	menuList[4] = "parent.frames[0].document.getElementById('contact').style.textDecoration =";
	
	for(i in menuList) {
		if (menuItem == i) 	{
			var result = eval(menuList[i] + "'none'");
		} else {
			var result = eval(menuList[i] + "'underline'");	
		}	
	}	
}	
