// JavaScript Document

	function creditos()
	{
	window.open('http://www.temporealfoto.com.br/creditos.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=311,height=420,top=1,left=1')
	}
	function termos()
	{
	window.open('termos.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=630,height=533,top=1,left=1')
	}
	function orcamento()
	{
	window.open('orcamento.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=550,height=515,top=1,left=1')
	}
	function getPos(el,sProp) {
		var iPos = 0
		while (el!=null) {
			iPos+=el["offset" + sProp]
			el = el.offsetParent
		}
		return iPos
	
	}
	function show(el,texto) {
		m = div_msg;
		m.innerHTML = texto;
		if (m) {	
			m.style.display='';
			m.style.left = getPos(el,"Left") - 88
			m.style.top = getPos(el,"Top") + 15
		}
	}
	function fAjusteConteudo(altura,padding) {
		if(!altura)
			altura = 300
		if(altura==0)
			altura = 300
		if (screen.height>=700)
			document.all.conteudo.style.height = altura
		else if(padding)
			document.all.conteudo.style.padding = padding
	}
	function fAjusteIntro(altura,padding) {
		if(!altura)
			altura = 300
		if(altura==0)
			altura = 300
		if (screen.height>=700)
			document.all.intro.style.height = altura
	
		else if(padding)
			document.all.intro.style.padding = padding
	}
	
	
	
	function newsletter()
	{
		w = 640
		h = 550
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('scripts/template_news.htm','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}

	function mapa()
	{
		w = 640
		h = 550
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('mapa.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}
	
	function writeFlashMenu(TxArquivo) {
		document.getElementById("menu_principal").innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='530' height='40' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='img/" + TxArquivo + "' /><param name='quality' value='high' /><param name='wmode' value='transparent'><param name='bgcolor' value='#ffffff' /><embed src='img/" + TxArquivo + "' quality='high' bgcolor='#ffffff' width='530' height='40' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object> ";
	}	
	function getPopIndiqueLink()
	{
		w = 530
		h = 350
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('links_indique.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}
	function getPopLastFm(TxOrigem)
	{
		w = 330
		h = 420
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('popup_lastfm.asp?TxOrigem=' + TxOrigem,'_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}
	function getPopSeuTempoReal(TxOrigem)
	{
		w = 500
		h = 540
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('popup_seutemporeal.asp?TxOrigem=' + TxOrigem,'_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}
	function getPopNossosServicos()
	{
		w = 533
		h = 500
		
		var l = (screen.width - w) / 2
		var t = (screen.height - h - 60) / 2
		window.open('popup_servicos.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
	}