function hide(obj){ obj.style.display = 'none'; }
function unhide(obj){ obj.style.display = 'block'; }

function get_event(e)
{
	var obj = e;
	if ( window.event )
	{
		obj.layerX = e.offsetX;
		obj.layerY = e.offsetY;
		obj.target = e.srcElement;
		obj.preventDefault = function() { event.returnValue = false; }
		obj.stopPropagation = function() { event.cancelBubble = true; }
	}
	return( obj );
}

function menu(){
	var menu = document.getElementById('menu');

    var link = menu.getElementsByTagName('A');

    for(x=0, y=link.length; x<y; x++){
      //for each link browse through child nodes
      child = link[x].childNodes;
      for(a=0, b=child.length; a<b; a++){
        //if we find an image, add some mouseover / mouseout events to our link
        if(child[a].nodeName == 'IMG'){
          link[x].img = child[a];
          link[x].onmouseover = function(e){ hide(this.img); e = get_event(e || event); e.stopPropagation(); e.preventDefault(); return( false ); };
          link[x].onmouseout = function(e){ unhide(this.img); e = get_event(e || event); e.stopPropagation(); e.preventDefault(); return( false ); };
        }
      }
    }
}

function submitForm(obj){

  if(obj.selectedIndex != '0' && obj.selectedIndex != '1') document.lang.submit();
}

window.onload = function(){ menu(); };