jQuery(document).ready(function(){
    
    jQuery('#main_slide_show').loopedSlider({
        containerClick: false,//Click slider to goto next slide? true/false
        autoStart: 5000
    });
   // jQuery("div.footer-nav:last ul li").addClass("last-li");

   jQuery(".popularwork-data .popularwork:even").addClass("popularworkodd");
   jQuery(".popularwork-data .popularwork:odd").addClass("popularworeven");

});



jQuery(function() {
    jQuery('#slideshow').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 0,
        after: setWidth,
        before: setWidth,
        pager:  '#slider_nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#slider_nav li:eq(' + (idx) + ') a';
        }
    });
});

function setWidth() {
    jQuery('.slider-item').css({width : '100%'});
}

jQuery(function() {
    jQuery('#featured_items').cycle({
        fx:     'scrollHorz',
		easing: 'backinout',
        timeout: 0,
        pager:  '.content_nav',
        cleartypeNoBg:  true,
        pagerAnchorBuilder: function(idx, slide) {
            return '.content_nav li:eq(' + (idx) + ') a';
        }
    });
});

jQuery(function() {
    jQuery('#latest_content_items').cycle({
        fx:     'scrollHorz',
		easing: 'backinout',
        timeout: 0,
        pager:  '.content_nav1',
        cleartypeNoBg:  true,
        pagerAnchorBuilder: function(idx, slide) {
            return '.content_nav1 li:eq(' + (idx) + ') a';
        }
    });
});



jQuery(function() {
    jQuery('#tab_slider').cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 0,
        pager:  '#main_content_slider',
        cleartypeNoBg:  true,
        pagerAnchorBuilder: function(idx, slide) {
            return '#main_content_slider li:eq(' + (idx) + ') a';
        }
    });
});