	$(document).ready(function() {		   
		//Default Action
		$(".login_content").hide(); //Hide all content
		$("ul.abas li:first").addClass("active").show(); //Activate first tab
		$(".login_content:first").show(); //Show first tab content
		//On Click Event
		$("ul.abas li").click(function() {
			$("ul.abas li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".login_content").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;
		});
		// hides the slickbox as soon as the DOM is ready 
		$("#login").hide(); 
		// toggles the slickbox on clicking the noted link 
		$("a#plogin").click(function() {  
			$("#login").slideToggle(400);
			return false; 
			}); 
	
		$("a#plogin").click(function(e) {          
			e.preventDefault();
			$("a#plogin").toggleClass("login_open");
		});
		
		$("#login").mouseup(function() {
			return false
		});
		
		$(document).mouseup(function(e) {
			if($(e.target).parent("a#plogin").length==0) {
				$("a#plogin").removeClass("login_open");
				$("#login").hide();
			}
		});	
		
		$('#contato1').hide();
		$('#contato2').hide();
		$('#contato3').hide();
		$('#contato4').hide();
		$("#contato").change(function(){
			$("#" + this.value).show().siblings().hide();
			});
	
		$("#contato").change();
	 
	});
