jQuery(document).ready(function(){
						  									
	jQuery(".thumbs a").click(function(){

	  var largePath = jQuery(this).attr("href");
	  var largeTitle = jQuery(this).attr("title");
	  var largeCap = jQuery(this).children().attr("alt");

	  jQuery("#largeImg").fadeOut("fast");
	  jQuery("#largeImg").attr({ src: largePath }).fadeIn("slow");
	
	  
	  jQuery(".caption").html(largeCap);
	  jQuery(".gallery h3, .caption h3").html(largeTitle);
	  
	  return false;
	 
	});
	
	 jQuery("#twitter_link").click(function() {
		jQuery("#popups div:not(#twitter_popup)").hide("fast");				
		jQuery("#twitter_popup").toggle("slow");
	  return false;
	});
	 jQuery("#profile_link").click(function() {
		jQuery("#popups div:not(#profile_popup)").hide("fast");		
		jQuery("#profile_popup").toggle("slow");
	  return false;
	});
	 jQuery("#flickr_link").click(function() {
		jQuery("#popups div:not(#flickr_popup)").hide("fast");		
		jQuery("#flickr_popup").toggle("slow");
	  return false;
	});
	 jQuery("#tumblr_link").click(function() {
		jQuery("#popups div:not(#tumblr_popup)").hide("fast");		
		jQuery("#tumblr_popup").toggle("slow");
	  return false;
	});
	 jQuery("a.exit").click(function() {
		jQuery(this).parent().hide();
	  return false;
	});	 
	 jQuery("#nav li a, #miniblog li.miniblog a, #logo a").wrapInner("<span></span>");
	 jQuery("#nav li, #miniblog li.miniblog, #logo").removeClass("hover");
	 jQuery("#nav li a span, #miniblog li.miniblog a span, #logo a span").css("opacity","0");
	 jQuery("#nav li a span, #miniblog li.miniblog a span, #logo a span").hover(
		function() {
			jQuery(this).stop().animate({ opacity: 1 }, "fast")},
		function() {
			jQuery(this).stop().animate({ opacity: 0 }, "fast");
		});
	 
	jQuery(".miniblog").click(function () {
		jQuery.scrollTo("#bottom", 1000);
		});
	jQuery("#top_link").click(function () {
		jQuery.scrollTo("#header", 1000);
		});
	jQuery("#more_link").click(function () {
		jQuery.scrollTo("#old", 1000);
		});
});