		$(document).ready(function() {

			$("#navigation ul li").mouseover(function() {
				
				$(this).animate({ marginTop: "15px" }, 100);
				$(this).animate({ marginTop: "10px" }, 100);
				$(this).animate({ marginTop: "13px" }, 100);
				
			});
			
			$("#navigation ul li").mouseout(function() {
				
				$(this).animate({ marginTop: "15px" }, 100);
				$(this).animate({ marginTop: "-3px" }, 100);
				$(this).animate({ marginTop: "0px" }, 100);
			
			});
			
			$("#navigation ul li a").click(function() {
				$(".currently_open").slideUp(150);
				var page = $(this).attr("class");
				
				if (page == "about") {
					// select random image
					var numRand = Math.floor(Math.random()*7);
					numRand = numRand + 1;
					var randImage = $("#image_"+numRand).attr("src");
					var useImage = randImage.replace('small_', '');
					// alert(useImage);
					$("#gallery_main").html("<a href='"+useImage+"' class='prettyPhoto'><img src='"+useImage+"' width='306' /></a>");
				}
				
				setTimeout(function() {
					$(".load").removeClass("currently_open");
					$(".load_"+page).addClass("currently_open");
					$(".load_"+page).slideDown(150);
				}, 300);

				return false;
			});
			
			$("#logo").click(function() {
				$(".currently_open").slideUp(150);
				$(".load").removeClass("currently_open");
				return false;
			});
		
		});
