$(document).ready(function() {
   
   	// Page Scroller
    $('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });	
	
	// Featured homepage
	$("#featured ul.tabs").tabs("#featured .panes > div", {effect:'default', current:'active', rotate:true, event:'mouseover'})
	.slideshow({autoplay: true, interval: 3000});
		
});


$(document).ready(function() {

	// Scrollable
	$("#browsable")
	.scrollable({
		speed: 800,
		size: 4
	}).circular().navigator().autoscroll({autoplay: true, steps:4, interval:10000});
		
});


$(document).ready(function() { 

	$(".sidebar-contracts li img").hover(function() {
	
		$(this).stop().animate({"opacity": "0"}, "slow");
		},
		
		function() {
		$(this).stop().animate({"opacity": "1"}, "slow");
		});
		
});

$(document).ready(function() { 

	$("#contracts-home li img").hover(function() {
	
		$(this).stop().animate({"opacity": "0"}, "slow");
		},
		
		function() {
		$(this).stop().animate({"opacity": "1"}, "slow");
		});
		
});	

$(document).ready(function() { 

	  $("#primary .contract li img").mouseover(function ()
	  {
		$(this).stop().animate({"opacity": "0.5"}, "slow");
	  });

	  $("#primary .contract li img").mouseout(function ()
	  {
		$(this).stop().animate({"opacity": "1"}, "slow");
	  });
		
});	

$(document).ready(function() { 

	$(document).pngFix(); 
	
	$('ul#navigation').superfish({
		animation: {height:'show'},
		delay: 1200
	});
	

});	
