// JavaScript Document$(function(){
$(document).ready(function() {
					   	
$("a.np,a.mp,a.np1,a.np2").click(function(){return false});

$(".event2").scrollable({size:3,items:".event2 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv2",naviItem:"dd",activeClass:"current"});
$(".src1 .src2").scrollable({size:1,items:".src1 .src1 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 });
$(".src3 .src4").scrollable({size:1,items:".src3 .src4 ul",loop:true,prev:".np1",next:".np2"}).autoscroll({ autoplay: true,interval:4000 });
$("#chained").scrollable({size:5,items:"#chained ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv",naviItem:"dd",activeClass:"current"});
$("ul.mp").tabs(".src6 > div", {rotate: true}).slideshow({autoplay:true,interval: 3000});
$(".map ul").tabs(".map1 > div", {rotate: true}).slideshow({autoplay:true,interval: 3000});


$(function(){
		var eq
		$("ul.quote li a").hover(function(){
			eq=$("ul.quote li a.hover").parent().prevAll().length;
			$("ul.quote li a").removeClass("hover");
		},function(){
			$("ul.quote li:eq("+eq+") a").addClass("hover");
		})
		})


$("#nav li").hover(function(){
$(this).find(".sp").addClass("wp");
},function(){
$("#nav li .sp").removeClass("wp")
});
});


$(function(){
  var href=window.location.href.split('/')[window.location.href.split('/').length-1].substr(0,4).toLowerCase();

  if(href.length>0&&$("ul.nav").find("a[href*="+href+"]").length>0)
  {
        $("ul.nav").find("a[href*="+href+"]:first").addClass("hover")
  }
});
