		Cufon.replace('h1', { hover: true })
		Cufon.replace('h2', { hover: true })
		Cufon.replace('h3', { hover: true });
		Cufon.replace('.discover_link', { hover: true })
		Cufon.replace('.post-date');
		Cufon.replace('span.collapsLink', { hover: true });
		Cufon.replace('#return', { hover: true });
		Cufon.replace('#sidebar .navTitle a', { hover: true });
$(document).ready(function() {
	
	// Smoothly scroll internal links, such as #header etc etc (On;y if the script fines #job1 on the page, that means there's jobs to scroll to!)
	if ($('#job1').length !== 0) {
		$('a[href*=#]').click(function() {
	    	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
	            var $target = $(this.hash);
	            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
	            if ($target.length) {
	                    var targetOffset = $target.offset().top;
	                $('html,body').animate({scrollTop: targetOffset}, 1000);
	            }
	        }
	    });
	}

	// The sliding Job Position bits
	$(".job").each(function(){
		var link = $(this),
			height = link.height();
		link.find(".theContent").animate({"height":"0px"});
		link.attr("rel",height);
	});
	$(".job h3").toggle(function(){
		var link = $(this),
			height = link.parent(".job").attr("rel");
		link.parent(".job").find(".theContent").animate({"height": height + "px"});
		link.addClass("active");
		link.removeClass("inactive");
		return false;
	}, function(){
		var link = $(this);
		link.parent(".job").find(".theContent").animate({"height": "0px"});
		link.addClass("inactive");
		link.removeClass("active");
		return false;
	});
	
$("#sideCategories").toggleClass("closeMenu");

$("#sideCategories").click(function () {
      $("div#catList").slideToggle("normal");
	  $(this).toggleClass("closeMenu");
	  return false;

});

$("#sideArchives").click(function () {
      $("div#arcList").slideToggle("normal");
	  $(this).toggleClass("closeMenu");
	  return false;

    });

$("#sideFriends").click(function () {
      $("div#friList").slideToggle("normal");
	  $(this).toggleClass("closeMenu");
	  return false;

    });
$("#sideClients").click(function () {
      $("div#cliList").slideToggle("normal");
	  $(this).toggleClass("closeMenu");
	  return false;

    });

$("#sideProjects").click(function () {
      $("div#proList").slideToggle("normal");
	  $(this).toggleClass("closeMenu");
	  return false;

    });


$("input#s").val('Enter your search here...');
$("#sidebar input#email").val('Enter your email here...');

$("input#s").focus(function () {
	 $(this).val('');
});

$("input#email").focus(function () { 
	 $(this).val('');
});


});
