// content slider
// from: http://www.webdeveloperjuice.com/2010/01/12/lightest-jquery-content-slider-ever-made-380-bytes/
// modified to make button rel id global
var buttonRel;
var buttonCount;
$(document).ready(function (){
	buttonCount = $('.button').length;
	$('#button a').click(function(){
		$(".timer").show("slow");
		buttonRel = $(this).attr('rel');
		$('#myslide .cover').animate({
				left:-620*(parseInt(buttonRel)-1), 
				speed:2000, 
				easing: 'jswing'
				})  /*----- left = width of div mystuff ------ */
		$('#button a').each(function(){
		$(this).removeClass('active');
			if($(this).hasClass('b'+buttonRel)){
				$(this).addClass('active')}
		});
					return false;
	});	
});
