$(document).ready(function(){
	$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'});
	
	$(".navi dt").hover(function(){
		$(this).css({"cursor":"pointer","text-decoration":"underline","color":"#CC0000"});
	},function(){
		$(this).css({"cursor":"default","text-decoration":"none","color":"#FFF"}); 
		});
	$(".navi dd").css("display","none");
	$(".navi dt").click(function(){
		$(this).next().slideToggle("fast");
		});
	
	$('.opacy').children().hover(function() { 
		$(this).siblings() 
				.stop().fadeTo(400,0.3);
		}, function() { 
			$(this).siblings()
				.stop().fadeTo(300,1);
		});
});


$(function() {
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 30;
				var scldurat = 1200;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});



