
// Everything JQuery-related
$(document).ready(function() {  
	// Searchbox behavior
	var contract = 0;
	$('.searchbox').hover(function(){
		//on hover, expand
		$(this).stop().animate({width:'10em'},200, 'swing');
	},function(){
		//on hover out, contract if never clicked
		if (contract == 0) {
			$(this).stop().animate({width:'4.5em'},400, 'swing');
		}
     });
	$('.searchbox').click(function(){
		//on click, stick expanded
		contract = 1;
     });
	 
	 
	//Links nudger
	$('.links-box a').hover(function(){
		$(this).stop().animate({paddingLeft:'30px'},400, 'swing');
	},function(){
		$(this).stop().animate({paddingLeft:'0px'},300, 'swing');
    });

	$('#sidebar-list').accordion({
	header:'h2',
   
	event: 'mouseover',
	
	
	});


  
});  