// Unobtrusive, degradable Javascript effects on every page
// Rounded corners - need to add class "corner" as a handle on elements that have been rounded
var initCorners	=	function(){
	$( ".podHead" ).each(function(){
			$( this )
				.corner( "top" )
				.addClass( "corner" );
		}
	);
}
var disableButtons	= function(){
	$( "button" ).attr( "disabled",true );
	return true;
}
var initForms	=	function(){
	$( "form" ).submit( disableButtons );
	$( "input[ type=text ],input[ type=password ]" ).addClass( "textInput" );
	$( "textarea,input[ type=text ],input[ type=password ]" ).each( function(){
		var $this	=	$( this )
			.addClass("focusInput")
			.focus( function(){ $this.addClass( "focus" ) } )
			.blur( function(){ $this.removeClass( "focus" ) } );
	});
}
// call this function at the bottom of the HTML
var initGlobal	=	function(){
	initCorners();
	initForms();
}