// JavaScript Document

var theCount = 1
function rotateThis(){
	var totalSlides = $("#slideshow .slide").length;
	if(theCount < totalSlides){
		$(".slide:visible").fadeOut(2000).next(".slide").fadeIn(2000);
		theCount++;
	} else {
		$(".slide:visible").fadeOut(2000);
		$("#slideshow .slide:first").fadeIn(2000);
		theCount = 1;
	}
	setTimeout("rotateThis();",4000);
}	


$(document).ready(function(){
	setTimeout("rotateThis();",4000);
	$("#navigation li a").not("#navigation ul li a").mouseover(function(){
		if($(this).next("ul").hasClass("current")){
		} else {
			$("ul.current").hide().removeClass("current");									 	
			$(this).next("ul").fadeIn("slow").addClass("current");
		}
	});
});
