$(document).ready(function(){		
  $(document).ready(function() {
    $('.slider').each(function(){
      thisSlider = $(this);
      $('.slider-releases', thisSlider).cycle({
        timeout: 10000,
        fx: 'scrollUp',
        pause: true,
        pauseOnPagerHover: true,
        next: $('.release-next', thisSlider)
      });

      $('.release-images', thisSlider).cycle({
        next: $(this)
      });

      $(thisSlider).hover(function(){
        $('.caption', this).css('visibility', 'visible');
      }, function(){
        $('.caption', this).css('visibility', 'hidden');
      });
    });
  });
	
	$(".release-page-images").cycle({
		fx: "fade",
		timeout: 10000,
		speed: 500,
		next: $(".release-page-images"),
		pause: 1,
		fit: 1
	});
	
	setTimeout(function(){
		$(".status_message").slideUp("slow", function(){
			$(this).remove();
		});
	}, 5000);
	
	$(".status_message").click(function(){
		$(this).slideUp("slow", function(){
			$(this).remove();
		});
	});
	
	$("#backend .threecolumn:last").css("margin-bottom", "1em");
	
	$(".form_panel .form_handle").click(function(){
		$(this).siblings(".backend_panel").slideToggle("slow");
	});
	
	var c = $(".column .block").length;
	$(".column .block").each(function(){
		$(this).css("z-index", c);
		c--;
	});
	
	$("li", "#block_subnav").click(function(){
		window.location = $("a", this).attr("href");
	});
	
	$("li", "#block_nraonews").click(function(){
		window.location = $("a", this).attr("href");
	});
		
	$("li", "#block_auinews").click(function(){
		window.location = $("a", this).attr("href");
	});
			
});

window.onload = function(){
	
	$("#cover img").animate({
		left: "-30em"
	}, 8000);
	
}
