function altBG(listId,oddItem,evenItem,hoverBG){

	

	var listItem=document.getElementById(listId).getElementsByTagName("li");

	

		for (var i=0;i<listItem.length;i++){

			if (i%2==0){

				listItem[i].style.backgroundColor=oddItem;

				listItem[i].onmouseover=function(){

					this.style.backgroundColor=hoverBG;

				}

				listItem[i].onmouseout=function(){

					this.style.backgroundColor=oddItem;

				}

			} else if (i%2==1){

				listItem[i].style.backgroundColor=evenItem;

				listItem[i].onmouseover=function(){

					this.style.backgroundColor=hoverBG;

				}

				listItem[i].onmouseout=function(){

					this.style.backgroundColor=evenItem;

				}



			}

		}

}

	

/* HOW TO USE:



listId:			id of list

oddItem: 		the background color of the odd-numbered items, set in quotes and hexidecimals

evenItem: 		the background color of the even-numbered items, set in quotes and hexidecimals

hoverBG:		the background color shown when the list item is hovered.



*/
