// JavaScript Document

window.defaultStatus = "TRILOPEZ - ASSESSORIA ESPORTIVA ------------------------------------------------------------------ ";

function news(xId) 
{
	w = 510
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('conteudo/ver_news.asp?codigo='+xId, 'noticias', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' scrollbars=yes');
}

/*
function maisNews() 
{
	w = 510
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('news/default.asp?ver=lista', 'noticias', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' scrollbars=yes');
}
*/


function ampliar(url)
{
	w = 200
	h = 200
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('includes/ampliar.asp?src='+url, 'ampliar', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}

function icc()
{
	w = 350
	h = 240
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('icc.html', 'ampliar', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}


function calendario() 
{
	w = 700
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('conteudo/calendar.asp', 'calendar', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}

function planilha() 
{
	w = 800
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('http://www.treinoonline.com.br/tlpz/inicio.asp', 'planilha', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}

function artigos() 
{
	w = 510
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('conteudo/textos.asp?ver=lista', 'textos', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' scrollbars=yes');
}

function resultados() 
{
	w = 510
	h = 550
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('conteudo/ver_resultados.asp?ver=lista', 'resultados', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+' scrollbars=yes');
}

// ******************************************************************

function redimencionar()
{

var largura=opener.screen.width;
var altura=opener.screen.height;

	if (navigator.appName == 'Netscape') {
		adjWidth = document.images[0].width;
		adjHeight = document.images[0].height;
	} 
	else 
	{
		adjWidth = document.images[0].width;
		adjHeight = document.images[0].height;
	}

	if(adjHeight>altura-20)
	{
		adjHeight=altura-50;
	}

    self.resizeTo(adjWidth, adjHeight);

	if(window.screen)
	{
		per_ancho=(adjWidth/screen.width)*100;
		per_alto=(adjHeight/adjWidth)*100;
		win_ancho=(screen.width*per_ancho)/100;
		win_alto=(win_ancho*per_alto)/100;
		x=(screen.width-win_ancho)/2;
		y=(screen.height-win_alto)/2;
	}
	else
	{
		x=0;
		y=0;
		win_ancho=w;
		win_alto=y;
	 return	
	}
	
 	self.moveTo(x,y);
	window.focus()
}