$(document).ready(function(){
	$(".expandable").hover(
		function(){
			$(this).addClass("hover");
		},
		function(){
			$(this).removeClass("hover");
		}
	);
	
	//random start for carousel
	//count number of elements in the carousel.
	var count = 0;
	$(".carousel ul li").each(
		function()
		{
			count++;
		}
	);
	
	//generate random number to start carousel on.
	rand = Math.floor(Math.random()*count);
	if(rand < 0){rand = 0;}
	else if(rand > count-1){rand = count -1;}
	
	$(".carousel").jCarouselLite({
        btnNext: ".jcarousel-next",
        btnPrev: ".jcarousel-prev",
		visible: 1,
		auto: null,
		start: rand
    });
	
	$('.search-results li:odd').addClass('stripe'); 

});