
$(document).ready(function(){
						   
	$("#nextBtn a").hover(
	function() {
		$(this).animate({"opacity": "0"}, 500);
	},
	function() {
		$(this).animate({"opacity": "1"}, 500);
	});
	
	$("#prevBtn a").hover(
	function() {
		$(this).animate({"opacity": "0"}, 500);
	},
	function() {
		$(this).animate({"opacity": "1"}, 500);
	});	
	
	$("#content input, #content textarea").each( function() {
			if ($(this).val() == "")
			{
				$(this).addClass("inputTitleColor");
				$(this).val($(this)[0].title);
			}
	});
	
	
	
	$(".newsBox, #about").hover(
	function() {
		$(this).animate({ backgroundColor: "#c9c9c9"}, 500);
	},
	function() {
		$(this).animate({ backgroundColor: "#ffffff"}, 500);
	});
	
	$("ul#imageList li").hover(
	function() {
		$(this).animate({ backgroundColor: "#82745b"}, 500);
	},
	function() {
		$(this).animate({ backgroundColor: "#ffffff"}, 500);
	});
	
	$("#navigation").hover(
	function() {
		$(this).stop().animate({ backgroundColor: "#82745b"}, 500);
	},
	function() {
		$(this).stop().animate({ backgroundColor: "#665c4a"}, 500);
	});
	
	$("#sidebar ul li a").hover(
	function() {
		$(this).stop().animate({ color: "#091278"}, 300);
	},
	function() {
		$(this).stop().animate({ color: "#ebebeb"}, 300);
	});
	
	$("#sidebar ul li a.subNavCurrent").hover(
	function() {
		$(this).stop().animate({ color: "#0095eb"}, 300);
	},
	function() {
		$(this).stop().animate({ color: "#0095eb"}, 300);
	});

	$("#content input[type=text], #content textarea").focus(
		function() {
			highlightInputField($(this));
			if ($(this).val() == $(this).attr('title'))
				$(this).removeClass("inputTitleColor").val("");
		}
	);
	$("#content input[type=text], #content textarea").blur(
		function() {
			unhighlightInputField($(this));
			if ($(this).val() == "")
				$(this).addClass("inputTitleColor").val($(this).attr('title'));
		}
	);
	
	$("a.button, button, .hiddenContent, .visibleContent").hover(
	function() {
		$(this).stop().animate({ backgroundColor: "#"}, 500);
	},
	function() {
		$(this).stop().animate({ backgroundColor: "#"}, 500);
	});

	
	$("#dropmenu a").hover(
	function() {
		$(this).stop().animate({ color: "#000000"}, 300);
	},
	function() {
		$(this).stop().animate({ color: "#ffffff"}, 300);
	});
	
	
	$("#dropmenu li li a").hover(
	function() {
		$(this).stop().animate({ backgroundColor: "#82745b"}, 600);
	},
	function() {
		$(this).stop().animate({ backgroundColor: "#665c4a"}, 600);
	});


	$(".hiddenContent a, .visibleContent a").hover(
	function() {
		$(this).stop().animate({ color: "#d4d4d4"}, 300);
	},
	function() {
		$(this).stop().animate({ color: "#ffffff"}, 300);
	});
});

function highlightInputField(field)
{
	field.stop().animate({ backgroundColor: "#82745b", color: "#d4d4d4"}, 300);
}

function unhighlightInputField(field)
{
	field.stop().animate({ backgroundColor: "#eeeeee", color: "#333333"}, 300);
}


