// JavaScript Document$(function(){
$(document).ready(function() {
	
$(".index_campus").scrollable({size:1,items:".scrollable ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".index_campus span ul",naviItem:"li",activeClass:"current"});

$(".scroll").scrollable({size:1,items:".navi ul",loop:true}).autoscroll({ autoplay: true,interval:3000 });

$(".scro").scrollable({size:1,items:".scr ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:"ul.nv",naviItem:"li",activeClass:"current"});


if ($(".index_b small ul").size()>0){
      $("ul.ni").tabs(".index_b small> ul",{loop:true,fadeOutSpeed:"fast",rotate: true}).slideshow({autoplay:true,interval: 3000});
};

if ($(".sc .fuck").size()>0){
   $("ul.nav").tabs(".sc > .fuck",{loop:true,fadeOutSpeed:"fast",rotate: true});
};

if ($(".flasher a").size()>0){
$(".images ul").tabs(".flasher > a",{effect:'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true}).slideshow({autoplay:true,interval: 4000});
};

$(".wedding_hotright .gun").scrollable({size:3,items:".wedding_hotright .gun ul",loop:true,prev:"a.np1",next:"a.np2"});

if ($(".hotright_img a").size()>0){
$(".gun ul").tabs(".hotright_img > a",{loop:true,fadeOutSpeed:"fast",rotate: true});
};

$(".wedding_service").scrollable({size:2,items:".able ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".wedding_service span ul",naviItem:"li",activeClass:"current"});

$(".left_scrollable").scrollable({size:1,items:".left_cer .left_scrollable ul",loop:true,prev:"a.np3",next:"a.np4"}).autoscroll({ autoplay: true,interval:3000 });

if ($(".left_der a").size()>0){
$(".left_d ul").tabs(".left_der > a",{effect:'fade',loop:true,fadeOutSpeed:"fast",rotate: true}).slideshow({autoplay:true,interval: 3000});
};

$(function(){
$(window).scroll(function(){goTop();});
});

function goTop(){

$(".scrollgif").stop().animate({"top":$(window).height()+$(window).scrollTop()-100},1000);

}

$("a.np1").hover(function(){
	$(this).css("background-position","left bottom")
	},function(){
	$(this).css("background-position","left top")
	});

$("a.np2").hover(function(){
	$(this).css("background-position","right bottom")
	},function(){
	$(this).css("background-position","right top")
	});

$("a.np3").hover(function(){
	$(this).css("background-position","-12px 0")
	},function(){
	$(this).css("background-position","0 0")
	});

$("a.np4").hover(function(){
	$(this).css("background-position","-36px 0")
	},function(){
	$(this).css("background-position","-24px 0")
	});

$("a.np3,a.np4").hover(function(){
	$(this).css("color","#7f045f")
	},function(){
	$(this).css("color","#737373")
	});

$(".link ul li a").not($(".link ul li a.hover")).hover(function(){
	$(this).css("color","#ffffff")
	},function(){
	$(this).css("color","#c60b95")
	});
	
$(".link ul li a").not($(".link ul li a.hover")).hover(function(){
	$(this).css("background-position","center center")
	},function(){
	$(this).css("background-position","-999px 0")
	});

$(".link ul li.li a").hover(function(){
	$(this).css("color","#c60b95")
	},function(){
	$(this).css("color","#d673bc")
	});

$(".link ul li.ln a").hover(function(){
	$(this).css("color","#c60b95")
	},function(){
	$(this).css("color","#d673bc")
	});

$(".link ul li.lk a").hover(function(){
	$(this).css("color","#c60b95")
	},function(){
	$(this).css("color","#d673bc")
	});


$(".an input").hover(function(){
	$(this).css("color","#a61d00")
	},function(){
	$(this).css("color","#000000")
	});

});
