/* Modified to support Opera */
function bookmarkus(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

	function showHide(shID) {
			if (document.getElementById(shID)) {
				if (document.getElementById(shID+'-show').style.display != 'none') {
					document.getElementById(shID+'-show').style.display = 'none';
					document.getElementById(shID).style.display = 'block';
				}
				else {
					document.getElementById(shID+'-show').style.display = 'inline';
					document.getElementById(shID).style.display = 'none';
				}
			}
	}

/* show tooltip */

	var toolTipId = "";
	var toolTipWidth = 100;
	var toolTipHeight = 50;
	var toolTipLeft = 0;
	var toolTipTop = 0;
	function showToolTip(tTipId) {
		if(toolTipId != "")
			document.getElementById(toolTipId).style.visibility = "hidden";
		var t = document.getElementById(tTipId);
		t.style.visibility = "visible";
		toolTipId = tTipId;
		toolTipWidth = parseInt(t.style.width);
		toolTipHeight = parseInt(t.style.height);
		toolTipLeft = parseInt(t.style.left);
		toolTipTop = parseInt(t.style.top);
	}
	function hideToolTip(e) {
		var t = document.getElementById(toolTipId);
		var cursor = getPosition(e);
		if(toolTipId != "" && (cursor.x < toolTipLeft || cursor.x > toolTipWidth || 
				cursor.y < (toolTipTop - 30) || cursor.y > toolTipHeight)) {
			document.getElementById(toolTipId).style.visibility = "hidden";
			toolTipId = "";
		}
	}

function getPosition(e) {
	    e = e || window.event;
	    var cursor = {x:0, y:0};
	    if (e.pageX || e.pageY) {
	        cursor.x = e.pageX;
	        cursor.y = e.pageY;
	    } 
	    else {
	        var de = document.documentElement;
	        var b = document.body;
	        cursor.x = e.clientX + 
	            (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
	        cursor.y = e.clientY + 
	            (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
	    }
	    return cursor;
	}

	document.onmouseover = hideToolTip;

