// FUNCAO PARA ABRIR UMA FOTO APENAS EM POP-UP //
function AbreFoto(sURL,sNome,iWidth,iHeight,iScroll)
{
 window.open(sURL,sNome,"status=yes,menubar=no,toolbar=no,width="+ iWidth +",height="+ iHeight +",scrollbars="+ iScroll +", top="+ (screen.height - iHeight)/2 +",left="+(screen.width - iWidth)/2 + "directories=no");
}


function AbreFotoAmplier(sURL,sNome,iWidth,iHeight,iScroll)
{
 window.open(sURL,sNome,"status=yes,menubar=no,toolbar=no,width="+ iWidth +",height="+ iHeight +",scrollbars="+ iScroll +", top="+ (screen.height - iHeight)/2 +",left="+(screen.width - iWidth)/2 + "directories=no");
}


function IndicarFotoAmigo(sURL,sNome,iWidth,iHeight,iScroll)
{
 window.open(sURL,sNome,"status=yes,menubar=no,toolbar=no,width="+ iWidth +",height="+ iHeight +",scrollbars="+ iScroll +", top="+ (screen.height - iHeight)/2 +",left="+(screen.width - iWidth)/2 + "directories=no");
}


function IndicarSiteAmigo(sURL,sNome,iWidth,iHeight,iScroll)
{
 window.open(sURL,sNome,"status=yes,menubar=no,toolbar=no,width="+ iWidth +",height="+ iHeight +",scrollbars="+ iScroll +", top="+ (screen.height - iHeight)/2 +",left="+(screen.width - iWidth)/2 + "directories=no");
}



function AudioRadio(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=380,height=225,screenX=0,screenY=0,top=200,left=200 , fullscreen=no')

}


/*

<a href="javascript:MM_openBrWindow('pop.php?open=<? echo"$open&id=$a[id_foto]"; ?>','configs','width=<? echo"$largura"; ?>,height=<? echo"$altura"; ?>')">

var doPopUpX = (screen.width/2)-125;
var doPopUpY = (screen.height/2)-100;
var pos = "left="+doPopUpX+",top="+doPopUpY;
function AmplierFoto(){
doPopUpWindow = window.open("pop.php?SRC=<? echo"$locutor"; ?>","radio","width=500,height=350,"+pos);
}




function AbreAlbumPop(theURL,winName,features) { //v2.0
  window.open(theURL,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=240,screenX=0,screenY=0,top=130,left=250 , fullscreen=no')
}

*/


/*

// FUNÇÃO QUE AUMENTA E DIMINUI O TAMANHO DA FONTE 

function MM_reloadPage(init) {
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


// NA ÁREA DE NOTICIAS
var intContaTam = 0;
	var vetFonte = new Array ();
	vetFonte [0] = "100";
	vetFonte [1] = "120";
	vetFonte [2] = "140";
	vetFonte [3] = "150";
	vetFonte [4] = "170";
	
	function areaTexto (strAD) {
		
		if (strAD=="A") {
			intContaTam++;
			if (intContaTam>=vetFonte.length)
				intContaTam = vetFonte.length-1;
			document.all.areaTexto.style.fontSize = vetFonte[intContaTam]+"%";
		} else {
			intContaTam--;
			if (intContaTam<0)
				intContaTam=0;
			document.all.areaTexto.style.fontSize = vetFonte[intContaTam]+"%";
		}
	}

var tam=11;
function mudaFonte(tipo){
if (tipo=="mais"){		
	tam+=5;
}else{
	tam-=5;
} 
	document.getElementById('text').style.fontSize=tam+'px' ;
	
}
//-->



function popupletra(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=380,screenX=0,screenY=0,top=0,left=0 , fullscreen=no')

}


// FUNCAO POPUP

function pop_portfolio(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}


function pop_portfolio(theURL,winName,features) { //v2.0
  window.open(theURL,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=240,screenX=0,screenY=0,top=130,left=250 , fullscreen=no')
}


function popup(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=200,screenX=0,screenY=0,top=0,left=0 , fullscreen=no')

}



function imprimi(url) {

  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}



function indica(url) {

  window.open(url,'popupImageWindow','width=300, height=150, top=12, left=15, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no')

}



function cores(url) {

  window.open(url,'popupImageWindow','width=225, height=169, top=10, left=10, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no')

}


*/
