﻿$(document).ready(function() {
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1, sPath.lastIndexOf('.'));
	var sId = '';
	if (sPage.indexOf('_') != -1) {
	sId = sPage.substring(0, sPage.indexOf('_'));
	} else {
	sId = sPage;
	}
	if (sId.length > 1) {
	sId = '#' + sId;
	$(sId).removeClass('even');
	$(sId).addClass('selected');
	} else {
		sId = '#index';
		$(sId).addClass('selected');
	}
	});

function encodedEmail() {
	nmLink = String.fromCharCode(115,97,108,101,115)
	nmLink += String.fromCharCode(64)
	nmLink += String.fromCharCode(119,101,115,116,101,99,104,45,105,110,100,117,115,116,114,105,97,108,46,99,111,109,46,97,117);
	nmE = "<a href='mailto:" + nmLink + "'>"
	nmE += nmLink + "</a>";
	document.write(nmE);
}