tt = null;
ttshow=false;

document.onmousemove = updateTT;

function updateTT(e) {
	
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (tt != null) {
		tt.style.left = (x + 20) + "px";
		tt.style.top 	= (y + 20) + "px";
		if(ttshow){
			tt.style.display = "block";
		}
	}
}

function showTT(num) {
	tt = document.getElementById('toolTipLayer'+num);		
	if(tt.offsetWidth<300){
		tt.style.width = '300px';
	}else{
		tt.style.width = tt.offsetWidth + 'px';
	}
	ttshow=true;
	window.status='';	
	return true;
}

function hideTT() {
	ttshow=false;
	tt.style.display = "none";
	window.status='';
	return true;
}


function clickTT(){
	
}
