


 
// DOM Loaded 
jQuery(function(){ 
     
    //init js styles 
    jQuery('body').addClass('hasJS'); 
     
	 
    // homepage cycles 
    jQuery('#feature_gallery .bigimg').wrapAll('<div class="bigimgs">').parents('#feature_gallery').after('<ul class="menu" id="feature_gallery_pager">').cycle({ 
        fx:'scrollHorz', 
        easing: 'swing', 
        inDelay:    250, 
        drop:       40, 
        timeout:    5000, 
        pause:      true,
		prev:   '#prev', 
		next:   '#next',
		before:  onBefore,
        slideExpr: '.bigimg', 
        pager:      '#feature_gallery_pager', 
      //  pagerAnchorBuilder: function(idx, slide) { 
          
            //return '<li><a href="#"><img src="'+slide.id+'" class="thumb"><span></span></a></li>';  
       // } 
		pagerAnchorBuilder: function(idx, slide) {
                        var name = jQuery(slide).attr('name');
                        return '<li><a href="#"><img src="'+name+'" class="thumb"><span></span></a></li>';
        } 
		
    });

	
jQuery(function() {
    jQuery('#feature_gallery_pager').jcarousel({
        scroll:1
    });
});

	
function onBefore() { 
    jQuery('#output').html("Scrolling image:<br>" + this.id); 
} 	
     
function onBefore() { 
    jQuery('#prev').html("Prev"); 
    jQuery('#next').html("Next"); 
}	 

}); 
 
/* Window load event (things that need to wait for images to finish loading) */ 
//equal heights 

 

