// If MSIE, simulate css pseudo hover states for LI tags...unless on the mac	
// JDG 20040513

function fnDoMenu() {	

		
		var thisMenu = document.getElementById("menu");		
		var lis = thisMenu.getElementsByTagName("li");
		
		if (document.all && document.getElementById){
			for (i=0; i<lis.length; i++) {	
					lis[i].onmouseover = function(){																											
								//style last li in list to have a bottom border
								if (this.className == "last")	{									
									this.style.border = "1px solid #999";
								} 												
								
								if (this.className == "start")	{									
									this.style.border = "1px solid #999";
								} 												
								
								if (this.className == "arrow")	{	
									this.className = "overArrow";	
								} else {		
									if (this.className == "startarrow")	{	
										this.className = "startoverArrow";	
									} else {		
										this.className = "over";	
									}
								}
								
																													
					}		
					lis[i].onmouseout = function(){		
								if (this.className == "overArrow")	{	
									this.className = "arrow";	
									} else {
									if (this.className == "startoverArrow")	{	
										this.className = "startarrow";	
									}else{
										this.className = "";
									}													
								}
								
							
					}					
				}			
			}
}			
window.onload=fnDoMenu;		