$(document).ready(function() {

	// Fancy menu thing
	$(".archives li a, #subpages ul li a").hover(function() {
		$(this).animate({
			backgroundPosition: "0 10px"
		}, 50);
	}, function() {
		$(this).animate({
			backgroundPosition: "-5px 10px"
		}, 50);
	});
	
	$("#ourservices ul li a").hover(function() {
		$(this).animate({
			backgroundPosition: "0 10px",
			paddingLeft: "10px"
		}, 50);
	}, function() {
		$(this).animate({
			backgroundPosition: "-5px 10px",
			paddingLeft: "0"
		}, 50);
	});	

	

	// Enable the slideshow with jQuery cycle plugin
	$('#slideshow-text ul').cycle({
		delay: 4000, 
		speed: 200
	});
	
	$('#slideshow-images ul').cycle({
		delay: 4000, 
		speed: 200
	});
	
	$("#slideshow-text li").css({
		opacity: "0"
	});
	
	$("#slideshow-text ul li:first-child").css({
		opacity: "1"
	});
	
	
	// Animate the navigation drop downs
	$("#navigation > li").hover(function() {
		$(this).find(".sub-menu").fadeIn(200);
	}, function() {
		$(this).find(".sub-menu").hide();
	});

});
