﻿$(function() {
	$('#list_imgevent a').lightBox();
});
$(document).ready(function()
{
	$('#ipa').hide();
	$('#galerias').click(function()
	{
		var gal = $('#galerias option:selected').val();	

		if(gal =="IPA"){
			$('#img_ativo').css("background"," url(_img/_eventos/sbo.jpg)");
			$('#bio').hide();$('#ipa').show();
		}
		if(gal =="Bioceramics"){
			$('#img_ativo').css("background"," url(_img/_eventos/evento_bio.jpg)");
			$('#ipa').hide();$('#bio').show();			
		}								
	});
	
});

$(function(){
	
	//$("#box-2008").show();	
	$("#bts_congressos a").click(function(){
		$("#bts_congressos a").removeClass("ativo");
		$(this).addClass("ativo");
		var href = $(this).attr("href");		
		var target = href.slice(5);
		$('#congressos_anteriores ul').hide();
		//$("#box-2008,#box-2007,#box-2006").hide();
		//$("#box-2008,#box-2007,#box-2006").hide();
		$("#box-"+href).show("show");
		
		// $("#box-"+href).html(retorno);
		//alert(href+target);
		return false;
		
	});
	$('#congressos_anteriores ul').hide();
	$('.box-ativo').show();
	
});
