$(document).ready(function(){
	$('#TopMenu li:last-child').css('border','none');
	
	$('#Menu li:last-child').addClass('last');
	
	$('.category-listing #SideCategoryList h2').css("display","none");

	$('#cycle').cycle({
		fx: 'fade',
		timeout: 15000
	});
	
	//HIDE 4+ RELATED PRODUCTS
	$("#LayoutColumn2 #SideProductRelated li:gt(2)").css("display","none");
	
	function textReplacement(input){
		var originalvalue = input.val();
		input.focus( function(){
			if( $.trim(input.val()) == originalvalue ){ input.val(''); }
		});
		input.blur( function(){
			if( $.trim(input.val()) == '' ){ input.val(originalvalue); }
		});
	}

	textReplacement($('#search_query'));
	textReplacement($('#nl_first_name'));
	textReplacement($('#nl_email'));
	
	$('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
		limit: 1,
		header: false,
		date: false,
		snippet: true,
		content: false
	});

//	jCarouselLite example -- you will need to add a <div class="ProductListContainer"> around the <ul>
//	in the HomeFeaturedProducts Panel

//	$("#HomeFeaturedProducts .ProductListContainer").jCarouselLite({
//        btnNext: "#featured-next",
//        btnPrev: "#featured-prev",
//		visible: 5,
//		scroll: 5,
//		speed: 800
//    });
	
//	$('a.fancybox').fancybox();

});
