
// Tabs ----------------------------------------------
$(function() {
	$("#tabs").tabs({fx: {height: "toggle"}});
});

// Gallery ----------------------------------------------

$(function(){	
	$("#pics_gallery").easySlider({
		auto: true, 
		continuous: true,
		controlsShow: false,
		pause:			3000
	});	
});	

// Accordion
/*
$(function ()
{
	var dls=$("div#content8203948 dl");

	dls.each(function(index)
	{ 
		var current=$(this);
		
		$("dt", this).each(function()
		{ 
			//if (index!=0)
			$("dd", current).hide(); 

			$(this).click(function()
			{ 
				$("dd", dls).slideUp('fast');
				$("dd", current).slideToggle('fast');
				return false; 
			}); 
		}); 
	}); 
});
*/
// Media Slide -----------------------------------------------

$(function ()
{
    var container = $('div.sliderGallery');
    var ul = $('ul', container);
    
    var itemsWidth = ul.innerWidth() - container.outerWidth();
    
   	$('.slider', container).slider({
        minValue: 0,
        maxValue: itemsWidth,
        handle: '.handle',
        stop: function (event, ui) {
            ul.animate({'left' : ui.value * -15}, 500);
        },
        slide: function (event, ui) {
            ul.css('left', ui.value * -15);
        }
    });
});

// LightBox -----------------------------------------------

$(function() {
	$('div.sliderGallery ul li a').lightBox({
		overlayBgColor: 		'#D3DF79',
		overlayOpacity:			0.7,		// (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
		imageLoading:			'/assets/images/lightbox/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
		imageBtnPrev:			'/assets/images/lightbox/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
		imageBtnNext:			'/assets/images/lightbox/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
		imageBtnClose:			'/assets/images/lightbox/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
		imageBlank:				'/assets/images/lightbox/lightbox-blank.gif',			// (string) Path and the name of a blank image (one pixel)
		txtImage:				'画像',	
		txtOf:					'の'
	});
});
