$(document).ready(function () {
	
	$('a.embreve').hover(
		function () {
			$('.a').css({ display: 'none' });
			$('.b').css({ display: 'block' });
		}, 
		function () {
			$('.a').css({ display: 'block' });
			$('.b').css({ display: 'none' });
		}
	);

	/*$('a.embreve').hover(
		function () {
			$(this).text("Em Breve");
		}, 
		function () {
			$(this).text("Notícias");
		}
	);*/

	// BUTTONS
	/*$('.fg-button').hover(
		function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
		function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
	);*/
	
	// MENUS    	
	$('#flat').menu({ 
		content: $('#mapasite').html(), // grab content from this page
		showSpeed: 400 
	});


	//Append a div with hover class to all the LI
	$('#navMenu li').append('<div class="hover"><\/div>');


	$('#navMenu li').hover(
		
		//Mouseover, fadeIn the hidden hover class	
		function() {
			
			$(this).children('div').fadeIn('1000');	
		
		}, 
	
		//Mouseout, fadeOut the hover class
		function() {
		
			$(this).children('div').fadeOut('1000');	
		
	}).click (function () {
	
		//Add selected class if user clicked on it
		$(this).addClass('selected');
		
	});
	

		
	$(".img-seta").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	//$(".img-cliente").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	//$(".img-cliente").hover(function(){
	//$(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
	//},function(){
	//$(this).fadeTo("slow", 0.3); // This should set the opacity back to 30% on mouseout
	//});	
	
	
	// remove a borda de todos os input type images
	$('input[type="image"]').css({ border: "0px" });
	

});


