function showMenu() {
	$$('#menuRoot li').each(function(el){
		el.addEvent('mouseover',function() { 
			if (this.getChildren('ul')) {
				this.getChildren('ul').show();
				this.addClass('open');
			}
		});
		el.addEvent('mouseout',function() { 
			if (this.getChildren('ul')) {
				this.getChildren('ul').hide();
				this.removeClass('open');
			}
		});
	});
	
	$('me_337').removeEvents();
	
	$$('#me_337 li').each(function(el) {
		el.removeEvents();
	});
	
	$('me_337').addEvent('mouseover',function(){
		if (this.getChildren('ul')) {
			$$('#me_337 ul li').show();
			$$('#me_337 ul li ul').show();
			$$('#me_337 ul li ul li').show();
			this.getChildren('ul').show();
			this.addClass('open');
		}		
	});
	
	$('me_337').addEvent('mouseout',function(){
		if (this.getChildren('ul')) {
			$$('#me_337 ul li ul li').hide();
			$$('#me_337 ul li ul').hide();
			$$('#me_337 ul li').hide();
			this.getChildren('ul').hide();
			this.removeClass('open');
		}		
	});

	
}


window.addEvent('domready', function() {
  showMenu();
});


var mousepos_left=0;
var mousepos_top=0;	
var xmlhttp = null;
var element = null;
var triggerId = null;

window.onload = function() {

document.body.onmousemove = function(e) {
	if(!e) e = window.event;
	mousepos_top = e.clientY ? e.clientY : e.pageY;
	mousepos_left = e.clientX ? e.clientX : e.pageX;
}
}
if (window.XMLHttpRequest) {
	xmlhttp = new XMLHttpRequest();
} else if (window.ActiveXObject) {
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}



function hideAddress() {
	xmlhttp.abort();
	element.style.display = 'none';
	element.innerHtml = '';
}

function showAddress(el,id,color) {
	el.removeAttribute("title");
  	if (element == null) element = document.getElementById('show_axt_address');

  	xmlhttp.open("GET", '?eID=axt_address_trigger&record=' + id + '&color=' + color, true);
  	xmlhttp.onreadystatechange = function() {
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			var offsetY = vscroll = (document.all ? document.documentElement.scrollTop : window.pageYOffset);
		   offsetY = parseInt(offsetY);	

			if(mousepos_top > 500) offsetY = parseInt(offsetY) - 100;

        	element.style.top = (mousepos_top + offsetY + 10) + 'px';
        	element.style.left = (mousepos_left + 10) + 'px';
        	element.innerHTML = xmlhttp.responseText;
        	element.style.display = 'block';
        	element.style.position = 'absolute';
		}
	}
  
  	xmlhttp.send(null);
	return false;
}

