//**********************************************************************************************************************************************************************************//
// *** HOME PAGE SCRIPTS CONTENTS ***//
//**********************************************************************************************************************************************************************************//

	//	001. MAIN NEWS Slider	//
	//	002. NEWS SLIDER Script	//

//**********************************************************************************************************************************************************************************//



//**********************************************************************************************************************************************************************************//
// *** MAIN NEWS Slider Script Begin ***//																																		 001
//**********************************************************************************************************************************************************************************//

$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 8000,
        pager:  '#nav',
        pagerAnchorBuilder: function(idx, slide) {
            return '<li><a href="#"><img src="' + (idx) + '/></a></li>';
        }
    });
});

//*** MAIN NEWS Slider Script End ***//









//**********************************************************************************************************************************************************************************//
// *** NEWS SLIDER Script Begin ***//																																			 002
//**********************************************************************************************************************************************************************************//

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#news_slide').jcarousel({
        auto: 6,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});

//*** NEWS SLIDER Script End ***//

