
window.defaultStatus = "Tendas Kagê ------------------------------------------------------------------ ";


// ************************************************************************

function abrir_janela_popup(theURL,winName,width,height,features) {
	width = 640
	height = 480
if(window.screen){
		per_ancho=(width/screen.width)*100;//porcentaje screen-ancho
		per_alto=(height/width)*100;//porcentaje de ancho-alto
		win_ancho=(screen.width*per_ancho)/100;//ancho de la ventana
		win_alto=(win_ancho*per_alto)/100;//alto de la ventana
		x=(screen.width-win_ancho)/2;//centra x
		y=(screen.height-win_alto)/2;//centra y
	}else{// si el buscador es 4-- queda todo igual :(
		x=0;
		y=0;
		win_ancho=w;
		win_alto=y;
	}
	winfeatures=("top="+y+",left="+x+",width="+win_ancho+",height="+win_alto+","+features);
	window.open(theURL,winName,winfeatures);
}

// ************************************************************************

// Sistema Check Anti Popup
// Criado dia 08/10/2004
// São Paulo - Brasil
// por Edson Hilios (hilios@brazu.con.br) e Thiago Elias (thiago@brazu.com.br)

function checkAntiPopup()
{
	tempo = 2 //tempo de espera em segundos
	delay = tempo*100 // não alterar
	count = 0 // não alterar
	antipopup = true
	window.open('check.htm','teste','width=1 ,height=1')
	window.focus()
	Timer()
}

function Timer()
{
	if (count >= delay && antipopup == true)
		alert("        Para melhor navegação neste site\npedimos que você desabilite o seu Anti-Popup!!")
	else if (!antipopup) {}
	else if (count < delay)
	{
		count++
		setTimeout("Timer()", 1)
	}
}

function callOk()
{
	window.opener.antipopup = false
	window.close();
}
// ************************************************************************


function reloadwin()
{
	if (window.opener.closed)
		window.close()
	setTimeout("reloadwin()",1000)
}

// ************************************************************************
