navMainHover = function() {
		var navElements = document.getElementById("navWrapper").getElementsByTagName("li");
		for (var i=0; i < navElements.length; i++) {
			navElements[i].onmouseover=function() {
				this.className+=" active";
			}
			navElements[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" active\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", navMainHover);

$(function() {
	$('#userAgent').html(navigator.userAgent);
	$('#navWrapper li ul').bgiframe();
});
