//Submenu
/*$(document).ready(function(){
	$("#menuLateral").find("li").each(function(){
		$(this).mouseover(function(){
			$(this).find('ul').css('display','block');
			//$(this).find('ul').show("slide");
		});
		$(this).mouseout(function(){
			$(this).find('ul').css('display','none');
			//$(this).find('ul').hide("slide");
		});
	});
});*/

$(document).ready(function() {
	$('ul#menuLateral > li').hover(function() {
		$('ul:first', this).show();
	},
	function() {
		$('ul:first', this).hide();
	});
	$('ul#nav li li').hover(function() {
		$('ul:first', this).each(function() {
			$(this).css('top', $(this).parent().position().top );
			$(this).css('left', $(this).parent().position().left + $(this).parent().width() );
			$(this).show()
		});
	},
	function() {
		$('ul:first', this).hide();
	});
});


//Carousel
jQuery(document).ready(function() {
	jQuery('#galeria').jcarousel({
		
	});
});

//Lightbox
$(function() {
	$('#galeria a').lightBox();
});
$(function() {
	$('#galeriaComum a').lightBox();
});
$(function() {
	$('#galeriaView a').lightBox();
});
$(function() {
	$('#galeriaColaboradores a').lightBox();
});

//Select
if (navigator.appName != "Microsoft Internet Explorer") {
	$(document).ready(function() {  
		$('#frEstado').selectbox();  
	});
}

$(document).ready(function() {
	$('#myselectbox').selectbox({  
		//onChangeCallback: myfunction,  
		inputClass: 'selectbox', //css class for the input which will replace the select tag, display the background image  
		containerClass: 'selectbox-wrapper', // The list container class (a div element)  
		hoverClass: 'current', // css class for the current element  
		currentClass: 'selected', // css class for the selected element  
		debug: false // debug mode on/off  
	});  
});