// Forms JavaScript Document for PA AUS
// For validation see jquery.validate.js


//jquery
$(function() {
	
	//fix alignment for Firefox (2.0 only, 3+ should be ok without)
	if( jQuery.browser.mozilla ) {
		$( 'form label' ).css( "display", "-moz-inline-box" );
		//$( 'form label' ).css( "display", "inline-block" );
	}

	//field focus styles
	$("input[type='text'], input[type='password'], textarea").addClass( "box" );
	$("input[type='text'], input[type='password'], textarea").focus(function(){ $(this).addClass( "focus" ); });
	$("input[type='text'], input[type='password'], textarea").blur(function(){ $(this).removeClass( "focus" ); });
	$("#content fieldset input[type!='hidden'][type!='submit']:first").focus();
	
	//button hover effect
	/*$("form .button").hover(
      function () {
        $(this).addClass("hover");
      }, 
      function () {
        $(this).removeClass("hover");
      }
    );*/
	

});
