<!-- 
function mostraFoto (imagem)
	{
	var szURL = "mostrarfoto.htm?"+imagem.src;
	NewWindow = open (szURL, "novidades", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=410,height=365,left=20,top=20,alwaysRised=yes");
	}

function ajustar (altura, largura) 
	{ 
	self.resizeTo (altura, largura);
	}

function extractParams (szText, varPos)
	{
	var szReturnVar;
	var nPass = 0
	var lPos = szText.indexOf("?") + 1;
	var szTempText;
	while (true)
		{
		rPos = szText.indexOf("&", lPos+1);
		if (rPos < 0) szTempText = szText.substring(lPos); 
		else szTempText = szText.substring(lPos, rPos); 
		if (++nPass == varPos) break;
		if (rPos < 0) return ("null");
		lPos = rPos + 1;		
		}
	rPos = szTempText.indexOf("=")
	if (rPos > 0) szReturnVar = szTempText.substring(++rPos); 
	else szReturnVar = szTempText;
	return (szReturnVar);
	}

function preLoadFotos () 
	{ 
	szImgSrc = new String;
 	var currentDoc = document; 
	if (!currentDoc.preLoadedPhotos) currentDoc.preLoadedPhotos = new Array();
	for (i=1; i <= topFoto; i++)		
		{	
		j = i - 1;
		currentDoc.preLoadedPhotos [j]     = new Image; 
		currentDoc.preLoadedPhotos [j].src = "filhote0"+i+".jpg";
		}
	timer=setTimeout ("mudaFoto()", 1500);
	}
function mudaFoto()
	{
	currentFoto += 1;
	if (currentFoto > topFoto) currentFoto = 1;
	found = new Boolean;
	found = false;
  	var currentDoc = document; 
	for (currImgPos =0; currImgPos < currentDoc.images.length; currImgPos ++)
		{
		currentDoc.forms[0].wparams.value = currentDoc.images[currImgPos].src;
		szImgSrc = currentDoc.forms[0].wparams.value;
		if (szImgSrc.indexOf ("filhote0") >= 0) { found = true; break; }
		}
	j = currentFoto - 1;
	currentDoc.images [currImgPos].src = currentDoc.preLoadedPhotos [j].src;
	clearTimeout (timer);
	timer=setTimeout ("mudaFoto()", 1500);
	}

function processarRecomendacao ()
	{
	NewWindow = open ("","stockdog");
	NewWindow.self.location = "http://www.brooklin.com.br/testemunhocomercio.htm";
	}

function displaypicture (PictureName) 
	{
	NewWindow = open ("","foto", "toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,width=340,height=340");
	NewWindow.document.writeln ("<html>");
	NewWindow.document.writeln ("<body background=\"patas.jpg\">");
	var designName = "foto"+PictureName+".jpg";
	NewWindow.document.writeln ("<p align=\"center\"><img src=\""+designName+"\" border=\"1\" alt=\"Aguarde ... carregando\"></p>");
	NewWindow.document.writeln ("<p align=\"center\"><input type=\"button\" value=\"Encerrar\" name=\"nao\" onClick=\"window.close()\"></p>");
	NewWindow.document.writeln ("</body>");
	NewWindow.document.writeln ("</html>");
	}

function ampliarFoto (PictureName) 
	{
	NewWindow = open ("","foto", "toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,width=380,height=340");
	NewWindow.document.writeln ("<html>");
	NewWindow.document.writeln ("<body background=\"patas.jpg\">");
	var designName = PictureName+".jpg";
	NewWindow.document.writeln ("<p align=\"center\"><img src=\""+designName+"\" border=\"1\" alt=\"Aguarde ... carregando\"></p>");
	NewWindow.document.writeln ("<p align=\"center\"><input type=\"button\" value=\"Encerrar\" name=\"nao\" onClick=\"window.close()\"></p>");
	NewWindow.document.writeln ("</body>");
	NewWindow.document.writeln ("</html>");
	}

function sendEmail (szNome)
	{
	NewWindow = open ("http://www.sampaonline.com.br/estab_fale.htm", szNome, "toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,width=500,height=350");
	}

function mostraOferta()
	{
	NewWindow = open ("ofertas.htm", "ofertas", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=215,height=205,left=20,top=20,alwaysRised=yes");
	}

//-->
