
	$(document).ready(function()
	{
		var soundON = false;
		$("#soundBTN").bind('mouseover', over)
		$("#soundBTN").bind('click', clicked)
		$("#soundBTN").bind('mouseleave', out)
		$(".submitBTN").bind('mouseover', over_submit)
		$(".submitBTN").bind('mouseleave', out_submit)
		
		function over_submit()
		{
			$(this).css("background-position","bottom");
		}
		
		function out_submit()
		{
			$(this).css("background-position","top");
		}
		
		function clicked()
		{
			if(soundON == false)
			{
				soundON = true;
				$("#soundBTN").css("background-position","0px 28px");
			}
			else
			{
				soundON = false;
				$("#soundBTN").css("background-position","0px 0px");
			}
			
		}
		function over()
		{
			if(soundON == false)
			{
				$("#soundBTN").css("background-position","0px 84px");
			}
			else
			{
				$("#soundBTN").css("background-position","0px 56px");
			}
		}
		function out()
		{
			if(soundON == false)
			{
				$("#soundBTN").css("background-position","0px 0px");
			}
			else
			{
				$("#soundBTN").css("background-position","0px 28px");
			}
		}
		
		 $('.txtClass').each( function () 
		 {    
		 	$(this).val($(this).attr('defaultVal'));   
		 });
		
		 $('.txtClass').focus(function()
		 {   
		 	 if ( $(this).val() == $(this).attr('defaultVal') )
			 {      
			 	$(this).val('');      
			}
		 });
		 
		$('.txtClass').blur(function()
		{    
		  	if ( $(this).val() == '' )
			{      
				$(this).val($(this).attr('defaultVal'));
			}    
		});
		
	});
