$(document).ready
(
	function() 
	{		
		$('.grey_input').addClass("idleField");
		$('.grey_input').focus
		(
			function() 
			{
				$(this).removeClass("idleField").addClass("focusField");
				if (this.value == this.defaultValue)
				{ 
					this.value = '';
				}
				if(this.value != this.defaultValue)
				{
					this.select();
				}
			}
		);
		$('.grey_input').blur
		(
			function() 
			{
				$(this).removeClass("focusField").addClass("idleField");
				if ($.trim(this.value) == '')
				{
					this.value = (this.defaultValue ? this.defaultValue : '');
				}
			}
		);
	}
);

/*
$(document).ready
(
	function() 
	{
	  $('a').pageSlide({  width: "100%"	  });
	}
);
*/

anchor = 
{
	init : 
	function()  
	{
		$("a.anchorLink").click
		(
			function () 
			{	
				elementClick = $(this).attr("href")
				destination = $(elementClick).offset().top;
				$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
				return false;
			}
		)
	}
}

$(document).ready
(
	function() 
	{
		anchor.init()
	}
);

$(document).ready
(
	function()
	{
		$(".btn-slide").click
		(
			function()
			{
				$("#panel").slideToggle("slow");
				$(this).toggleClass("active"); return false;
			}
		);
	}
);

jQuery(window).bind
(
	"load", 
	function() 
	{
		jQuery("div#slider1").codaSlider()
	}
);
