	function monitorar(cod,pagina) {
	

		processa.location = 'clique.asp?cod_bnr='+cod+'&pagina='+pagina
	}
	function monitorarview(cod,pagina) {
	
		eval("processa"+cod+".location = 'view.asp?cod_bnr="+cod+"&pagina="+pagina+"'")
	}


	function ver_mais(obj,nb)
	{
		$('.conteudo > .colunas > .col_1 > div > div.bloco'+nb).css('display','block')
		obj.style.display = 'none'
		
	}

	function enviar_comentario()
	{
	
		if(document.getElementById('nome').value == ""){ alert('Você precisa dizer seu nome!'); document.getElementById('nome').focus(); return false; }
		if(document.getElementById('email').value == ""){ alert('Sem seu e-mail não poderemos responder suas dúvidas! Fique tranqüilo que ele não será exibido no blog!'); document.getElementById('email').focus(); return false; }
		if(document.getElementById('comentario').value == ""){ alert('Não vai escrever seu comentário?'); document.getElementById('comentario').focus(); return false; }

		
	}
	function enviar_contato()
	{
	
		if(document.getElementById('nome').value == ""){ alert('Você precisa dizer seu nome!'); document.getElementById('nome').focus(); return false; }
		if(document.getElementById('email').value == ""){ alert('Sem seu e-mail não poderemos responder suas dúvidas! Fique tranqüilo que ele não será exibido no blog!'); document.getElementById('email').focus(); return false; }
		if(document.getElementById('mensagem').value == ""){ alert('Não vai escrever sua mensagem?'); document.getElementById('mensagem').focus(); return false; }

		
	}
	
function imagens_flickr(data,iddiv) {																																   
		// Randomly choose where to start. A random number between 0 and the number of photos we grabbed (20) minus 9 (we are displaying 9 photos).
		var iStart = Math.floor(Math.random()*(11));	
		
		// Reset our counter to 0
		var iCount = 0;								
		
		// Start putting together the HTML string
		var htmlString = "<ul>";					
		
		// Now start cycling through our array of Flickr photo details
		$.each(data.items, function(i,item){
									
			// Let's only display 9 photos (a 3x3 grid), starting from a random point in the feed					
			if (iCount > iStart && iCount < (iStart + 10)) {
				
				// I only want the ickle square thumbnails
				var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg");		
				
				// Here's where we piece together the HTML
				htmlString += '<li><a href="' + item.link + '" target="_blank">';
				htmlString += '<img src="' + sourceSquare + '" alt="' + item.title + '" title="' + item.title + '"/>';
				htmlString += '</a></li>';
			}
			// Increase our counter by 1
			iCount++;
		});		
		
		$('#'+iddiv).html(htmlString + "</ul>");
	}
	
function f_envia_email() {

	obj = $('.envia_email')
	
	if(obj.css('display') == 'none')
		{
			obj.slideDown('slow')
		}
	else
		{
			obj.slideUp('slow')
		}
	
}	
	
