$(function() {
	$('#images').cycle({
		fx: 'fade',
		pause: 1,
		//random: true,
		next: '#images img'
	});

	$('#range-item').cycle({
		fx: 'fade',
		pause: 1,
		random: 1
	});

	$('#about').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        pager: '#about-navigator',
		pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            return '#about-navigator li:eq(' + (idx) + ') a';
        }
    });

    $('#direct').click(function() {
        $('#about-navigator li:eq(2) a').triggerHandler('click');
        return false;
    });

	$('#range-item-container').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        pager: '#range-item-tab',
		pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            return '#range-item-tab li:eq(' + (idx) + ') a';
        }
    });

    $('#direct').click(function() {
        $('#range-item-tab li:eq(2) a').triggerHandler('click');
        return false;
    });

	$('#range-2').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        pager: '.thumb-range',
		pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            return '.thumb-range li:eq(' + (idx) + ') a';
        }
    });

    $('#direct').click(function() {
        $('.thumb-ranger li:eq(2) a').triggerHandler('click');
        return false;
    });

});
