$(document).ready(function(){
						   
	/* cufon
	-------------------------------------*/
	
	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('h3');
	
	/* scrollable
	-------------------------------------*/
	
	$(".scrollable").scrollable();

	
	/* ajax sites
	-------------------------------------*/

	
	
	
	$("#portfolio .btn").livequery(function(){
		$(this).click(function(){
			setTimeout(function(){$(".site").fadeOut(500)}, 250);	
			return false;
		});
	});
	
	$(".site a.close").livequery(function(){
		$(this).click(function(){
			$(this).parent().remove();
			return false;
	   });
	});
	$("#portfolio a.hide").livequery(function(){
		$(this).toggle(function(){
			$(this).parent().animate({bottom: '-120px'});
			$(this).addClass('disabled').attr('title', 'Show');
			setTimeout(function(){$(".site").fadeOut(500)}, 250);
		}, function(){
			$(this).parent().animate({bottom: '0'});
			$(this).removeClass('disabled').attr('title', 'Hide');
		});
	});
	
	/* scroll
	-------------------------------------*/
	
	//$.scrollTo(0);
	$("a.nextPage, a.prevPage").click(function(){
		$.scrollTo(this.hash, 500, {axis:'x'});
		return false;
	});


	

	
						   
});

$(document).bind("mousewheel", function(event, delta){
	var scrollOffset = 150;
	var scrollDelta = -delta;
	window.scrollBy(scrollOffset * scrollDelta / Math.abs(scrollDelta), 0);
	setTimeout(function(){$(".site").fadeOut(500)}, 250);
});

