$(function(){
	$('#side_calendar td').each(function(){
		if($(this).attr("bgcolor") == '#B2CD4D'){
			$(this).addClass('today');
		}
		else if($(this).attr("bgcolor") == '#FF66FF'){
			$(this).addClass('regular_holiday');
		}
		else if($(this).attr("bgcolor") == '#FF0000'){
			$(this).addClass('special_holiday');
		}
		else {}
	});
});

$(function(){
//	$.hakobo.setScrolls();
	$.hakobo.rollOver();
});
	
$.hakobo = {
	setScrolls: function(){
		$('a[href^=#]').click(function(){
			var top = $(this.hash).offset().top; 
   $($.browser.safari ? 'body' : 'html').animate({scrollTop:top}, 700, 'swing');
			return false;
		});
	},
	rollOver: function(){
		$('.btn').each(function(){
			this.oSrc = $(this).attr("src");
			this.hSrc = this.oSrc.replace(/(\.gif|\.jpg|\.png)$/, "_o$1");
			this.cache = new Image();
			this.cache.src = this.hSrc;
		}).hover(function(){
			$(this).attr('src',this.hSrc);
		},function(){
			$(this).attr('src',this.oSrc);
		});
	}
}
