$(document).ready(function() {	popUp();	formClear();	memInputMax();});function popUp () {var triggers = $("a.click").overlay({	top: 50,	expose: {		// you might also consider a "transparent" color for the mask		color: '#fff',		// load mask a little faster		loadSpeed: 200,		// highly transparent		opacity: 0.5	},	// disable this for modal dialog-type of overlays	closeOnClick: false,	// we want to use the programming API	api: true});};function formClear () {				var textContent = $('.nameInput').val();	$('.nameInput').focus(function() {		if (this.value == textContent) {			$(this).val('');		};	}).blur(function() {		if (this.value == '') {			$(this).val(textContent);		};	});	var textContent2 = $('.memInput').val();	$('.memInput').focus(function() {		if (this.value == textContent2) {			$(this).val('');		};	}).blur(function() {		if (this.value == '') {			$(this).val(textContent2);		};	});};	function memInputMax () {     $('input.nameInput').maxlength( {	maxCharacters: 18  });  $('textarea.memInput').maxlength( {	maxCharacters: 100  }); };function validate(form){  var returnValue = true;  var errorMessage = 'Please fill out :\n\n';  var focusField = null;  if(form.moment_name.value == "Name")  {    errorMessage += ' - Your Name\n';	if(!focusField)      focusField = form.moment_name;    returnValue = false;  }	if(form.moment_description.value == "Share your moment...")	{	    errorMessage += ' - Your Moment\n';		if(!focusField)      		focusField = form.moment_description;	    returnValue = false;	  }if(!returnValue)  {    alert(errorMessage);	if(focusField)      focusField.focus();  }  return returnValue;}