//Initialize JS actions
$(document).ready(function() {
		   
	//Setup surprise for using the search box
	$('#s').focus(function(){
		$('#searchform label').effect("bounce", { distance:20, times:1 }, 300);
	});
	
	//Setup archival sidebar tabs 
	$('#archives_side .tabs').tabs('.panes > div', { effect: 'fade' });
	
	//Setup little animation for recent project hovers
	$('#projects_side .thumb').hover(
		function(){$(this).animate({width: 144}, 250);},
		function(){$(this).animate({width: 118}, 250);}
	);
	
	// ...and on the homepage too
	$('#recent_projects .thumb').hover(
		function(){$(this).animate({width: 144}, 250);},
		function(){$(this).animate({width: 120}, 250);}
	);
	
	//Setup scroller for portfolio images
	$('#gallery_items').scrollable({
		size: 1,
		circular: true
	}).navigator({
		navi: '#gallery_nav'
	});
});


//Cufon replacement declarations
Cufon.replace('#nav a', { fontFamily: 'Aller', textShadow: '1px 2px #964329' });
Cufon.replace('.cufon-aller', { hover: true, fontFamily: 'Aller' });
Cufon.replace('.cufon-droid', { hover: true, fontFamily: 'Droid' });
