jQuery.extend({
	homeSections: function() {
		$("#home-sections li").each(function(){
			$(this).click(function(){
				location.href = $('h2 a', this).attr('href');
			}).hover(function() { // :hover li's - add class for ie 6 styling 
			  	$(this).addClass('li-hover');
			  }, function() {
			  	$(this).removeClass('li-hover');
			  }).tooltip({
					track: true,
					delay: 0,
					showURL: false,
					fade:true,
					left: 20
				});
		});
	},
	
	setJcarousel:function() {
		$(".carousel").jCarouselLite({
		    btnNext: ".carousel .next",
		    btnPrev: ".carousel .prev",
		    visible: 2,
			scroll: 2,
			easing: "easeOutSine",
			auto:4000,
		    speed: 600
		}).children('.prev, .next').hover(function(){
			src = $(this).attr('src').replace('.gif',"-over.gif");
			$(this).attr("src",src);
		}, function(){
			src = $(this).attr('src').replace('-over.gif',".gif");
			$(this).attr("src",src);
		});

		$('.prev, .next').css({ 'display':'block','margin-top':'10px'});
		$('.carousel').css({ 'padding': '0 0 0 11px' });
		$('.carousel ul li p, .carousel ul li h4').css({ 'padding': '0 10px' });
	}
	
});
	

$(function(){
	jQuery.homeSections();
	jQuery.setJcarousel();
});

