//-------------------------------------------------
//By Mario Battistella :: 13-02-2009
//-------------------------------------------------
gL = 0; //largura
gE = 0; //distancia X (left)
swfW1 = '800'; //largura do flash principal
swfH1 = '660'; //altura do flash principal
divNoticias_W = '400'; //largura do div de noticias
divNoticias_H = '320'; //altura do div de noticias

//swf1  = "norlog.swf"; //Obs.: A variável "swf1" é definida na index.php
	
function Ajuste(D1,D2,L2)
{
	var nav = navigator.appName.toUpperCase();
	if (nav.indexOf("ICROSOFT")!=-1)
		gL = document.body.clientWidth
	else
		gL = document.documentElement.clientWidth;
	gE=(gL/2)-(L2/2);
	document.getElementById(D1).style.left = gE+"px";

	if (document.getElementById(D2).style.visibility=='visible')
	{
		var L = Number(document.getElementById("varL").value);
		document.getElementById(D2).style.left = (gE+L)+"px";
	}

}
function Exibe(T,L,U)
{
	var DIV = "div_noticias";
	document.getElementById(DIV).innerHTML='<iframe src="'+U+'" id="fr2" width="'+divNoticias_W+'" height="'+divNoticias_H+'"  frameborder="0" allowtransparency="true" style="overflow-x: hidden"></iframe>';
	document.getElementById(DIV).style.left = (gE+L)+"px";
	document.getElementById(DIV).style.top  = T+"px";
	document.getElementById(DIV).style.visibility='visible';
	document.getElementById("varL").value=L;
}
function Apaga()
{
	var DIV = "div_noticias";
	document.getElementById(DIV).innerHTML='';
	document.getElementById(DIV).style.visibility='visible';
}
function f1(prms)
{
	document.getElementById('fr1').src=prms;
}
//----------------------------------------------















