var iSize4NN = 400; 
//-------------------------------------------------------------------------------------
function showNN(e) {
	if (document.getElementById('hint').style.visibility == "visible") {
		iHor1 = window.pageXOffset + e.clientX + 5; 
		iVer1 = window.pageYOffset + e.clientY + 10; 
		iHor2 = window.pageXOffset + window.innerWidth - document.getElementById('hint').offsetWidth - 17; 
		iVer2 = window.pageYOffset + window.innerHeight - document.getElementById('hint').offsetHeight - 18; 

		if (window.innerWidth > (document.getElementById('hint').offsetWidth + e.clientX + 25))
			document.getElementById('hint').style.left = iHor1
		else 
			document.getElementById('hint').style.left = iHor2

		if (window.innerHeight > (document.getElementById('hint').offsetHeight + e.clientY))
			document.getElementById('hint').style.top = iVer1
		else 
			document.getElementById('hint').style.top = iVer2
	}
}
//-------------------------------------------------------------------------------------
function hideNN(e) {
	document.layers['hint'].visibility = "hide"; 
}
//-------------------------------------------------------------------------------------
function hintI(strImg, bShow) {
	if (navigator.appName == "Opera") {
		return;
	}
	temp = "<table width=400 cellspacing=4 cellpadding=6 bgcolor=#FFFFDD style='border: 1px solid #CD681D; text-align: left;'><tr><td><span class='Date'>" + strImg + "</span></td></tr></table>"
		
	if (navigator.appName == "Netscape") {
		if (parseInt(navigator.appVersion) >= 5) {
			document.onmouseover = showNN;
			document.getElementById('hint').innerHTML = temp;
			if (bShow == 1)
				document.getElementById('hint').style.visibility = "visible";
			else
				document.getElementById('hint').style.visibility = "hidden";
		} else {
			return;
		}
	} else {
		if (bShow == 1) {
			document.all('hint').innerHTML = temp;
			document.all('hint').style.width = iSize4NN;

			iHor1 = document.body.scrollLeft + event.clientX + 5; 
			iVer1 = document.body.scrollTop + event.clientY + 5; 
			iHor2 = document.body.scrollLeft + document.body.clientWidth - document.all('hint').offsetWidth + 35; 
			iVer2 = document.body.scrollTop + document.body.clientHeight - document.all('hint').offsetHeight - 5; 

			if (document.body.clientWidth > (document.all('hint').offsetWidth + event.clientX))
				document.all('hint').style.posLeft = iHor1
			else
				document.all('hint').style.posLeft = iHor2;

			if (document.body.clientHeight > (document.all('hint').offsetHeight + event.clientY))
				document.all('hint').style.posTop = iVer1
			else
				document.all('hint').style.posTop = iVer2;

			document.all('hint').style.visibility = "visible";
		} else {
			document.all('hint').style.visibility = "hidden";
			document.all('hint').style.posTop = 0;
			document.all('hint').style.posLeft = 0;
		}
	}
}
//-------------------------------------------------------------------------------------
function showhintI(strImg) {
	hintI(strImg, true);
}
//-------------------------------------------------------------------------------------
function clearhintI() {
	hintI('', 0);
}

