$(function(){
	// rollover
	$('.imgover').each(function(){
		this.osrc = $(this).attr('src');
		this.rollover = new Image();
		this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
	}).hover(function(){
		$(this).attr('src',this.rollover.src);
	},function(){
		$(this).attr('src',this.osrc);
	});
	// scroll
	$('a[@href^=#]').click(function() {
		var $t = $(this.hash);
		if (this.hash.length > 1 && $t.size()) {
			$.scrollTo($t, 400);
			return false;
		}
	});
});


$( document ).ready( function (){
	$("<span></span>").appendTo(".image");
	
	// zebra
	var zebra_flag = 0;
	$('table').find("tr.zebra").each(function() {
		if (zebra_flag == 0) {
			$(this).addClass("tr01");
			zebra_flag = 1;
		}
		else {
			$(this).addClass("tr02");
			zebra_flag = 0;
		}
	});
	
});
