﻿/*slideshow*/
$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  2000,
        timeout: 7000,
        pager:  '.controls',
		slideExpr: 'div.slide',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '.controls li:eq(' + (idx) + ') a';
        }
    });
});

/*highlight*/
$(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('.nav a[href$="' + path + '"]').attr('class', 'current');
 });
 
 
 /*Carousel*/
 $(function() {
    $("#rotator .jCarouselLite").jCarouselLite({
        btnNext: "#rotator .next",
        btnPrev: "#rotator .prev",
        visible: 5,
        auto: 3000,
        scroll: 1,
        speed: 500
    });
});



