$(document).ready(function(){
	$("#mainImg").hide(),
    $(".data, .notes, .navi, .view").hide(),
	$(".opacity").fadeTo("fast", 0.3),	
	$(".thumbnails, .mosaic, .albumWrapper, .latest li").fadeTo("fast", 0.6),		    
	$("a.toggle").click(function () {
	$("div#info").slideToggle("slow");
	return false;		
});

$(window).load(function () {
	$("#mainImg").fadeIn(1200),
    $(".data, div.notes, .view").fadeIn(2000),
    $(".navi").fadeIn(2000)
});

$("#mainImg").click(function () {
    $(this).fadeOut("1100"),
    $(".data, .notes, .navi, .view").hide()
   }
  );  
  
 
$(".dim").click(function(){
	  $("#menu,.navi, .data, .details, h1, .notes, #footer").fadeTo("fast", 0.1);
	  $("body, #wrapper").css({background: "#eee" });  
	  $("#mainImg").css({border: "10px solid #eee" });	  
	  return false;
	});
	
$(".full").click(function(){
	  $("#menu,.navi, .data, .details, h1, .notes, #footer").fadeTo("fast", 1);	
	  $("#wrapper").css({background: "#fff" });
	  $("#mainImg").css({border: "10px solid #eee" });	  	 
	  $("body").css({background: "#eee" }); 	     
	  return false;
});	

$(".dark").click(function(){
	  $("#menu,.navi, .data, .details, h1, .notes, #footer").fadeTo("fast", 0.1);	
	  $("#wrapper, body, mainImg").css({background: "#1F1F1F" });	
	  $("#mainImg").css({border: "10px solid #1F1F1F" });	   	      
	  return false;
});
   

 $(".opacity").hover(
      function () {
        $(this).fadeTo("slow", 1);
      }, 
      function () {
        $(this).fadeTo("slow", 0.3);
      }
    );
   
$(".albumWrapper, .mosaic,.thumbnails, .latest li").hover(
      function () {
        $(this).fadeTo("slow", 1);
      }, 
      function () {
        $(this).fadeTo("slow", 0.6);
      }
    );    
    
});  