jQuery.noConflict();
jQuery(document).ready(function(){
	if(jQuery('#ticker').children().length > 1){
	  jQuery('#ticker').list_ticker({
		speed: 10000,
		effect:'slide'
	  })
	}		
	
	jQuery(".jCarouselLite").jCarouselLite({	
			auto: 10,
			speed: 200
	});

})


function storeSelect(){
	el = document.getElementById('storeSelect');
	if(el){el.onchange = function(){ location.replace(el.value); }}
}

// jQuery functions ---------------- 

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();
    });
};
