$(document).ready(function(){
	if ($('#main-content-scroller')) {
		$('#main-content-scroller').jScrollPane({showArrows:true});
	}
	$("#nav li a, #header-info-buttons li a, #header-share-buttons li a").hover(
		function () {
			$(this).addClass("active");
		}, 
		function () {
			$(this).removeClass("active");
		}
	);
	$(".hover-opacity").hover(
		function () {
			$(this).fadeTo(200, 1);
		}, 
		function () {
			$(this).fadeTo(200, .7);
		}
	);
	$('.hover-opacity').tipsy({fade: true, gravity: 'n'});
	$('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
	
	
	

});
