jQuery.extend(
	jQuery.expr[':'], {
		imagehref: function(a, i, m) {
			if (m[3] && m[3] != a.hostname) return false;
			return RegExp('.(jpg|jpeg|png|gif|ico|jp2|tif|tiff)$', 'i').test(a.href);
		}
	}
);

$(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			padding: 40, /* padding for each side of the picture */
			opacity: 0.7, /* Value betwee 0 and 1 */
			showTitle: false, /* true/false */
			allowresize: true, /* true/false */
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'light_square' /* light_rounded / dark_rounded / light_square / dark_square */
		});

	$('a[href="#sitemap"]').bind('click', function(){
		$('#sitemap').toggle();
	});
	$('#sitemap').bind('click', function(){
		$(this).toggle();
	});
	//$(document).bind('scroll', function(){
	//	$('#sitemap:visible').hide();
	//});
});

