$(document).ready(function(){
	$(".navButton a").hover(
		function() {
			$(this).parent().children(".btnNormal").stop().animate({"opacity": "0"}, 250);
		},
		function() {
			$(this).parent().children(".btnNormal").stop().animate({"opacity": "1"}, 500);
		}
	);
	
	if ( $("div.thumb a") ) {
		$("div.thumb a").attr('rel', 'gallery').fancybox({
			"padding"		:	10,
			"overlayColor"	:	"#000",
			"overlayOpacity":	"0.88"
		});
	}
});













function UnCryptMailto(s) {
	var n = 0;
	var r = "";
	for (var i = 0; i < s.length; i++) {
		n = s.charCodeAt( i );
		if (n >= 8364) {
			n = 128;
		}
		r += String.fromCharCode(n - 1);
	}
	return r;
}

function linkTo_UnCryptMailto(s) {
	location.href=UnCryptMailto(s);
}
