$(function(){
	$(".IE6 #gnav li, .IE6 #lnav li").hover(function(){$(this).addClass('hover');}, function(){$(this).removeClass('hover');});
	$('#gnav li, #lnav li, .links li').css('cursor','pointer').click(function(e){
		e.stopPropagation(); 
		if(this.firstChild.href){
			if($(this.firstChild).attr('rel')=='external')
				window.open(this.firstChild.href)
			else
				window.location=this.firstChild.href;
			return false;
		}
	});
	
	rotate();
	$("a[rel=external]").live("click", function(){this.target="_blank"});
	$(".IE6 li:first-child").addClass("first-child");

});
function rotate(){
	$(".showing").fadeTo(2000,1,function(){
		$(".showing").fadeOut(1000,function(){
		$(".first").removeClass("first");
			var next = $(".showing").next().length>0?$(".showing").next(): $(".Associations li").eq(0);
			$(".showing").removeClass("showing");
			next.addClass("showing");
			next.fadeIn(1000,rotate);
		});
	}); 
} 

