$(document).ready(function()
{/*
	$('a.clientlink').mouseenter(function()
	{
		$(this).children('span').animate( { bottom:"40px" }, 1500).animate( { opacity:"1.0" }, 500);
		//alert('si');
	}).mouseleave(function()
	{
		$(this).children('span').animate( { bottom:"10px" }, 1500).animate( { opacity:"0.8" }, 500);
	});
/*
	$('input.ghost').load(function(){
		$(this).attr('value', $(this).attr('alt'));
	});	
	*/
	$('input.ghost').focus(function()
	{
		if ($(this).attr('value') == $(this).attr('alt'))
		{
			$(this).attr('value', '');
			$(this).addClass('active');
			//$(this).animate({ width: "70%",	opacity: 0.4, marginLeft: "0.6in", fontSize: "3em", borderWidth: "10px" }, 1500 );
		}
	});		
	
	$('input.ghost').blur(function()
	{
		if ($(this).attr('value') == '')
		{
			$(this).attr('value', $(this).attr('alt'));
			$(this).removeClass('active'); 
		}
	});	   					   
	
	// Para abrir y cerrar elementos  
	$('a[href="#show"]').click(function()
	{
		$("#" + $(this).attr('rel')).slideDown();
		return false;
	});		   
	$('a[href="#hide"]').click(function()
	{
		$("#" + $(this).attr('rel')).slideUp();
		return false;
	});		   
	$('a[href="#toggle"]').click(function()
	{
		$("#" + $(this).attr('rel')).slideToggle();
		return false;
	});
});
