// JavaScript Document
var cm=null;
var timerID = null; 
var timerOn = false;
document.onclick = new Function("show(null)");
//document.onmouseover = setTimeout("show(null)",5000);
//document.onmouseout = window.setInterval("show(null)",5000);

function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}

function show(el,m) {
	if (m) {
		//m.style.background=' #666'
		m.style.display='';
		m.style.pixelLeft = getPos(el,"Left") 
		m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
		
		if (timerOn) {  
		clearTimeout(TimerID);  
		timerID = null;  
		timerOn = false;
		}
			}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m

}

function show2(el,m) {
	if (m) {
		//m.style.background=' #666'
		m.style.display='';
		m.style.pixelLeft = getPos(el,"Left") - 105
		m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
		
		if (timerOn) {  
		clearTimeout(TimerID);  
		timerID = null;  
		timerOn = false;
		}
			}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m

}

function onout(m) {
	m.style.background='none'
	
	if (timerOn == false){
	TimerID = setTimeout("show(null)",4000);
	timerOn = true
	}
}



