﻿/* initialise global scripts */

//Input focus
var initInputFocus	=	function(){
	var aryFocusInputs	=	$("textarea,input[type=text],input[type=password]").get();
	$(aryFocusInputs).each(function(){$(aryFocusInputs).focus(function(){$(this).addClass("focus")});});
	$(aryFocusInputs).each(function(){$(aryFocusInputs).blur(function(){$(this).removeClass("focus")});});
}

var initGlobal	=	function(){
	//initCorners();
	initInputFocus();
}
// execute the lot when the DOM has loaded
$(initGlobal)