  
  function GetYears()
{
    var StartDate = new Date(1993, 0, 1);
	var Today = new Date()
	//Set 1 year in milliseconds
	var one_year=1000*60*60*24*365.4
    var DateDifference = Math.ceil((Today.getTime() - StartDate.getTime())/(one_year))
    return DateDifference;
	
 }
 
function GetProgrammingYears()
{
    var StartDate = new Date(1996, 0, 1);
	var Today = new Date()
	//Set 1 year in milliseconds
	var one_year=1000*60*60*24*365.4
    var DateDifference = Math.ceil((Today.getTime() - StartDate.getTime())/(one_year))
    return DateDifference;
	
 }
				     
function addNoscriptClass()
{

	$('#NoScriptOnly').addClass('NoScript');
	$('#ScriptOnly').addClass('ScriptOnly');
	$('#accordion').removeClass('accordionNoScript');
}


function SafeMailto(user, domain, suffix, optionalLinkText)
{
	

	if(optionalLinkText == undefined || '')
	{
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
	}
	else
	{
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + optionalLinkText + '</a>');
	}
}
	
function CurrentPage()
{
	//location.pathname.substr(1).split('/', 2)[1] || '/'
	// above line generalized-out to deal with move from staging server to live server:
	var locationSplit = location.pathname.substr(1).split('/', 2)
	var nav = locationSplit[locationSplit.length - 1] || '/'; 

	$("#headerMenu").find("a").each(function () 
	{
        var t = $(this);
        // find the link in the menu bar which matches the current page's URL:
        if(nav == "/" && $(t).attr("href") == "index.htm" || $(t).attr("href") == nav)
        {
			$(t).addClass('currentPage'); // sets the class to "currentPage"
			$(t).click(function() { return false; }); 	// disable the link so page doesn't post back if user clicks link		
			$(t).attr('title', 'YOU ARE HERE'); // sets the mouseover/tooltip text
			return true;
        }
        
    });
}

function runLinkBounce(caller)
{
	// make sure this isn't a link to the current page; if so, link is disabled, and bounce shouldn't happen:
//	if($(caller).hasClass('currentPage'))
//	{
//		return false;
//	}
	//run the link bounce effect:
	$(caller).effect('bounce', 500);
	
	// return setTimeout(DelayMe(), 15000);
	// return false;	
};

function DelayMe()
{
	return true;
}



