﻿// This next section sets up the fading images for the Sponsors section on the sidebar. 
// SPEED: In milliseconds - how long the transition should take.
// TYPE: Type of slideshow: 'sequence', 'random' or 'random_start'
// CONTAINERHEIGHT: The height of the div that is calling the innerfade method.

// ホームページのバナー用
$(function() {
    $('div#banner_slide').innerfade({
        speed: 1000,
        timeout: 5000,
        type: 'sequence',
        containerheight: '231px'
    });

});


// 愛犬・愛猫フィギュアのメインページのバナー用
$(function() {
    $('div#figure_banner_slide').innerfade({
        speed: 1000,
        timeout: 3000,
        type: 'sequence',
        containerheight: '307px'
    });

});

// 愛犬・愛猫フィギュアのメインページのプロダクト写真用
$(document).ready(
                function(){
                    	$('ul#detail-images').innerfade({
                        speed: 800,
                        timeout: 3000,
                        type: 'sequence',
                        containerheight: 	'130px',
                        slide_timer_on: 	'yes',
                        slide_ui_parent: 	'detail-images',
                        slide_ui_text:		'portfolio-desc',
                       	pause_button_id: 	'pause_button',
                       	slide_nav_id:		'slide_nav'
                    	});
                    	$.setOptionsButtonEvent();
                    
                        
                   		$("#pause_button").click(function() {
                   			$.pause();
                        });
                        $("#next_button").click(function() {
                    		$.next();
                        });
                        
                        $("#prev_button").click(function() {
                        	$.prev();
                        });
                        
                    	$("#first_button").click(function() {
                        	$.first();
                        });
                        
                    	$("#last_button").click(function() {
                        	$.last();
                        });
				
			});
