// JavaScript Document
//Main Navigation Jquery
$(function() {
		// set opacity to nill on page load
		$("ul#menu span").css("opacity","0");
		// on mouse over
		$("ul#menu span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	});
	
//Image Bar Links Jquery
$(function() {
		// set opacity to nill on page load
		$("ul#image-bar span").css("opacity","0");
		// on mouse over
		$("ul#image-bar span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "medium");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "medium");
		});
	});

//Side Navigation Spry Content
jQuery(function(){
		jQuery("#lightswitch").children().hover(function () {
				jQuery(this).siblings().stop().fadeTo(800, 0.4);
		},
		function () {
			jQuery(this).siblings().stop().fadeTo(700, 1);
		});
	})
	
jQuery(function(){
		jQuery("#lightswitch2").children().hover(function () {
				jQuery(this).siblings().stop().fadeTo(800, 0.4);
		},
		function () {
			jQuery(this).siblings().stop().fadeTo(700, 1);
		});
	})

jQuery(function(){
		jQuery("#lightswitch3").children().hover(function () {
				jQuery(this).siblings().stop().fadeTo(800, 0.4);
		},
		function () {
			jQuery(this).siblings().stop().fadeTo(700, 1);
		});
	})
	
jQuery(function(){
		jQuery("#lightswitch4").children().hover(function () {
				jQuery(this).siblings().stop().fadeTo(800, 0.4);
		},
		function () {
			jQuery(this).siblings().stop().fadeTo(700, 1);
		});
	})
