$(document).ready(function() {
	$('.friends img').mousemove(function(e){
		$('#fbName').html(this.title);
		$("#friendBubble").css({top:  (e.pageY - 45) + "px",left: (e.pageX - 30 ) + "px"});
		$("#friendBubble").show();
	});
	$('.friends img').mouseout(function(e){
		$('#friendBubble').hide();
	});
	
	//Togle value of login form
	$('.toggleMe').focus(function(e){
		(this.value == this.title || this.value == '') ? this.value = '' : this.value=this.value;
		$(this).addClass('edit');$(this).removeClass('noedit');
		if((this.id=='login_password' || this.id=='login_password_confirm') && (this.value!=(this.title))){//This is the password field - handle it differently
			$(this).attr("type", "text");
		}
	});
	$('.toggleMe').blur(function(e){
		(this.value == this.title || this.value == '') ? this.value = this.title : this.value=this.value;
		$(this).addClass('noedit');$(this).removeClass('edit');
		if((this.id=='login_password' || this.id=='login_password_confirm') && (this.value!=this.title || this.value!='')){//This is the password field - handle it differently
			$(this).attr("type", "password");
		}
	});
 });