/*
**********************************************************************
| Este código é de total autoria de Joeber Gonçalves Garcia          |
| não sendo permitido usá-lo em qualquer outro meio de forma alguma. |
| Caso tenha interesse em algum serviço, entrar em contato por:      |
| Celular: (67) 8132-0021 / MSN: joebergg@hotmail.com                |
**********************************************************************
*/

//FUNÇÃO BANNER POPUP
var x_max = 450; //original
//var y_max = 364;
var y_max = 306; //original


function popup(idBan,x,y)
{
	pop1 	  = document.getElementById(idBan);
	areaPopup = document.getElementById("areaPop");
	
	pop1.style.display = 'block';
	pop1.style.width = x+'px';
	pop1.style.height = y+'px';
		
	largx = screen.width;
	altx  = screen.height;	
			
	areaPopup.style.height = (y_max+16)+"px";	//ALTURA DO ESPAÇO DO BANNER (SOMENTE A ÁREA INVISÍVEL)


	if(x < x_max)
	{
		x += 5;
	}
	else
	{
		x = x_max;
		document.getElementById('banPopFechar').style.visibility = 'visible';
	}
	
	if(y < y_max)
	{
		y += 5;
	}
	else
	{
		y = y_max;
	}
	

	window.setTimeout("popup('banPop1',"+x+","+y+")",1);

}//FIM FUNÇÃO BANNER POPUP

//window.setTimeout("popup('banPop1',0,0)",1000); //abre banner depois de 2 segundos
//window.setTimeout("fechaPop('areaPop','areaPopTrans')",30000); //fecha banner depois de 30 segundos


//fecha banner
function fechaPop(idBan,idBan2)
{
	ban_id = document.getElementById(idBan);
	ban_id2 = document.getElementById(idBan2);	
	
	//document.getElementById("banPop1").style.display = 'none';
	//document.getElementById("videoYoutube").style.display = 'none';	
	
	ban_id.style.display = 'none';
	ban_id2.style.display = 'none';	
	
}//FIM fecha banner

function tipoCursor(objeto,tipo)
{
	objeto.style.cursor = tipo;
}
