/* ---

R-co.ltd
jquery1.3.1 common file.

--------------------------------------- */

/* ---
flash 
--------------------------------------- */

$(document).ready(function(){

	// easing
	/*
	$(function() {
		$('area[href*=#], a[href*=#]').click(function() {
			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
				var target = $(this.hash);
				target = target.length && target;

				if (target.length) {
					var sclpos = 24;	//スクロール後のtopからの距離　初期値：30
					var scldurat = 2400;	//スクロールスピードの調整ミリ秒　初期値：1200
					var targetOffset = target.offset().top - sclpos;
					//$('html,body')
					$($.browser.opera ? $.support.boxModel == false ? 'body' : 'html' :'html,body')
						.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
					return false;
				}
			}
		});
	});
	*/
	// easing
	$(function() {
		$('area[href*=#], a[href*=#]').click(function() {
			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
				var target = $(this.hash);
				target = target.length && target;

				//もし、class="select"があれば削除、リンク先の要素にclass="select"を入れる
				/*
				if( $('#serviceStationList div ol li').hasClass("select") ) {
					$('#serviceStationList div ol li').removeClass("select");
				}
				$(target).addClass("select");
				*/

				if (target.length) {
					var sclpos = 6;	//スクロール後のtopからの距離　初期値：30
					var scldurat = 2400;	//スクロールスピードの調整ミリ秒　初期値：1200
					var targetOffset = target.offset().top - sclpos;
					//$('html,body')
					$($.browser.opera ? $.support.boxModel == false ? 'body' : 'html' :'html,body')
						.animate({scrollTop: targetOffset});
					return false;
				}
			}
		});
	});
	
	$(function() {
		$('.single_img a').lightBox();
		$('#img0001 a').lightBox();
		$('#img0002 a').lightBox();
		$('#img0003 a').lightBox();
		$('#img0004 a').lightBox();
		$('#img0005 a').lightBox();
		$('#img0006 a').lightBox();
		$('#img0007 a').lightBox();
		$('#img0008 a').lightBox();
		$('#img0009 a').lightBox();
		$('#img0010 a').lightBox();
	});


	$(function(){
		var func = arguments.callee;$(".blink").fadeTo(750,(func.b = !!!func.b) ? 0.1 : 1,func);
	});

});