/* =============================================================

#THIS_JAVASCRIPT {
	--------------------------------------------
	filename: base.js;
	--------------------------------------------
}

#CONTENT {
	[+000]
	javascript ベースファイル
	--------------------------------------------
	+ 1: Rollover Function;
	+ 2: Scroll Function;
	+ 3: Stripe Function;
	--------------------------------------------
}

#KEY {
	ファイル内管理
	--------------------------------------------
	Search key "=" + "n"
	--------------------------------------------
}

#COPYRIGHT {
	--------------------------------------------
	COPYRIGHT(C) TOKYODENCA All RIGHTS RESERVED.
	--------------------------------------------
}	
============================================================== */






/* =============================================================

	[+1] Rollover Function
	
============================================================== */
$(function(){
	$('img.Hov')
		.mouseover(function () {
			this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_hov$2");
		})
		.mouseout(function () {
			this.src = this.src.replace(/^(.+)_hov(\.[a-z]+)$/, "$1$2");
		})
		.each(function () {
			this.preloaded = new Image;
			this.preloaded.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_hov$2");
	});
		
	$('img.On')
		.each(function () {
			this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_hov$2");
	});

/* =============================================================

	[+2] Scroll Function
	jQuery & scroll.js is necessary. 
	
============================================================== */
	/*
	【操作手順】
	.toTop a‘と書くとtoTopというclass名の中にあるaをクリックした時の動作を設定してあります。
	---------------------------------------------------------------
	<p class="toTop"><a href="#header">ページの先頭に戻る</a></p>
	---------------------------------------------------------------
	*/
	$('.toTop a').click(function(){
		$('#header').ScrollTo(1000, 'easeout');
		return false;
	});






/* =============================================================

	[+3] Stripe Function
	jQuery is necessary. 

============================================================== */
	$('ul.stripe').each(function(){
		$(this).find('li:odd').addClass('even');
		$(this).find('li:even').addClass('odd');
	});
	$('table.stripe').each(function(){
		$(this).find('tr:odd').addClass('even');
		$(this).find('tr:even').addClass('odd');
	});





/* =============================================================

	[/999:] CSS set

============================================================== */
	/*
	$('a[@target="_blank"]').css({
		padding:"0 15px 0 0",
		margin:"0 .1em 0 0",
		background:" url(common/img/share/icon_blank.gif) no-repeat right 50%"
	});
	*/
});





/*======================================

	[/999:] CSS set

============================================================== */
/*
//jQuery is necessary. 
$(function(){

	$("#rap").css({
		background:"url(img/rap_bg.png) no-repeat top",
	});
});
*/

