function showauth() {
	var d = document;
	if (d.getElementById('authid')) {
		d.getElementById('authid').style.display = 'block';
	}
}

function addHandler(node, evt, func) {
    if (node.addEventListener) {
        node.addEventListener(evt, func, false); 
    } else {
        node.attachEvent('on' + evt, func);     
    }
};
 
function isParent(child, parent) {
    if (!child || !parent) {
        return false;
    }
    while (true) {
        if (child == parent) {
            return true;
        }
        if (child.parentElement) {
            child = child.parentElement;
        } else 
          try {
                  if (child.parentNode) {
                      child = child.parentNode;
                  } else {
                      return false;
                  }
          }
          catch (e) {
                      return true;
          }        
    }
}

function initauth() {
addHandler(window, 'load', function() {
    var node = document.getElementById('authid');
    addHandler(node, 'mouseout', function(e) {
        var target = e.relatedTarget || e.toElement;
        if(!isParent(target, node)) {
			document.getElementById('authid').style.display = 'none';
        }
    });
});


}
