// JavaScript Document

// =================================================
// ロールオーバー
// =================================================
function initRollOverImages() {
	var image_cache = new Object();
	$("img.off").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_ro = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_ro;
		$(this).hover(function() { this.src = imgsrc_ro; },function() { this.src = imgsrc; });
	});
}


// =================================================
// ページロード時に実行
// =================================================
$(function() {
	
	//ロールオーバー処理セット
	initRollOverImages();	   
	
	
	//角丸セット
	//classにcornerが付いている場合に角丸化
	$(".cr05").corner("5px");	 
	$(".cr08").corner("8px");	  
	$(".cr10").corner("10px");	 
	
});




$(function() {
$('a').click(function() {
	var jumpTo = $(this).attr('href');
	if(jumpTo == '#header') {
	 $(document.body).ScrollTo(1000, 'easein'); return false;
	}
	else if(jumpTo.charAt(0) == '#') {
	 $(jumpTo).ScrollTo(1000, 'easein'); return false;
	}
	});
});



