$(document).ready(function() {
	
	$("#follow").hide();
		
	/* animate scroll to top */
	$("p.top a").click(function()
	{
		$("html, body").animate({scrollTop:0}, 'slow', 'easeInOutCirc');
		return false;
	});
	
	/* follow */
	
	$("#nav li.last a").click(function()
	{
		$("#follow").animate({opacity: 'show', height: 'show'}, 'slow', 'easeOutCirc'); 
		return false;
	});
	
	
	$("p.close a").click(function()
	{
		$("#follow").animate({opacity: 'hide', height: 'hide'}, 'slow', 'easeOutCirc'); 
		return false;
	});
	
	/* client resources, wireframe morph */
	
	// hide design
	$("div#wireframe-morph .design").hide();
	
	/* toggle on click */
	$("div#wireframe-morph").click(function() {
		$("div#wireframe-morph .wireframe").fadeToggle();
		$("div#wireframe-morph .design").fadeToggle();
		return false;
	});
});

jQuery.fn.fadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
