$(document).ready(function(){

	$('#Menu li:last-child').addClass('last');

	$('#slideshow').cycle({
		fx: 'fade',
		speed: 1000,
		timeout: 10000
	});

	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'));

//	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();
	$('#CategoryContent .ProductList li').attr({'style':'width:170px;height:250px;'});
	$('#CategoryContent .ProductList li .ProductImage').attr({'style':'width:170px;height:150px;'});
	$('#SuggestiveCartContent .ProductList li').attr({'style':'width:170px;height:250px;'});
	$('#SuggestiveCartContent ul li .ProductImage').attr({'style':'width:200px;height:150px;'});
	//$('#SearchResultsProduct .ProductList li').attr({'style':'width:170px;height:250px;'});
	//$('#SearchResultsProduct ul li .ProductList').attr({'style':'width:200px;height:150px;'});
	$('.SideCategoryListClassic li a:contains("Customized Summit Markers")').attr('href','/pages/Contact-Us.html');
});
