$(document).ready(function(){
						$(".fadeEffect").fadeTo("slow", 0.8); // This sets the opacity of the text to fade down to 30% when the page loads
						$(".fadeEffect").hover(function(){
							$(this).fadeTo("slow", 1.2); // This should set the opacity to 100% on hover
						},
						function(){
						   $(this).fadeTo("slow", 0.8); // This should set the opacity back to 30% on mouseout
						});
});



$(document).ready(function(){
	$("#listMenu a").hover(function(){
			$(this).animate({ color: "#FFFFFF" }, 400);
		},function() {
			$(this).animate({ color: "#666666" }, 600);
	});
	$("#listMenuComm a").hover(function(){
			$(this).animate({ color: "#000000" }, 400);
		},function() {
			$(this).animate({ color: "#666666" }, 600);
	});
	$("#introMenu a").hover(function(){
			$(this).animate({ color: "#000000" }, 400);
		},function() {
			$(this).animate({ color: "#666666" }, 600);
	});
	$("#listContact a").hover(function(){
			$(this).animate({ color: "#FFFFFF" }, 400);
		},function() {
			$(this).animate({ color: "#666666" }, 600);
	});
	$("#listContactComm a").hover(function(){
			$(this).animate({ color: "#000000" }, 400);
		},function() {
			$(this).animate({ color: "#666666" }, 600);
	});
});


$(document).ready(function(){

			$('#toProject').hover(function(){
					$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'200px'},{queue:false,duration:160});
				});
});


// ******************************** 
//    Extra Stuff for AD-Gallery
// ********************************

  $(function(){
    var galleries = $(".ad-gallery").adGallery();
    $('#switch-effect').change(
      function() {
        galleries[0].settings.effect = $(this).val();
        return false;
      }
    );
    $('#toggle-slideshow').click(
      function(){
        galleries[0].slideshow.toggle();
        return false;
      }
    );
    $('#toggle-description').click(
      function(){
        if(!galleries[0].settings.description_wrapper) {
          galleries[0].settings.description_wrapper = $('.description');
        } else {
          galleries[0].settings.description_wrapper = false;
        }
        return false;
      }
    );
  });



