sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
// Mac IE 5 doesnt support window.attachEvent use getElement instead
//if (window.attachEvent) window.attachEvent("onload", sfHover);
if (document.all&&document.getElementById) window.onload=sfHover;



// Build HTML for menu for browsers that dont support the dropdown menus

var strHTML = '<table id="AltNav" cellpadding="0" cellspacing="0" border="0" width="739">';
strHTML += '<tr>';
strHTML += '<td align="right" class="navbg" bgcolor="#1A385E">';
strHTML += '<table cellpadding="0" cellspacing="0" border="0" width="622">';
strHTML += '<tr>';
strHTML += '<td><a href="#"><img src="/images05/nav_product.gif" width="130" height="31" border="0" alt="Products &amp; Suppliers" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_news.gif" width="113" height="31" border="0" alt="News &amp; Research" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_magazine.gif" width="81" height="31" border="0" alt="Magazines" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_tradeshow.gif" width="88" height="31" border="0" alt="Tradeshows" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_mdr.gif" width="49" height="31" border="0" alt="MDR" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_career.gif" width="100" height="31" border="0" alt="Career Center" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_about.gif" width="107" height="31" border="0" alt="About This Site" /></a></td>';
strHTML += '<td><a href="#"><img src="/images05/nav_login.gif" width="61" height="31" border="0" alt="Login" /></a></td>';
strHTML += '</tr>';
strHTML += '</table>';
strHTML += '</td>';
strHTML += '</tr>';
strHTML += '</table>';

//thanh added 9/13/2005
//var is_mac;

// Function to replace dropdown css menus with static table based menu
function fixmenu() {
	if (is_mac && is_ie5up) {
		var p = document.getElementById("NavContainer");
		//alert (p);
		
		if (p.innerHTML) {
			//alert ('NavContainer exists');
			p.innerHTML = strHTML;
		} else {
			//alert ('NavContainer does not exists');
			alert("Oops! your browser needs to be updated, please visit http://www.mozilla.org/ for the latest browser.");
		}
	};


};

setTimeout("fixmenu()", 5);
