/* HOMEPAGE SLIDER */
$(function() {
    $('#homepage_slider')
	.cycle({
        fx:     'fade',
    	speed:  'slow',
    	timeout: 7000,
    	next:   '.feature_next',
    	prev:   '.feature_prev',
        pager:  '.feature_nav',
		pagerAnchorBuilder: function(index, el) {
        return '<a href="#">&nbsp;</a>'; //hides text
 		}
    });
});

//$.fn.splitUp=function(splitBy,wrapper){
//    $all= $(this).find('>*');
//    var fragment=Math.ceil($all.length/splitBy);
//    for (i=0;i<fragment;i++)
//        $all.slice(splitBy*i,splitBy*(i+1)).wrapAll(wrapper);
//    return $(this);
//}

/* HOMEPAGE SUB FEATURE */

//$(function() {
//$('#home_promos')
//	.splitUp(3,'<li>')
//	.cycle({ 
//    fx:     'scrollHorz', 
//    prev:   '.carousel_prev', 
//    next:   '.carousel_next',
//    timeout: 9000,
//	speed:  'slow',
//	pause: 1 //carousel pause on hover
//});
	
	

	
	




