;$(document).ready(function(){
//var topboxSliderManager = $("#topbox").sliderManager({auto:false,speed: 500, pause: 3000, onInitSlide: function () {var $thumbLI = $(" li", "#thumbox");$thumbLI.css({filter: "alpha(opacity=60)", opacity: .6});$thumbLI.on('click', function (event) {topboxSliderManager.moveSlide('goToSlide', $thumbLI.index(this));event.preventDefault();});}, onSlideAfter: function ($slideElement, oldIndex, newIndex) {var $thumbLI = $(" li", "#thumbox");$thumbLI.eq(oldIndex).css({filter: "alpha(opacity=60)", opacity: .6});$thumbLI.eq(newIndex).css({filter: "alpha(opacity=100)", opacity: 1});}, onDestroy: function () {$(" li", "#thumbox").off();}}).data("sliderManager");
$("#tabbox").tabboxManager({pause: 3000, duration: 500});
$("#sidebox03").sliderManager({speed : 500, pause : 3000, minSlides : 3, maxSlides : 3, slideWidth : 110, areaMargin : 40, auto: false});
$("#navi").navigationMenuManager({clearTarget:"#wrapper", mainArea: ".naviContents"});
$("#campaignbox").sliderManager({auto: false,speed : 500, pause : 3000, minSlides : 3, maxSlides : 3, slideWidth : 200, areaMargin : 50});
$("#sidebox04").movieManager({});
$("#recentlyChecked").sliderManager({speed : 500, pause : 3000, minSlides : 3, maxSlides : 3, slideWidth : 111, slideMargin : 0, areaMargin : 20}).trigger('createChildren');
// 出発日
var i, today = new Date();
var $deptY = $('#sidebox02departureYear');for(i = 0; i < 3; i++) { $deptY.append($('').html((today.getFullYear() + i) + "年").val(today.getFullYear() + i)); }
var $deptM = $('#sidebox02departureMonth');for(i = 1; i <= 12; i++) { $deptM.append($('').html(i + "月").val(i)); }
var $deptD = $('#sidebox02departureDate');for(i = 1; i <= 31; i++) { $deptD.append($('').html(i + "日").val(i)); }
$.datepicker.setDefaults( $.datepicker.regional[ "ja" ] );
$( "#departureDatePicker" ).datepicker({buttonImageOnly : true, changeMonth: true, changeYear: true, showOn: "button", buttonImage : "/images/common/icon_calendar.png"
, onSelect: function(dateText, inst) {var dates = dateText.split('/');$deptY.val(dates[0]);$deptM.val(parseInt(dates[1]));$deptD.val(parseInt(dates[2]));}
, beforeShow: function(input, inst) {var calendar = inst.dpDiv;setTimeout(function() {calendar.position({my: 'left top', at: 'left top', of: '#keysearch'});}, 1);}});
$("#calendar").on('click', function(event){ $( "#departureDatePicker" ).datepicker("show"); });
});