// jsCycle.js
	
//var rand = Math.floor(Math.random()*4);	
$(function() {
    // run the code in the markup!
   	eval($('#banner')
        .cycle({
			fx:    'scrollLeft',
			speed:  2500,
			timeout:  8000,
            pager:  '#pages',
			next:   '#next', 
    		prev:   '#previous'
			//startingSlide: rand
    }));
});	
	
function pause() { 
	$('#banner').cycle('pause');
}
  
/* Legacy code removed due to incompatibility with addEventListener and IE

function bannerListeners() {
	var prev = document.getElementById("previous"); 
	prev.addEventListener('click', pause, false);
	var next = document.getElementById("next"); 
	next.addEventListener('click', pause, false);
}

window.addEventListener('load', bannerListeners, false);*/