$(function(){
	jQuery('img.slidemaximage').maxImage({
		isBackground: true,
		slideShow: true,
		slideShowTitle: false,
		slideDelay: 5,
		maxFollows: 'height',
		overflow: 'auto',
		resizeMsg: {show: false}
	});
});

$(document).ready(function(){

		  $("button").click(function(){
			/*$(".lateral_3").hide(2000);*/
			  
			  /*$(".lateral_3").slideToggle("slow","alert('asdfg')");*/
			  
			  
			  $(".lateral_3").slideToggle("slow",function() {
				// Animation complete.
				alert('alert » ' + this.href);
				//window.location.href = this.href;
			});
			  
			 /* $(".lateral_3").fadeTo("slow",0.25);*/
			  /*$(".lateral_3").fadeOut(4000);*/
			  
			 /* $(".lateral_3").fadeTo("slow",0.25);*/
			  
			  /*
			   $(".lateral_3").animate({height:450},"slow");
			   $(".lateral_3").animate({width:300},"slow");
			  */
			   /*$(".lateral_3").animate({height:100},"slow");
			   $(".lateral_3").animate({width:100},"slow");*/
			  
			  
		});
		
		
		// ------------------------------------
		$("#menu li a").click(function(event){
			// Cancel the default behavior of the link:
			event.preventDefault();
			var link = this;
			
			$(".conteudo").slideToggle("slow",function() {
				// Animation complete.
				window.location.href = link.href;
			});
		});
		// ------------------------------------
		
	
		var fadeDuration = 150; //time in milliseconds

		$('#menu li a').hover(function() {
			$(this).animate({ paddingLeft: '15px' }, fadeDuration);
			/*$(this).children('span').show().animate({ right: 5 }, fadeDuration);*/
			}, function() {
			$(this).animate({ paddingLeft: '0px' }, fadeDuration);
			/*$(this).children('span').animate({ right: -15 }, fadeDuration).fadeOut(fadeDuration);*/
		});
			
});
