$(document).ready(function(){
timer = setTimeout(homebar,1);
	
$("#menubuttons a").each(function() {  
								  
								  //alert($(this).offset());
								 // alert("well troy"+$(this).css("width"));
$(this).mouseover(function(){
						   
						   if(timer){
						   clearTimeout(timer);
						   }
						   thisoffset=($(this).position().left+$("#menubuttons").position().left);
						   //elewidth=parseInt($(this).css("width"));
						   elewidth=parseInt($(this).width());
						   widthadder=parseInt($(this).css("padding-left"));
						   posadder=parseInt($(this).css("margin-left"));
						   posadderborder=parseInt($(this).css("border-left-width"));
						   newoffset=thisoffset+posadder+posadderborder;
						   newwidth=elewidth+(widthadder*2);
						   //alert("this offset "+thisoffset+"elewidth"+elewidth+"widthadder"+widthadder+"posadder"+posadder);
						   //alert(thisoffset);
						  
						//alert(thisoffset);
						 //alert($(this).css.offset().left);
	
	$("#slider").stop().animate({width:newwidth},{queue:false, duration:500, easing: 'easeOutExpo'}).animate({left:newoffset+"px"},{queue:false, duration:500, easing: 'easeOutExpo'});
	
	
	
	
					   });

$(this).mouseout(function(){
						   
	

timer = setTimeout(homebar,200);


						   
						   
						  
						//alert(thisoffset);
						 //alert($(this).css.offset().left);
	
	//$("#slider").stop().animate({left:"900px"},{queue:false, duration:500, easing: 'easeOutExpo'});
	
	
	
					   });//end of mouseover
	
}); //end of menubutons each
function homebar(){
	$("#slider").stop().animate({width:"10px"},{queue:false, duration:500, easing: 'easeOutExpo'}).animate({left:"900px"},{queue:false, duration:500, easing: 'easeOutExpo'});
}

//homebar();
});
