// JavaScript Document

// jQuery Lightbox
$(document).ready(function(){
	$(function() {
		$('a[@rel*=lightbox]').lightBox({
		overlayBgColor: '#000000',
		overlayOpacity: 0.7,
		imageLoading: 'imagens/lightbox/carregando.gif',
		imageBtnClose: 'imagens/lightbox/fechar.gif',
		imageBtnPrev: 'imagens/lightbox/anterior.gif',
		imageBtnNext: 'imagens/lightbox/proximo.gif',
		containerBorderSize: 10,
		containerResizeSpeed: 400,
		txtImage: 'Imagem',
		txtOf: 'de',
		imageBlank: 'imagens/lightbox/transparente.gif',
		keyToClose: 'f',
		keyToPrev: 'a',
		keyToNext: 'p'
		});
	});
});

// jQuery UI (User Interface)
$(document).ready(function(){
	$("#Geral #Util #Corpo #Conteudo #Base #MaisDetalhes").click(function () {
		// $('#Geral #Util #Corpo #Conteudo .ParcialEvento').slider({ orientation: 'vertical' });
		 $("#Geral #Util #Corpo #Conteudo .ParcialEvento").toggle("slide", {}, 500);
		// $('#Geral #Util #Corpo #Conteudo .ParcialEvento').slider({ orientation: 'vertical' });
//		 .slider('option', 'orientation', 'vertical');
//		$("#Geral #Util #Corpo #Conteudo .ParcialEvento").toggle(function() {
//			$(this).animate({ backgroundColor: "black" }, 1000);
//			},function() {
//			$(this).animate({ backgroundColor: "#68BFEF" }, 500);
//		});
	});
});

/* jQuery Step Carousel Viewer */
stepcarousel.setup({
	galleryid: 'GaleriaDeImagens01', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs	
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:3000}, //panelbehavior: 
	panelbehavior: {speed:500, wraparound:true, persist:false},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['arrowl.gif', -10, 100], rightnav: ['arrowr.gif', -10, 100]},
	statusvars: ['reportA', 'reportB', 'reportC'],
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})


/* Função jQuery Tooltip v.1.3 */
$(function() {
	$('#Ambiente a,#Ambiente map area').tooltip({
		track: true,
		delay: 0,
		showURL: false,
		showBody: " | ",
		extraClass: "Tooltips",
		opacity: 0.95,
		top: 22,
		left: 15,
		fade: 200
	});
});
