$(document).ready(function(){

	// HEADER SLIDESHOW - JQUERY CYCLE

	$('.sliderItems').cycle({ 
   		fx: 'scrollLeft',
   		next: '#slider p .next',
   		speed:         1000, 
    	prev: '#slider p .previous'
	});	


	// NEWS TICKER IN THE SIDEBAR
	
	var first = 0;
	var speed = 700;
	var pause = 3500;
	
		function removeFirst(){
			first = $('ul#list-ticker li:first').html();
			$('ul#list-ticker li:first')
			.animate({opacity: 0}, speed)
			.fadeOut('slow', function() {$(this).remove();});
			addLast(first);
		}
		
		function addLast(first){
			last = '<li style="display:none">'+first+'</li>';
			$('ul#list-ticker').append(last)
			$('ul#list-ticker li:last')
			.animate({opacity: 1}, speed)
			.fadeIn('slow')
		}
	
	interval = setInterval(removeFirst, pause);
	
	// REMOVE BORDERS FROM LAST ITEMS IN LISTS 
	
	$("#bottom ul#bottom-nav li a:last, #bottom ul#bottom-privacy li a:first").css("border-right", "none");
});
