// custom.js

$(document).ready(function() {
	$("span.fuzzydate").hover(function() { 
			var id = this.id;
			id = id.replace("fuzzydate-","");
			$("span#fuzzydate-"+id).css("display","none");
			$("span#realdate-"+id).css("display","inline");
		});
	$("span.realdate").hover(function() {}, function() { 	
			var id = this.id;
			id = id.replace("realdate-","");
			$("span#fuzzydate-"+id).css("display","inline");
			$("span#realdate-"+id).css("display","none");	
		});
	$("a#worka").hover(function() {
			$(this).html("portfolio &rarr;");
		}, function() {
			$(this).html("work &rarr;");
		});
	$("a#emaila").hover(function() {
			$(this).html("contact &rarr;");
		}, function() {
			$(this).html("email &rarr;");
		});
	$("a#bloga").hover(function() {
			$(this).html("personal &rarr;");
		}, function() {
			$(this).html("blog &rarr;");
		});
	$("a#inspirationa").hover(function() {
			$(this).css('font-size','160%');
			$(this).css('line-height','1.4em');
			$(this).html("inspiration &rarr;");
		}, function() {
			$(this).css('font-size','180%');
			$(this).css('line-height','1.25em');
			$(this).html("stream &rarr;");
		});
	$("[id^=showcomments]").click(function() { return false; });
	$("div[id^=showcomments]").click(function() {
			var id = this.id;
			id = id.replace("showcomments-","");
			// $("div#comments-"+id).toggleClass("hide");
			if ($("div#comments-"+id).is(":hidden")) {
        		$("div#comments-"+id).slideDown("slow");
      		} else {
        		$("div#comments-"+id).hide();
      		}
		});
	$("div#searchhide").hide();
	$("div#searchshow").click(function() {
			$("div#searchhide").slideToggle();
		});

});


