
$(document).ready(function(){

	$(".login-box #username, .login-box #password").click(function(){
		$(this).siblings("label").hide();
	});
	
	$(".login-box #username, .login-box #password").focus(function(){
		$(this).siblings("label").hide();
	});
	
	$("input[type='image'], img[alt='Reset'], img[alt='reset']")
	.mouseover(function(){
		if($(this).attr("id") == 'login'){
			var src = $(this).attr("src").match(/[^\.]+/) + "_over.png";
		}else{
			var src = $(this).attr("src").match(/[^\.]+/) + "_over.gif";
		}
		$(this).attr("src", src);
	})
	.mouseout(function(){
		 var src = $(this).attr("src").replace("_over", "");
		$(this).attr("src", src);
	});
	
	$("img.btn, img#logout, img#regedit")
	.mouseover(function(){
		var src = $(this).attr("src").match(/[^\.]+/) + "_over.png";
		$(this).attr("src", src);
	})
	.mouseout(function(){
		 var src = $(this).attr("src").replace("_over", "");
		$(this).attr("src", src);
	});
	
	//form
	$("#sreg1, #sreg2, #sforgot, #sregedit, #sunsub, #bio-search").validationEngine();

});

