TopMenuHover = function() {
	list = Element.GetByClassName('TopMenu');
	for (i=0; i<list[0].children.length; i++)
	{
		BrowserDetect.init();
		if (list[0].children[i].tagName == "LI" && BrowserDetect.version < 7)
		{
			list[0].children[i].onmouseover = function() { Hide(this); }
			list[0].children[i].onmouseout = function() { Show(this); }
		}
	}
}

if (window.attachEvent) 
	window.attachEvent("onload", TopMenuHover); //ie only (which is what we want)


<!--//
//REQUIRES: prototype

function Show(obj)
{
	Element.ClassRemove(obj,"iehover");
	Element.Show(Element.GetByTagName("select"));
}

function Hide(obj)
{
	Element.ClassAdd(obj,"iehover")
	Element.Hide(Element.GetByTagName("select"));
}

var _POPUP;
function Popup_ListenerOn() //call this in the page load to bind 
{
	LinksList = Element.GetByClassName('PopUp');
	
	for (var i = 0; i < LinksList.length; i++)
	{
		Events.Add( LinksList[i], 'click', OpenPopup );
		LinksList[i].onclick = function () {return false};
		
	}
}

function OpenPopup(e) //METHOD
{
	var url = '/blank.aspx';
	if ( this.href!=null)
		if (this.href.length>0 ) 
			url = this.href;
	//alert(Event.element(e));
	
	//get width/height from attributes of anchor element (not w3c valid, but it is good code)
	var width = (this.attributes["popupwidth"] != null) ? this.attributes["popupwidth"].nodeValue : 628;
	var height = (this.attributes["popupheight"] != null) ? this.attributes["popupheight"].nodeValue : 550;

	var popupWindow = window.open(url, 'popup', Popup_GetFeatures(width, height));
	popupWindow.focus();
}

function Popup_GetFeatures(popupWidth, popupHeight)
{
	//for full list of features: http://developer.mozilla.org/en/docs/DOM:window.open
	
	if (popupWidth == null || popupWidth.length<=0) popupWidth = 600; //default
	if (popupHeight == null || popupHeight.length<=0) popupHeight = 550; //default
	var popupLeft = 780/2 - popupWidth/2; //default to 800x600
	var popupTop = 580/2 - popupHeight/2; //default to 800x600	
	if (self.innerWidth)
	{
		popupLeft = self.innerWidth/2-popupWidth/2;
		popupTop = self.innerHeight/2-popupHeight/2;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		popupLeft = document.documentElement.clientWidth/2-popupWidth/2;
		popupTop = document.documentElement.clientHeight/2-popupHeight/2;
	}
	else if (document.body)
	{
		popupLeft = document.body.clientWidth/2-popupWidth/2;
		popupTop = document.body.clientHeight/2-popupHeight/2;
	}
	var popupFeatures = ''+
		'top=' + popupTop.toString() + ',' +
		'left=' + popupLeft.toString() + ',' +
		'width=' + popupWidth.toString() + ',' +
		'height=' + popupHeight.toString() + ',' +
		'menubar=0,' +
		'toolbar=0,' +
		'directories=0,' +
		'location=0,' +
		'statusbar=1,' +
		'status=1,' +
		'resizable=1,' +
		'scrollbars=1';
	return popupFeatures;
}
//-->
//Events.Add(window, 'load', Popup_ListenerOn );