/* Author: 

*/
function showmia(onoff)
{
	if (onoff==1){
		document.getElementById("prodtipsMIA").style.display = "block";
	}else
	{document.getElementById("prodtipsMIA").style.display = "none";
		}
		
}
function showtier(evt,onoff,imageid)
{
	var e=window.event || evt;
	document.getElementById("prodtips").style.display = "none";	
	//document.getElementById('prodtips').style.visibility = "hidden";	
	var posx = 0;
	var posy = 0;
	//if (!e) var e = window.event;
	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;
	}
	// posx and posy contain the mouse position relative to the document
	// Do something with this information
	
	if (onoff == 1)
	{
		document.getElementById('prodtipsd').innerHTML = mytips[imageid];
		document.getElementById('prodtipsh').innerHTML = mytipshead[imageid];
		document.getElementById("prodtips").style.display = "block";
		
		//document.getElementById('prodtips').style.visibility = "visible";
		

		//document.getElementById('prodtips').style.top = event.y - 10;
		//document.getElementById('prodtips').style.left = event.x - 10;
		var myy = posy - 260;
		var myx = posx - 300;
		document.getElementById('prodtips').style.top = myy + "px";
		
		document.getElementById('prodtips').style.left = myx + "px";
	}
	else
	{
		//document.getElementById('prodtips').style.visibility = "hidden";
		document.getElementById("prodtips").style.display = "none";	
	}
}























