function startQuickview() {
	// WHEN PAGE LOADS
	$(".buy-tab").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".buy-tab:first").show(); //Show first tab content
	$("#prodselection").hide();

	// ON CLICK
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".buy-tab").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

	// SIZE SELECTION
	$(".buy-tab td.avail1, .buy-tab td.avail2, .buy-tab td.avail4").click(function() {
		$("td.selected").removeClass("selected");
		$(this).addClass("selected");
		
		theLineID = $(".tdlineid",this).text();
		theSize   = $(".tdsize",this).text();
		theColour = $(".tabs li.active").text();
		
		$("#LineID").val(theLineID);
		$("#SizeID").val(theSize);
		$("#ColourID").val(theColour);
		$("#prodselection").show();
		$("#prodcoloursize").text(theSize + " in " + theColour);
	});

	$("#prodimages img").mouseover(function() {
		$(this).css("cursor","pointer");
	}).click(function() {
		newImg = $(this).attr("src").replace(/sweb/,"lweb");
		
		$("<img />").attr("src",newImg).load(function() {
			$("#mainimage").fadeOut(function() {
				$("#mainimage").attr("src",newImg).fadeIn();
			});
		});
	});;

	$("#addthis").click(function() {
		// NEED TO MAKE SURE THEY ACTUALLY PICKED SOMETHING
		if ($("#SizeID").val() == "0") {
			alert("You need to pick a size first");
			return false;
		} else {
			// COOL.
			return true;
		}
	});
}
