// <![CDATA[
	$(document).ready(
		function() {
		//When page loads...
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
	
		//On Click Event
		$("ul.tabs li").click(function() {
	
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
	
			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(1000); //Fade in the active ID content
			return false;
		});
		
		/* volver */
		$('a.btnBack').click(
			function() {
				history.go(-1);
				return false;
			}
		);
			
		//Follow Us
		$('.social ul li a.ico').mouseenter(
			function(){
			$(this).stop().animate({left: '0' }, 200);
			});
		$('.social ul li a').mouseout(
			function(){
			$(this).stop().animate({left: '-8px'  }, 200);
			});
		
		//Follow Us
		$('.page .social ul li a.ico').mouseenter(
			function(){
			$(this).stop().animate({left: '0' }, 200);
			});
		$('.page .social ul li a').mouseout(
			function(){
			$(this).stop().animate({left: '8px'  }, 200);
			});
		
		$('input, textarea').each(function(){
		 // tomamos el valor actual del input
		 var currentValue = $(this).val();
		 // en el focus() comparamos si es el mismo por defecto, y si es asi lo vaciamos
		 $(this).focus(function(){
				if( $(this).val() == currentValue ) {
					 $(this).val('');
				};
		 });
		 // en el blur, si el usuario dejo el value vacio, lo volvemos a restablecer
		 $(this).blur(function(){
				if( $(this).val() == '' ) {
					 $(this).val(currentValue);
				};
			 });
			});
		
		// END DEFAULT //
		}
	);
// ]]>
