
$(document).ready(function() {
		

			
			var now   = new Date();
    var hour  = now.getHours();
    if (hour < 7) {
        jQuery("#name").removeClass('morning , day').addClass("night");
    } else if (hour < 10) {
        jQuery("#name").removeClass('day , night').addClass("morning");
    }
    else if (hour < 18) {
        jQuery("#name").removeClass('night , morning').addClass("day");
    } else {
        jQuery("#name").removeClass('morning , day').addClass("night");
    }
		
		

	
		

	
	// fade in #back-top
	$(function () {
		jQuery(window).scroll(function () {
			if (jQuery(this).scrollTop() > 100) {
				jQuery('#to_the_top').fadeIn();
			} else {
				jQuery('#to_the_top').fadeOut();
			}
		});

		// scroll body to 0px on click
		jQuery('#to_the_top a').click(function () {
			jQuery('body,html').animate({
				scrollTop: 0
			}, 800);
			return false;
		});
	});
	
	
	
	
	
	
 	
	

});





jQuery(document).ready(function() {
		

   
   				jQuery("#nav_secondary .2_nav a:not(#all)").removeClass("active");
   				jQuery("#all").addClass("active");
			


			jQuery("a#all").click(function () {
   				jQuery("div#post:not(.category-work)").fadeOut("fast");
   				jQuery(".category-work").fadeIn("slow")
   
   				jQuery("#nav_secondary .2_nav a:not(#all)").removeClass("active");
   				jQuery("#all").addClass("active")
			});
			
			
			
			
			jQuery("a#design").click(function () {
   				jQuery("div#post:not(.tag-design)").fadeOut("fast");
   				jQuery(".tag-design").fadeIn("slow")
   
   				jQuery("#nav_secondary .2_nav a:not(#design)").removeClass("active");
   				jQuery("#design").addClass("active")
			});
			
			
			
			jQuery("a#illustration").click(function () {
   				jQuery("div#post:not(.tag-illustration)").fadeOut("fast");
   				jQuery(".tag-illustration").fadeIn("slow")
   
   				jQuery("#nav_secondary .2_nav a:not(#illustration)").removeClass("active");
   				jQuery("#illustration").addClass("active")
			});
			
});
	
	
	
	
	

		
			

