$(document).ready(function() {

	//BROWSER TEST
	//var browserName = $.browser.name;

	//if (browserName == "firefox") {
		//$("div.left-column div.bottom").css("marginTop","0px");
	//}
	
	$("div.main-content p:last").css("marginBottom","0px");
	
	$("div.wines div ul li.soldout a").remove();
	
	$("div.wines div div ul li:not(.soldout)").hover(
		function() {
			$(this).css('cursor: pointer');
			$(this).children("a").fadeIn("fast");
		},
		function() {
			$(this).css('cursor: auto');
			$(this).children("a").fadeOut("fast");
		}
	);
	
	$("div.wines ul li a").click(function() {
		var curr_wine = $(this).attr("class");
		$("div.tasting-notes").fadeIn("fast");
		$("div.tasting-notes ul li." + curr_wine).fadeIn("fast");
		return false;
	});
	
	$("div.tasting-notes ul li span.backtolist a").click(function() {
		$("div.tasting-notes ul li").fadeOut("fast");
		$("div.tasting-notes").fadeOut("fast");
		return false;
	});
	
	$("div.tasting-notes table tr td:even").css("backgroundColor","#c4af86");
	
});