// 14-09-2006 - AL - created this file to be called in pages using ../includes/navMenu.php functions which generate the menu

// This function changes the class of the item with the id passed
function change(id, newClass) {
	
	identity=document.getElementById(id);
	if (identity)
	{
		identity.className = newClass;
	}
	
}

//reset all rows, this should always be called before change() and not after, this is used onClick
//This function is used onClick to reset all rows before changing the selected one using function change()
function reset_all(start_row, num_rows) {

	for (x=start_row; x<(start_row + num_rows); x++)//reset for all rows between start_row and end row
	{ 
		row = 'row'.concat(x);
		identity = document.getElementById(row);
		identity.className ='';//reset to just lined class 
	}

}

//This function just resets the color of all fonts to the original not clicked color, since it changes to white when its clicked
//this should always be called before change() and not after
function reset_all_links(num_rows) {

	for (x=1; x<=(num_rows); x++)//reset for all rows between start_row and end row
	{ 
		row = 'menu_link'.concat(x);
		identity = document.getElementById(row);
		identity.className ='menu_font1';//reset to just lined class 
	}

}