
function showTooltip(e,str)
{
	if (!e) var e = window.event;
	var d = document.getElementById("ttip");

	var posx = 0;
	var posy = 0;
	
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
	
	d.innerHTML=str;
	d.style.left=(posx+10)+"px";
	d.style.top=(posy+10)+"px";
	d.style.display="";
	
}
function hideTooltip()
{
	var d = document.getElementById("ttip");

	d.style.display="none";
}


var w=false;
function popupImage(imageID, mID)
{
	var imgw = 534;
	var imgh = 800;

	var href = "?ajax=1&imageHref&mID="+mID+"&id="+imageID;

	
	
	w=window.open("", "Picture", "width=534, height=800, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no, left="+((screen.width-imgw)/2));
	
	w.focus();
	w.document.location.href=href;
	
}

