// NON-FLASH DIGIAL CLOCK
var clock;
setClock();

function setClock() {
	var weekday 	= new Array(7)
	weekday[0] 		= "SUN";
	weekday[1] 		= "MON";
	weekday[2] 		= "TUE";
	weekday[3] 		= "WED";
	weekday[4] 		= "THU";
	weekday[5] 		= "FRI";
	weekday[6] 		= "SAT";
	
	time=new Date(); // time object
	var minutes 	= time.getMinutes()
	var hours 		= time.getHours()
	
	if (hours<12) {
		ampm = "AM";
	} else {
		ampm = "PM";
	}
	while(hours >12) {
		hours = hours - 12;
	}
	if(minutes<10) {
		minutes = "0" + minutes;
	}
	
	clock = weekday[time.getDay()] + " " + hours + ":" + minutes + " "+ ampm;
}

// FUNCTION TO TOGGLE LABEL VALUES IN FORM FIELDS
jQuery.fn.toggleVal = function(focusClass) {
	this.each(function() {
		$(this).focus(function() {
			// clear value if current value is the default
			if($(this).val() == this.defaultValue) { $(this).val(""); }
			
			// if focusClass is set, add the class
			if(focusClass) { $(this).addClass(focusClass); }
		}).blur(function() {
			// restore to the default value if current value is empty
			if($(this).val() == "") { $(this).val(this.defaultValue); }
			
			// if focusClass is set, remove class
			if(focusClass) { $(this).removeClass(focusClass); }
		});
	});
}