$(function() {
		  
    $('#slideshow').cycle({
        fx:     'scrollUp',
        speed:  400,
        timeout: 5000,
		autostop: 1,
    	autostopCount: 6,
		pause: 1,
		pauseOnPagerHover: 1,
        pager:  '#nav',
		pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        }
    });
	
	
	$("#slideshow li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	
	
	$("#featureItems li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	
	
	$('#featureItems').jScrollPane({scrollbarWidth:10, scrollbarMargin:0});
	
	
	$("#featureItems li:odd").css({background:'url(/images/global/opaque/40.png) repeat'});

});