$(function() {

	$('div#showcasePreview').filter(function() {
		$(this).cycle({
		    fx:     'scrollLeft',
				pause:   1,
				timeout: 2500 
		}); 
	});
	if($('#country').val() == '') {
		$("#item-postalcode").hide();
	}
	else if($('#country').val() == 'US') {
		$("#item-postalcode").show();
	}
	
	$('#country').change(function() {

		if($(this).val() == '') {
			$("#item-postalcode").css("display","none");
			$('#postal_code').val('');
			return;
		}
		else if($(this).val() == 'US') {
			$("#item-postalcode").css("display","block");
			$('#postal_code').val('');
			return;
		}
		
		$("#item-postalcode").css("display","none");
		$('#postal_code').val('');
	});
	
	$(".imageContainer").filter(function() {
		$(this).hover(function(){
			$(this).addClass("imageContainerHover");
		}, function (){
			$(this).removeClass("imageContainerHover");
		});
	});
	
/* FUCKING useless shit.
	$("span.next").click(function() {
		user_topics_replies($("div." + which_tab + " a:eq(" + (paging_page) + ")").attr("name"));
	});
	
	$("span.previous").click(function() {
		user_topics_replies($("div." + which_tab + " a:eq(" + (paging_page-2) + ")").attr("name"))
	});

    $(function(){
        $("#search-results li").quickpaginate({perpage:10, showcounter: true, pager : $("#paging") });
    });
*/
});
