 $(document).ready(function(){
 	/*
	var navItems = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i< navItems.length; i++) {
		if(navItems[i].className == "submenu") { 
			navItems[i].onmouseover=function() {this.getElementsByTagName('ul')[0].style.display="block";} 
			navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";} 
		} 
	}*/
	$('ul.pos').hide('slow');
	$('ul.tec').hide('slow');
	$('#mural_tit .bt_graduacao').css('background-color','#D4E1B6');
	
	$('#mural_tit .bt_graduacao').click(function(){
		$('ul.grad').show('slow');
		$('ul.pos,ul.tec').hide('slow');
		$('#mural_tit .bt_graduacao').css('background-color','#D4E1B6');
		$('#mural_tit .bt_pos,#mural_tit .bt_tec').css('background-color','#EBF0E0');
		return false;
	});
	$('#mural_tit .bt_pos').click(function(){
		$('ul.grad,ul.tec').hide('slow');
		$('ul.pos').show('slow');
		$('#mural_tit .bt_pos').css('background-color','#D4E1B6');
		$('#mural_tit .bt_graduacao,#mural_tit .bt_tec').css('background-color','#EBF0E0');
		return false;});
	$('#mural_tit .bt_tec').click(function(){
		$('ul.grad,ul.pos').hide('slow');
		$('ul.tec').show('slow');
		$('#mural_tit .bt_tec').css('background-color','#D4E1B6');
		$('#mural_tit .bt_pos,#mural_tit .bt_graduacao').css('background-color','#EBF0E0');
		return false;});
	$('.gal_foto li a').fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200,
		'speedOut'		:	200,
		'overlayShow'	:	true,
		'titleShow'		: false,
		'showNavArrows' : true
	});

});
	hs.graphicsDir = 'scripts/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.showCredits = false;
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.75;
	hs.flushImgSize = true;
	hs.marginTop = 80;
	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .75,
			position: 'top right',
			hideOnMouseOut: true
		}
	});
	hs.lang = {loadingText : 'Carregando...',loadingTitle : 'Clique para cancelar',focusTitle : 'Clique para trazer para frente',fullExpandTitle : 'Expandir para o tamanho normal',creditsText : 'Powered by Highslide JS',creditsTitle : 'Go to the Highslide JS homepage',previousText : 'Anterior',nextText : 'Proximo', moveText : 'Mover',closeText : 'Fechar',closeTitle : 'Fechar (esc)', resizeTitle : 'Redimensionar',playText : 'Play',playTitle : 'Play slideshow (Barra de espaço)',pauseText : 'Pause',pauseTitle : 'Pause slideshow (Barra de espaço)',previousTitle : 'Anterior (Seta esquerda)',nextTitle : 'Proximo (Seta Direita)',moveTitle : 'Mover',fullExpandText : 'Tamanho Total',number: 'Imagem %1 of %2',restoreTitle : 'Clique para fechar, clique e arraste para mover.'};
	function esconde() {
		document.getElementById('apDiv1').style.display = 'none';
	}
function flash(file, width, height, vars){
	document.write("<div id='flash_titles'>");
   	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + width + "' height='" + height + "'>");
   	document.write("<param name='wmode' value='transparent'>");
   	document.write("<param name='movie' value='" + file + "'>");
   	document.write("<param name='quality' value='high'>");
   	document.write("<embed wmode='transparent' src='" + file + "' quality='high' FlashVars='"+ vars 	+"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>");
   	document.write("</object>");
   	document.write("</div>");
}




