// JavaScript slider */

$(document).ready(function() {
    $("#slideshow").css("overflow", "hidden");
    $("ul#slides").cycle({
	fx: 'scrollHorz',
	prev: '#prev',
	next: '#next',
    cleartype: 1,
    timeout: 6000,
    pause: true,
	before: function() {
        $('#slideshow .caption').css({opacity: '0.5'}).slideUp(600);
    },
    after: function() {
      $('.caption', this).css({opacity: '0.9'}).slideDown(600);
    }
    });



    $("#slideshow").hover(function() {
	$("ul#nav").fadeIn();
	},

    function() {
	$("ul#nav").fadeOut();
	});

    });

    function pagerFactory(idx, slide) {
        var s = idx > 2 ? ' style="display:none"' : '';
        return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
    };
