$(document).ready(function() { 
	$("#masthead ul li span").mouseover(function() { 	
			$(this).parent().find("ul").slideDown('fast').show();
			$(this).parent().hover(function() {
			}, function(){	
				$(this).parent().find("ul").slideUp('fast');
			});	
		}).hover(function() { 
			$(this).addClass("subhover"); 
		}, function(){	
			$(this).removeClass("subhover");
	});
	var n = $("#banner img").length;
	var randomnumber=Math.floor(Math.random()*n)
	$('#banner').cycle({speed:1000, timeout: 8000,fx: 'fade',startingSlide: randomnumber});
});