$( function() {	
	$("#npiNumber").focus(
		function(){
			var label = $('td.npi label.general');
			label.css({'color':'#4b1881', 'font-weight':'bold'});	
			$("#reg-pop").bgiframe().css("display","block").positionBy({
				target: label,
				targetPos:1,
				elementPos:3
			});
		}
	);
	$("#npiNumber").blur(function(){
			$("#reg-pop").css("display","none");
			$('td.npi label.general').css({'color':'#737373', 'font-weight':'normal'});
		}
	);
	/*
	$("#reg-pop").hover(
		function(){
			$("td.npi label.general").css({'color':'#4b1881', 'font-weight':'bold'});	
			$(this).show();
		},
		function(){
			$("td.npi label.general").css({'color':'#737373', 'font-weight':'normal'});
			$(this).hide();
		}
	);
	*/
	
	$("input[id='registrationProfile.emailAddress'], #userName").focus(
		function(){
			var label = $("td label.emailPop");
			label.css({'color':'#4b1881', 'font-weight':'bold'});			
			$("#email-pop1").css("display","block").positionBy({
				target: label,
				targetPos:1,
				elementPos:3
			});
		}
	);
	$("input[id='registrationProfile.emailAddress'], #userName").blur(function(){
			$("#email-pop1").css("display","none");
			$("td label.emailPop").css({'color':'#737373', 'font-weight':'normal'});
		}
	);
	/*
	$("#email-pop1").hover(
		function(){
			$("td label.emailPop").css({'color':'#4b1881', 'font-weight':'bold'});	
			$(this).show();
		},
		function(){
			$("td label.emailPop").css({'color':'#737373', 'font-weight':'normal'});
			$(this).hide();
		}
	);
	*/
	
	$("#regpassword").focus(
		function(){
			var label = $("td label.passwordPop");
			label.css({'color':'#4b1881', 'font-weight':'bold'});							
			$("#password-pop").css("display","block").positionBy({
				target: label,
				targetPos:1,
				elementPos:3
			});
		}
	);
	$("#regpassword").blur(function(){
			$("#password-pop").css("display","none");
			$("td label.passwordPop").css({'color':'#737373', 'font-weight':'normal'});
		}
	);
	/*
	$("#password-pop").hover(
		function(){
			$("td label.passwordPop").css({'color':'#4b1881', 'font-weight':'bold'});	
			$(this).show();
		},
		function(){
			$("td label.passwordPop").css({'color':'#737373', 'font-weight':'normal'});
			$(this).hide();
		}
	);
	*/
});