		$(document).ready(function(){
		// ---- Back to Top Controls ---- //
			$('a.b2t').click(function(e){
				$('html, body').animate({scrollTop:'0px'}, 'normal');
				e.preventDefault(); // cancel default behavior
			});
		// ---- Clear Default Input Values ---- //
			$('#searchfield').focus(function(){
				if(this.value==this.defaultValue){this.value=''}
			}).blur(function(){
				if(this.value==''){this.value=this.defaultValue}
			});
		// ---- Copy Input Values ---- //
			// To make use of this function, place this onblur event on the input field with the correct value and replace copyToID with the ID of the input field you want the value copied to: onblur="putvalue(this,'copyToID');" //
			function putvalue(obj,obj1){
				if(obj.focus){
					document.getElementById(obj1).value=obj.value
				}else{
					document.getElementById(obj1).value='';
				}
			}

			var currentDate = new Date()
  			var day = currentDate.getDate()
			var d=new Date();
			var month=new Array(12);
				month[0]="January";
				month[1]="February";
				month[2]="March";
				month[3]="April";
				month[4]="May";
				month[5]="June";
				month[6]="July";
				month[7]="August";
				month[8]="September";
				month[9]="October";
				month[10]="November";
				month[11]="December";
  			var year = currentDate.getFullYear()
			var hours = currentDate.getHours()
			var minutes = currentDate.getMinutes()
			
			var suffix = "AM";
				if (hours >= 12) {
			  		suffix = "PM";
			  		hours = hours - 12;
			  	}
			  	if (hours == 0) {
			  		hours = 12;
			  	}
			
			  	if (minutes < 10)
			  		minutes = "0" + minutes
			
			document.getElementById("date").innerHTML = hours + ":" + minutes + " " + suffix + " on " + month[d.getMonth()] + " " + day + ", " + year;
			
			$("a[rel='colorbox']").colorbox();
		});
