/*
 * $j Easing v1.3 - http://gsgd.co.uk/sandbox/$j/easing/
 *
 * Copyright (c) 2007 George Smith
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 */
 
jQuery.noConflict();

var $j = jQuery;
 
$j.easing['jswing']=$j.easing['swing'];$j.extend($j.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return $j.easing[$j.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-$j.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return $j.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return $j.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});



/*
 * jcommon.js 1.2
 * Copyright (c) 2010 C.M.A. Co.,Ltd.
 *
 * Last Added: 2010-07-09
 *
 */

//GoogleAnalytics
var _gaq = _gaq || []; 
_gaq.push(['_setAccount', 'UA-17561696-1']); 
_gaq.push(['_setDomainName', 'none']); 
_gaq.push(['_setAllowLinker', true]); 
_gaq.push(['_trackPageview']);
(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();

//Utility
var absPath,sharePath = '/shared',isIE='\v'=='v',isIE6=(navigator.userAgent.indexOf("MSIE 6")>=0)?true:false,isWebKit = navigator.userAgent.match(/WebKit/),isLinkAry = location.pathname.split('/').slice(1),jcommon={preloader:{loadedImages:[],load:function(a){var b=this.loadedImages,c=b.length;b[c]=new Image;b[c].src=a}},URIExp:new RegExp("^[https]*[^a-z]*"+document.domain),URI:function(a){this.absolutePath=a.replace(jcommon.URIExp,"").replace(/^[^a-z]*/,"").replace(/index.*$/,"").replace(/\/$/,"");this.len=isLinkAry.length;for(this.isSelfLink=false;this.len--&&!this.isSelfLink;){this.isSelfLink=this.isSelfLink||this.absolutePath==isLinkAry[this.len];}

this.isJustSelfLink=false;(location.pathname.split('/')[location.pathname.split('/').length-1]=='')?i=3:i=2;this.isJustSelfLink=this.isJustSelfLink||(isLinkAry[isLinkAry.length-i].split('entetsu-bus10/')[1]+'/'+a.replace(jcommon.URIExp,"").replace(/^[^a-z]*/,"").replace(/index.*$/,"")==isLinkAry[isLinkAry.length-1].split('entetsu-bus10/')[1]);
//console.log(location.pathname.replace(/entetsu-bus10\//,"").split('/').slice(1).join('/')+' : '+a.replace(jcommon.URIExp,"").replace(/^[^a-z]*/,"").replace(/index.*$/,"")+" : "+isLinkAry[isLinkAry.length-3].split('entetsu-bus10/')[1]+'/'+a.replace(jcommon.URIExp,"").replace(/^[^a-z]*/,"").replace(/index.*$/,""));
},addLinkAry:function(){for(var a=0,b=isLinkAry.length;a<
b;)isLinkAry.push(isLinkAry.slice(0,++a).join("/").replace(/^\//,"").replace(/index.*$/,""))}};jcommon.addLinkAry();switch(true){case location.host.split('.')[1]===('apkisndov'+40*50).replace(/[p-z]/g,''):absPath = '/'+(location.pathname.split('/')[1]);var isBeta = true;break;case location.host==='entetsubus.weblogs.jp': absPath='http://bus.entetsu.co.jp';break;case location.protocol==='file:':absPath = (isIE?'':'/')+('D:/data/____TMP/遠鉄バス')+'/www/\u4f5c\u696d\u7528';var isBeta = true;break; default:absPath = '';break;}

//IncludeControl
(function(g){function f(c){try{return eval("typeof "+c)!="undefined"}catch(b){}return false}function h(c){var b=document.createElement("script");b.type="text/javascript";b.src=c;(document.getElementsByTagName("head").item(0)||document.body).appendChild(b)}var d;(function c(){var b=g.shift();if(!b)return d&&d();if(typeof b=="string"||b instanceof String)b={window:b};for(var e in b)if(e=="window"||!f(e))h(b[e]);var j=setInterval(function(){for(var i in b)if(!f(i))return;clearInterval(j);c()},99)})();
return function(c){return function(){var b=arguments;d=function(){c.apply(c,b)}}}})
([
	{
		'jQuery.fn.mousewheel':absPath+'/shared/js/jquery.mousewheel-3.0.4.pack.js',
		'jQuery.fn.imageTabs':absPath+'/shared/js/jquery.imageTabs.js',
		'jQuery.fn.fancybox':absPath+'/shared/js/jquery.fancybox-1.3.4.pack.js',
		'jQuery.cookie':absPath+'/shared/js/jquery.cookie.js',//読み込み箇所変更
		'jQuery.fn.equalbox':absPath+'/shared/js/equalbox.js'
	 } 
])
(function(){



//ロールオーバー
$j.fn.addRollOver=function(add){$j(this).filter('img').each(function(){$j(this).runRollOver(add,$j(this));}).end().not('img').each(function(){$j(this).runRollOver(add,$j(this).find('img'));});};
$j.fn.runRollOver=function(add,target){$j(this).each(function(num){this.originalSrc=String(target.attr('src'));this.rolloverSrc=this.originalSrc.replace(/(\.gif|\.jpg|\.png)/,add+"$1");}).hover(function(){target.attr('src',this.rolloverSrc);},function(){target.attr('src',this.originalSrc);});};
//現在のページへのリンク
$j.fn.addCurrentImages=function(add){$j(this).each(function(){var href=new jcommon.URI($j(this).attr('href'));if(href.isSelfLink){$j(this).parent('li').addClass('current');$j(this).unbind('mouseenter');$j(this).unbind('mouseleave');$j(this).find('img').each(function(){$j(this).unbind('mouseenter');$j(this).unbind('mouseleave');this.currentSrc=this.getAttribute('src').replace(/(\.gif|\.jpg|\.png)/,add+"$1");$j(this).attr('src',this.currentSrc)});if(href.isJustSelfLink){$j(this).parent('li').addClass('justCurrent');};}});};	
//ページ全体にリンク
$j.fn.groupLink=function(){$j(this).css({cursor:'pointer'}).hover(function(){$j(this).addClass('hover')},function(){$j(this).removeClass('hover')}).click(function(){location.href=$j(this).find('a:last').attr('href');return false})}



$j(function(){
	
		//使い方ガイド
		$j('a.toBusdoko,a.toHowto').each(function(){
			this.param = $j(this).attr("href");
			this.param = this.param.split('?');
			$j(this).attr("href","");
		}).click(function(){
			this.pu = window.open(this.param[0], 'popup', "menubar=1,scrollbars=1,location=1,resizable=1,status=1,width=750,height=600");
			return false;
		});
	
		
	
	
	/*/運行情報
	if($j('body#home').length){
		$j.ajax({
			type: "GET",
			url: "unkou.xml",
			dataType: "xml",
			success: function(xml){
				$j('item',xml).each(function (i) {
					$j('#unkouMessage p.message').empty().fadeOut(0).append($j(this).find("description").text()).fadeIn(800);
					return(i!=1);
				});
			}
		});
		//$j('#unkouMessage p.message').load('unkou.html');
	}
	*/
	
	
	//typepadは下のバナーを置かない
	if(location.host!='entetsubus.weblogs.jp'){
		$j('#footer').each(function(){
											
			//遠鉄バナー
			$j(this).prepend('<div id="footerBnrs" class="inner"><div class="jcarousellite">Loading...</div></div>');
			//jcarousellite読み込み＞バナーhtml読み込み＞メソッド付与
			$j.getScript(absPath+'/shared/js/jcarousellite_1.0.1.pack.js',function(){
				$j('#footer div.jcarousellite').load(absPath+'/shared/module/footer_bnrs.html',function(){
					$j(this).find('li').css({width:155});
					$j(".jcarousellite")
					.before('<a href="#" class="prev"><img src="http://bus.entetsu.co.jp/shared/img/btn_footer_bnrs_pager_prev.png" alt="戻る"/></a>')
					.after('<a href="#" class="next"><img src="http://bus.entetsu.co.jp/shared/img/btn_footer_bnrs_pager_next.png" alt="次へ"/></a>')
					.jCarouselLite({
						auto: 3500,
						speed: 1300,
						easing: "easeInOutExpo",
						btnNext: ".next",
						btnPrev: ".prev",
						visible:5,
						scroll:5
					});
				});
			});
			
			
		});
	}
	
	//広告バナー読み込み
	var jsonurl="http://bus.entetsu.co.jp/shared/module/footer_bnrs_ad.json?callback=?";
	$j.getJSON(jsonurl,null,callback=function(data){ 
		var adBnrTxt ="<ul>";
		
		
		// JSONデータ読み込み
		$j.each(data, function(i, item){
													
		// URLにテキストがある場合はリンク設置
		//txt = item.text;
	
			adBnrTxt += ('<li><a target="' + item.target +'" href="' + item.href +'"><img src="' + item.src +'" alt="' + item.title +'" width="200" height="55" title="' + item.title +'" /></a></li>');
		});
		
		adBnrTxt += '</ul><p><a href="http://www.entetsu.co.jp/ad/" target="_blank">広告掲載ご希望の方はこちらへ</a></p>';
		$j("#footer").prepend('<div id="footerBnrsAd">Loading...</div>').find('#footerBnrsAd').empty().prepend(adBnrTxt).fadeOut(0).fadeIn(1000);
	});

	//beta
	if(isBeta){
		$j('a[href^="/"]').each(function(){var url = $j(this).attr('href');$j(this).attr('href',absPath+url);});
		$j('img[src^="/"]').each(function(){var url = $j(this).attr('src');$j(this).attr('src',absPath+url);});
	}

	//ロールオーバー
	$j('a img.btn,a.btn,#globalNav li a,#subNav li a').addRollOver('_on');

	//現在のページへのリンク
	$j('#globalNav li a,#localNav li a,#subNav li a').addCurrentImages('_cr');	
	//.justCurrentひとつに
	$j('.justCurrent').each(function(){
				$j(this).find('.justCurrent').parents('.justCurrent').removeClass('justCurrent');
	});
	//.currentひとつに
	$j('#localNav li.current').each(function(){
				$j(this).prevAll('li.current').removeClass('current');
	});
	
	//外部リンクは別ウインドウを設定
	$j('a[href^="http://"]:not([href^="http://www2.akindo2000.net/"],[href^="http://info.entetsu.co.jp/"],[href^="http://bus.entetsu.co.jp/"],[href^="http://entetsubus.weblogs.jp/"],[href$=".pdf"])').click(function(){
		if(location.host != 'entetsubus.weblogs.jp'){
			window.open(this.href, '_blank');
			return false;
		}
	}).addClass('externalLink');
	
	$j('ul.navigation a[href^="http://"]:not([href^="http://www2.akindo2000.net/"],[href^="http://info.entetsu.co.jp/"],[href^="http://entetsubus.weblogs.jp/"])','#localNav')
	.add('dd a[href^="http://"]:not([href^="http://www2.akindo2000.net/"],[href^="http://bus.entetsu.co.jp/"],[href^="http://info.entetsu.co.jp/"],[href^="http://entetsubus.weblogs.jp/"])','#footerNavi').each(function(){
			$j(this).append('<img src="http://bus.entetsu.co.jp/shared/img/ico_external.png" alt="" style="padding:4px 0 4px 6px" />').attr('title','新しいウィンドウが開きます');
	});
	//別ウィンドウを設定
	$j('a[href$=".pdf"],a[href$=".asx"]').click(function(){
		window.open(this.href, '_blank');
		return false;
	})
	
	//lightpop
	$j('a[href$=".jpg"],a[href$=".jpeg"],a[href$=".gif"],a[href$=".png"]').fancybox({
				'titlePosition'		: 'outside',
				'overlayColor'		: '#333',
				'overlayOpacity'	: 0.75
			});

	
	//oddとevenを追加
	$j('table.timetable tr','#main')
	.add('table.feature tr','#main')
	.add('.optionList>li','#sub')
	.add('.mapSearchResultRoute ol.total>li','body.search #sub')
	.filter(':odd').addClass('even').end().filter(':even').addClass('odd')	;

	//dd要素の非表示 ver1.0
	$j('body.map #sub .searchNavCategory ul li').each(function(){
			//liに.openついていたら最初は消さない																											
			if(!$j(this).hasClass('open')){
				$j(this).children('ul').hide();
				$j(this).addClass('close');
			}
	});
	
	//連番class追加
	$j('ol.categoryList li','body.search #sub').each(function(num){
		$j(this).addClass('n'+(++num));
	});
	
	
	//table
	$j('table').each(function(){
			$j(this).attr('width','100%');										 
	});
	
	
	//印刷画面ポップアップ
	$j('a.toPrint').each(function(){
		this.param = $j(this).attr("href");
		this.param = this.param.split('?');
		$j(this).attr("href","");
	}).click(function(){
		this.pu = window.open(this.param[0], 'popup', "menubar=1,scrollbars=1,location=1,resizable=1,status=1,width=750,height=600");
		return false;
	});

	
	//タブ
	$j('div.tabNum').each(function(){
		$j(this).imageTabs({
				animate: 'fadeIn',
				dulation:'slow',
				opentab: 'tabNum01'
		});															
	});
	
	
	//htmlポップアップ
	$j('a.toPopup').fancybox({
		'width'				: '80%',
		'height'			: '80%',
		'autoScale'			: false,
		'overlayColor'		: '#333',
		'overlayOpacity'	: 0.75,
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	//tooltip
	$j('a.tip[title]').css('whiteSpace','nowrap').each(function(){
		$j(this).qtip({content: {
			title: {
				text: $j(this).text()
				}
			},
			 position: {
               my: 'top right',
               at: 'bottom center'
            },

			style: {
               classes: 'ui-tooltip-shadow ui-tooltip-cluetip'
      }

		})
	}).click(function(){return false});
	
	
	$j('.heightLine-group1').equalbox();
	$j('.heightLine-group2').equalbox();
	
	
//*****************************************************************
// body#home : トップページ
//*****************************************************************

	if($j('body#home').length){
		$j('#service ul li').groupLink();
		$j('#service ul li').equalbox();
	}
	
//*****************************************************************
// body.search : 検索ページ
//*****************************************************************

	if($j('body.search').length){
		
		//#main #sub 高さ揃え
		if($j('#main').length && $j('#sub').length){
			if($j('#main').height() >= $j('#sub').height()){
				$j('#sub').css("height",$j('#main').height()+"px");
			}else{
				$j('#main').css("height",$j('#sub').height()+"px");
			}
		}
		
		//出発地、到着地
		$j('.stepStart input.textBoxL,.stepGoal input.textBoxL').blur(function(){
				if($j(this).val() != ""){
					$j(this).addClass('typed');
				}
			}).each(function(){
			if($j(this).val() != ""){
				$j(this).addClass('typed');
			}
		});
	
		//周辺情報から検索
		$j('body.map #sub .searchNavCategory ul li h4,body.map #sub .searchNavCategory ul li ul li h5').click(function(){
			if($j(this).next().is(':visible')){
				$j(this).next().hide();
				if(!$j(this).nextAll('ul').is(':visible')&&!$j(this).prevAll('ul').is(':visible')){
					$j(this).parent('li').removeClass('open').addClass('close');
				}
			}else{
				$j(this).next().show();
				$j(this).parent('li').removeClass('close').addClass('open');
			}
			return false;
		});
		
		
				
		//最初のポップアップ
		if($j('body#searchMapResult').length){
			// Cookieあるか ない=0
			if($j.cookie('isWelcomeEnabled') == null){
				$j.cookie("isWelcomeEnabled",1,{expires:30,path:'/'});
			}
			
			var isWelcomeEnabled = $j.cookie('isWelcomeEnabled');
			//alert("テスト: " + times + "回目の訪問です（動作確認用に5回目でリセット）");
			if(Number(isWelcomeEnabled)){
				//バナー表示処理はここ
				
				$j('body#searchMapResult').append('<a id="welcomeDummy" href="welcome.html" style="display:none"></a>');
				$j('a#welcomeDummy').fancybox({
					'content' : 'welcome.html',
					'width'				: 605,
					'height'			: 335,
					'autoScale'			: false,
					'scrolling' : 'no',
					'overlayColor'		: '#666',
					'overlayOpacity'	: 0.85,
					'speedIn' : 800,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type' : 'iframe',
					'onCleanup' : function(){
						if($j('iframe').contents().find('input:checked#noWelcome').length){
								$j.cookie("isWelcomeEnabled",0,{expires:30,path:'/'});
								//alert($j('iframe:first').contents().find('input:checked#noWelcome').length)
						}}
				});
				
				setTimeout(function(){
					$j('a#welcomeDummy').trigger('click');
				}, 500);
			//$j.cookie("visitedTimes",++times,{expires:30,path:'/'});
			
			} 
		
	
	
		} 
		
		//詳細情報ポップアップ
		//$j('a.toDetail').lightpop({Contents:{size:[750,500],scrolling:'auto'}})
		
			$j('a.toDetail').fancybox({
				'width'				: 800,
				'height'			: '80%',
				'autoScale'			: false,
				'overlayColor'		: '#333',
				'overlayOpacity'	: 0.75,
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
		
		
		
		//バスどこ!?ポップアップ
		//$j('a.toBusdoko').lightpop({Contents:{size:[750,500],scrolling:'auto'}});
		
		//cross-domain link
		$j('a').filter(function(){
			return this.hostname && this.hostname !== location.hostname && "bus.entetsu.co.jp entetsubus.weblogs.jp info.entetsu.co.jp".indexOf(this.hostname)!=-1
		}).click(function(){
			_gaq.push(['_link',this.href]);
			return false;
		});

	}
	

//*****************************************************************
//  : お客様へ
//*****************************************************************

$j('#home #contents .inner .col1').before('<p id="atteArea" style="padding-bottom:10px;"><a href="http://info.entetsu.co.jp/navi/pcold/jikoku.aspx" target="_blank"><img src="http://bus.entetsu.co.jp/img/fig_attention.png" alt="お客様へ平成23年12月20日(火）付けで遠鉄バスホームページをリニューアルいたしました。路線・時刻表・運賃の検索につきましては、従来の機能に加え、目的地まで徒歩ルート等を含めた総合案内（ぶらっと地図ナビ）機能がご利用頂けます。" border="0" usemap="#Map" /></a><map name="Map" id="Map"><area shape="rect" coords="416,80,478,96" href="http://info.entetsu.co.jp/navi/pcold/jikoku.aspx" target="_blank" alt="旧ETナビをご利用のお客様はこちらから" /></map></p>');
	
$j('#contents .inner h1').after('<p id="atteArea" style="padding-bottom:10px;"><a href="http://info.entetsu.co.jp/navi/pcold/jikoku.aspx" target="_blank"><img src="http://bus.entetsu.co.jp/img/fig_attention.png" alt="お客様へ平成23年12月20日(火）付けで遠鉄バスホームページをリニューアルいたしました。路線・時刻表・運賃の検索につきましては、従来の機能に加え、目的地まで徒歩ルート等を含めた総合案内（ぶらっと地図ナビ）機能がご利用頂けます。" border="0" usemap="#Map" /></a><map name="Map" id="Map"><area shape="rect" coords="416,80,478,96" href="http://info.entetsu.co.jp/navi/pcold/jikoku.aspx" target="_blank" alt="旧ETナビをご利用のお客様はこちらから" /></map></p>');


//*****************************************************************
// body.faq : 総合Q&A
//*****************************************************************

	if($j('body.faq').length){
		
		//閉じたり開いたり
		$j('body.faq #main .section').each(function(){
			$j(this).find('.answer').slideToggle(0);
		});
		
		$j('body.faq #main .section .question').css({cursor:'pointer'}).click(function(){
				$j(this).next('.answer').slideToggle(400,'easeOutCirc');
		}).hover(function(){
			$j(this).addClass('hover');
		},function(){
			$j(this).removeClass('hover');
		});
	}
	
	

	//日付表記を変換
	function changeDate(str){
		var myDate=new Date(str);
		var YYYY=myDate.getFullYear();
		var MM=myDate.getMonth()+1;
		if(MM<10){MM="0"+MM;}
		var DD=myDate.getDate();
		if(DD<10){DD="0"+DD;}
		var date=YYYY+"/"+MM+"/"+DD;
		return date;
	}


});
})();


