//// carrega flash
function flash(caminho,largura,altura){
	document.write('<object type="application/x-shockwave-flash" data="'+caminho+'" width="'+largura+'" height="'+altura+'"> \n');
	document.write('<param name="movie" value="'+caminho+'"/>');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('</object>');
}

$(document).ready(function() {
	$("#main .legenda .nomes").hide();
	$("#main .legenda #foto").hover(function() {
		$("#main .legenda .nomes").animate({
			height: 'show',
			opacity: 'show'
		}, 'slow');
	}, function() {
		$("#main .legenda .nomes").animate({
			height: 'hide',
			opacity: 'hide'
		}, 'slow');
	});
	
	$("dl dd:not(.atual)").hide();		
	$("dt:not(.atual) a .close").hide();
	$("dt.atual a .open").hide();
		$("dt a").click(function(){
			$("dt a .open").show();
			$("dt a .close").hide();
			$("dd:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			$(this).find(".close").show();
			$(this).find(".open").hide();
			return false;
		});		
});
