//************************************************
// fn: inc/core.js
// by: danConcepcion
// dt: 28OCT09@2320
// ----------------------------------------------
// dc: The site main javascript file.
//************************************************

//// These functions show/hide the large images on the portfolio page
function showlargepic(id){ var picture = document.getElementById(id); picture.style.display="block";}
function hidelargepic(id){var picture = document.getElementById(id);picture.style.display="none";}

//// This function hides email addresses from email-grab-and-spam crawlers
function emailMe2(name,url,linktext){document.write("<a href=\"mailto:" + name + "@" + url + "\">" + linktext + "</a>");}

//// This function returns the date in mm/dd/yyyy format.
function getTodaysDate(){
	var currentTime = new Date();
	var month = currentTime.getMonth() + 1;
	var day = currentTime.getDate();
	var year = currentTime.getFullYear();
	return(month + "/" + day + "/" + year);
}

//// This function returns the time in hh:mm format.
function getTheTime(){
	var currentTime = new Date();
	var hours = currentTime.getHours();
	var minutes = currentTime.getMinutes();
	if (minutes < 10){
		minutes = "0" + minutes;
	}
	currentTime = hours + ":" + minutes;
	if(hours > 11){ currentTime += "PM"; } else { currentTime += "AM";}	
	return currentTime;
}


