/* Simple Smooth Scroll */
function smoothScroll(t) {
	var targetOffset = $(t).offset().top - 12;
	$('html,body').animate({scrollTop: targetOffset}, 420);
};

/* Eml Protect */
function emlWrt(dom, usr, output) { 
	if ((output.length == 0) || (output.indexOf('@')+1)) {
		document.write('<a href=' + '"mai' + 'lto:' + usr + '@' + dom + '">' + usr + '@' + dom + '<\/a>'); }
	else {
		document.write('<a href=' + '"mai' + 'lto:' + usr + '@' + dom + '">' + output + '<\/a>');
	}
};

$(document).ready(function() {
	$("#work dl").hover(
		function () {
			$(this).find("dt").fadeIn("fast");
		}, 
		function () {
			$(this).find("dt").fadeOut("fast");
		}
	);
});