<!-- ABRIR GALERIA
function abreGaleria(pasta, evento, fotografo){

	janela = window.open("editsystem/galeria/album.php?pasta="+pasta+"&evento="+evento+"&fotografo="+fotografo, "Geleria", "width=780, height=450, top=0, left=0, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no");

}
//-->



// FLUTUANTE 1
$(document).ready(function(){
	var myTimer = {};

	myTimer = $.timer(10000,function(){
		$('#imagem').hide();
	});

});


/*
 * jQuery Timer Plugin
 * http://www.evanbot.com/article/jquery-timer-plugin/23
 *
 * @version      1.0
 * @copyright    2009 Evan Byrne (http://www.evanbot.com)
 */ 

jQuery.timer = function(time,func,callback){
	var a = {timer:setTimeout(func,time),callback:null}
	if(typeof(callback) == 'function'){a.callback = callback;}
	return a;
};

jQuery.clearTimer = function(a){
	clearTimeout(a.timer);
	if(typeof(a.callback) == 'function'){a.callback();};
	return this;
};


<!-- ClickTale Top part -->
var WRInitTime=(new Date()).getTime();


//COIN SLIDER


//// Função que fecha o pop-up ao clicar no botao fechar
function fechar(){
document.getElementById('popup').style.display = 'none';
}
// Definimos o tempo para fechar o pop-up automaticamente
function abrir(){
document.getElementById('popup').style.display = 'block';
setTimeout ("fechar()", 7000);
}



//POPUP
$(document).ready(function(){
		$('a.fecharpop').click(function(){
			$('#popup').fadeOut();
		})
		setTimeout(function() { 
			$('#popup').fadeOut(); 
		}, 6000); 	
})

