function initMenues() 
{
	if (document.all && document.getElementById) {

		var mymenu = function(navRoot) {
			if(navRoot) {
				for (i=0; i<navRoot.childNodes.length; i++) {
					node = navRoot.childNodes[i];
					if (node.nodeName=="LI") {
						node.onmouseover=function() {
							this.className+=" over";
							this.style.zIndex = 5000;
						}
						node.onmouseout=function() {
							var myobj = this;
							window.setTimeout(function () {
								if(myobj) {
								myobj.className=myobj.className.replace(" over", "");
								}
							}, 600);
						}
					}
				}
			}
		}
		if(document.getElementById('brandnav')) mymenu(document.getElementById("brandnav"));
	}
}
addEvent(window, 'load', initMenues);

function detect_ie7_onpage(page) {
	if(
		document.getElementById(page) &&
		navigator.appName == "Microsoft Internet Explorer" &&
		window.XMLHttpRequest
	) {
		return true;
	}
	return false;
}

function reposition_menue(page) {
	if(detect_ie7_onpage(page)) {
		var myul = document.getElementById('brandnav').firstChild.firstChild.nextSibling;
		myul.style.left = "0px";
		myul.style.top = "25px";
	}
}

function addEvent( obj, type, fn ) {
	if (obj.addEventListener) {
		obj.addEventListener( type, fn, false );
	}
	else if (obj.attachEvent) {
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
	else {
		obj["on"+type] = obj["e"+type+fn];
	}
}
var TitleTrack = { 
	init : function() {
		if ( !document.getElementById ||
			!document.createElement ||
			!document.getElementsByTagName ) {
			return;
		}
		var i,j;
		this.tip = document.createElement('div');
		this.tip.id = 'toolTip';
		document.getElementsByTagName('body')[0].appendChild(this.tip);
		this.tip.style.top = '0';
		this.tip.style.visibility = 'hidden';
		addEvent(document,'mousemove',this.updateXY);
		if ( document.captureEvents ) {
				document.captureEvents(Event.MOUSEMOVE);
		}
		var tipLen = this.tipElements.length;
		for ( i=0; i<tipLen; i++ ) {
			var current = document.getElementsByTagName(this.tipElements[i]);
			var curLen = current.length;
			for ( j=0; j<curLen; j++ ) {
				if(current[j].title != "") {
					addEvent(current[j],'mouseover',this.tipOver);
					addEvent(current[j],'mouseout',this.tipOut);
					current[j].setAttribute('tip',current[j].title);
					current[j].removeAttribute('title');
				}
			}
		}
	}
};