// site specific functions

createMailto = function(pers, domain, customText) {
	var email = pers + '@' + domain;
	(customText == null) ? lnk = email : lnk = customText;
	document.write('<a href="mailto:'+email+'">'+lnk+'</a>');
}

initNav = function() {
	$('#nav1 img').bind("mouseenter", function(e) {
		src = this.src;
		ext = src.substring(src.lastIndexOf('.'), src.length);
		if (src.indexOf('-s' + ext) == -1) this.src = src.replace(ext, '-s'+ext);
	});
	$('#nav1 img').bind("mouseleave", function(e) {
		src = this.src;
		ext = src.substring(src.lastIndexOf('.'), src.length);
		if (src.indexOf('-s' + ext) != -1) this.src = src.replace('-s'+ext, ext);
	});
	$('#nav1 a.active img').unbind();
}

$(document).ready(function() {
	initNav();
});







