function goto(theURL) { //v2.0
  window.location = theURL;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var show_time;

function get_absolute_x(entity){
    var x = 0, lastOffsetLeft = 0;

    while(entity)
    {
        if(entity.offsetLeft) lastOffsetLeft = entity.offsetLeft; // IE for Mac
				x += entity.offsetLeft;
        entity = entity.offsetParent;
    }

    if ((navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("MSIE") != -1)) x -= lastOffsetLeft;

    return x;
}

function get_absolute_y(entity){
    var y = 0, lastOffsetTop = 0;

    while(entity)
    {
        if(entity.offsetTop) lastOffsetTop = entity.offsetTop; // IE for Mac
				y += entity.offsetTop;
        entity = entity.offsetParent;
    }

    if ((navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("MSIE") != -1)) x -= lastOffsetTop;

    return y;
}

function show_langselect(){
	document.getElementById("langselect").style.visibility = "visible";
	document.getElementById("langselect").style.left = get_absolute_x(document.getElementById("langref")) - 152 + "px";
	document.getElementById("langselect").style.top = get_absolute_y(document.getElementById("langref")) + 21 + "px";
	stop_timer();
}

function hide_langselect(){
	document.getElementById("langselect").style.visibility = "hidden";
	stop_timer();
}

function stop_timer()
{
  if(show_time) clearTimeout(show_time);
}

function set_timer()
{
  show_time = setTimeout("hide_langselect()",500);
}
