<!--
var wmtt = null;
var obj_y = null;
var count = null;

function showPop( id , time, posStyle ) {
	if(!posStyle){
		posStyle = '';
	}
	
	if( time == true ){
		count = setTimeout( "showPop2( '"+id+"' , '"+posStyle+"')" ,1250);
	} else {
		showPop2(id , posStyle);
	}
}
	
function showPop2( id , posStyle ) {

	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			var totalY = document.documentElement.scrollHeight ;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			var totalY = document.body.scrollHeight ;
		}
	} 	
	wmtt = document.getElementById( id );
	wmtt.style.display = "block";
	
	var localY =0;
	var totalDivH = wmtt.offsetHeight;
	var yDefault = - ( totalDivH  );
		
	obj_y = document.getElementById( 'link_' + id );
	localY = findPosY( obj_y );	
	if ( (totalDivH + localY) > totalY){
		// enganando o script
		 posStyle = 'last';
	}
	
	if ( posStyle == 'last' ){
		wmtt.style.top = yDefault + "px";
	} else if ( posStyle == 'right' ){
		wmtt.style.left = - (wmtt.offsetWidth - 8) + "px";
		wmtt.style.top = 30 + "px";
	}  else {
		wmtt.style.top = 30 + "px";
	}	

	if ( totalDivH < 300 ){
		return;	
	}
	
	if ( (totalDivH + localY) > totalY){
		localY = - (( totalDivH + localY ) - totalY);
		wmtt.style.top = localY + "px";
	} else{
		if ( posStyle == 'last' ){
		wmtt.style.top = yDefault + "px";
		} else if ( posStyle == 'right' ){
			wmtt.style.left = - (wmtt.offsetWidth - 8) + "px";
			wmtt.style.top = -8 + "px";
		} else {
			wmtt.style.top = -8 + "px";
		}
	}
}

function hidePop() {
	clearTimeout(count);
	
	if (wmtt != null ){
		if( wmtt.style.display == "block" ){ 
			wmtt.style.display = "none";
			wmtt = null;
		}
	}
}

function findPosY(obj_y) {
	var curtop = 0;
	if ( obj_y.offsetParent )
	{
		while (obj_y.offsetParent)
		{
			curtop += obj_y.offsetTop;
			obj_y = obj_y.offsetParent;
		}
	}
	else if (obj_y.y)
		curtop += obj_y.y;
	return curtop;
}

//-->