$(function() {

// Page 1

$('#code').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "This field allows to input a code you may have received for a promotion, a producer account, or a group account. This field is optional.";
	}
});

$('#username').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "The nickname you enter here will publicly identify you in the ScreenScape community. The nickname you choose must be unique. Choose a name that you'll be comfortable using in a professional context.";
	}
});

$('#loginname').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "The Login Name you enter here will be used to privately identify you when logging in to the ScreenScape application. The Login Name you choose must be unique, and cannot be the same as your publicly shared Nickname. To keep access to your account secure, your Login Name will not be shared with other ScreenScape members within the application.";
	}
});

$('#password').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return 'Select a strong password to protect your account. Strong passwords often combine upper and lower case letters with numbers, such as "pa$$w0rd". ScreenScape requires a minimum of 5 characters in your password.';
	}
});

$('#confirmPassword').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "Verify your password by retyping it here.";
	}
});

$('#email').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "This email address will be used by ScreenScape to contact you with details regarding your account. Accounts cannot be activated without a valid email address. This address will not be distributed to other ScreenScape members.";
	}
});

$('#securityQuestion').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "This question and the subsequent answer will be used to restore access to your account if you forget your password.";
	}
});

// Page 2

$('#subdomain').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return 'This field defines the screenscape.net address for your screen display. For example, entering "myvenue" here will result in a screen display address of "myvenue.screenscape.net". Choose a memorable address that you\'ll be comfortable in sharing with others.';
	}
});

$('#venueType').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return 'This field helps us match you with similar venues and members of the community. If you don\'t find a close match, choose "General". This value can be changed at any time within the application.';
	}
});

$('#venueName').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "This is the official name of your venue. i.e. Joe's Pizza Palace, or ABC Bank - Boston branch";
	}
});

$('#location1').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "By precisely locating your establishment, you make it easier for customers, partners and advertisers to find you.";
	}
});

$('#location2').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "By precisely locating your establishment, you make it easier for customers, partners and advertisers to find you.";
	}
});

$('#location3').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "By precisely locating your establishment, you make it easier for customers, partners and advertisers to find you.";
	}
});

// Page 3
$('#securityCode').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return $("<img/>").attr("src", "images/seccode.png").attr("width", "300"); 
	}
});

// Lost password page

$('#lpEmail').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "Enter the login name associated with your ScreenScape account.";
	}
});

// Reset password page

$('#rpAnswer').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return "This response must match the answer already associated with your ScreenScape account.";
	}
});
});