// JavaScript Document

$(window).load(function() {

	$("#aga_subnav").hide();

	$("#main_aga").hover(function() {
		$("#aga_subnav").slideDown();
		$(this).addClass("active_tab");
	}).click(function() { return false; });

	$("#aga_subnav").hover(function() {
		return false;
	}, function() {
		$("#aga_subnav").slideUp();
		$("#main_aga").removeClass("active_tab");
	});
	
	$('#slider').nivoSlider({
		effect:'fade', 
		slices:1,
		animSpeed:1000, 
		pauseTime:7500, 
		directionNav:true, 
		controlNav:true, 
		keyboardNav:false, 
		pauseOnHover:false, 
		manualAdvance:false, 
        prevText: '', 
        nextText: '',
        afterLoad: function(){
			$(".nivo-controlNav").css("z-index","5000");
			var z = 1;
			$(".nivo-controlNav a").each(function(){
				$(this).css("z-index","500"+z);
				z++;
			});
			$(".nivo-controlNav").css("width",(z * 20));
		}
	});
	
	$("#navlist li:last-child").css("border","none");
	//$jScroller.add("#feed-marquee","#feed-scroll","up",2);
	//$jScroller.start();

});
