$(document).ready(function(){
	if (!$.browser.msie) {
		$('.scrollable').jScrollPane({
			showArrows: true,
			horizontalGutter: 10
		});
		$('.scrollable.scrollto').each(function(){
			$(this).data('jsp').scrollToPercentY(parseFloat($(this).attr("scroll")));
		});
	}
	blackdiv = $('<div class="black"></div>')
	$('a.pic img').each(function() {
		$(this).wrap(blackdiv).css({opacity:0.5}).hover(
			function() {$(this).stop().animate({opacity:1});},
			function() {$(this).stop().animate({opacity:0.5})}
		);
	})
});
