$(document).ready(function(){
	if ($().cycle){
		
		var slidecount=$("#slideshow > div.slide").length;
		var randomnumber=Math.floor(Math.random()*1000000)%slidecount;

		$('#slideshow ').cycle({
			fx: 'fade',
			startingSlide:randomnumber, 
			speed: 1000,
			timeout: 4000,
			pager: '#pager'
		});

	}	
	
 	//removes divider from the last element of the nav
	$('#nav ul.nav1>li:last-child').css('border-right' , 'none');
 	
	
	$('#footer_nav ul>li:first-child').css('padding-left' , 0);
	
});
