$(document).ready(function() {
	var move = 0; var zoom =1;
	$('.home-thumb').hover(function() {
		width = $('.home-thumb').width() * zoom;
		height = $('.home-thumb').height() * zoom;
		$(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:500});
		$(this).find('div.caption').stop(false,true).fadeIn(500);
	},
	function() {
		$(this).find('img').stop(false,true).animate({'width':$('.home-thumb').width(), 'height':$('.home-thumb').height(), 'top':'0', 'left':'0'}, {duration:500});	
		$(this).find('div.caption').stop(false,true).fadeOut(500);
	});

});


$(function() {
	$('.scrollable').scrollable();
	$('.page-scroll').scrollable({circular:true, speed:800 }).click(function(){$(this).data('scrollable').next();});
	
	$(".items a").click(function(){$("#portfolio-close").delay(800).fadeIn(400);});
	$("#portfolio-thumbs a").click(function(){$("#portfolio-overlay").fadeIn(300)});
	$("#portfolio-close").click(function(){$("#portfolio-close").fadeOut(1)});
});

//$("#portfolio-thumbs a[title]").tooltip({offset: [10,2], effect: 'slide'}).dynamic({bottom:{direction:'down', bounce:true}});

$(document).ready(function(){$("#portfolio-disable").click(function(){
$("#portfolio-thumbs").slideToggle(620);
$("#portfolio-disable").animate({"bottom": "-=120px"}, 600).fadeOut(0);
$("#portfolio-enable").delay(600).fadeIn(0);
});});

$(document).ready(function(){$("#portfolio-enable").click(function(){
$("#portfolio-thumbs").slideToggle(600);
$("#portfolio-enable").fadeOut(0);
$("#portfolio-disable").fadeIn(0).animate({"bottom": "+=120px"}, 600);
});});
