$().ready(function() {
	$("#memberLogin").colorbox();

	$('.moreinfolink').bind('click', function() {
		$('.additionalContent').toggle('fast', function() {});
		

		
		$('.lessinfolink').show();
		$(this).hide();
		});
		
	$('.lessinfolink').bind('click', function() {
		$('.additionalContent').toggle('fast', function() {});
		$('.moreinfolink').show();
		$(this).hide();
		});
	
	$('#LoggedIn').bind('click', function() {
		$.post('/includes/loginProcess.php',{ logout: "true"}, function(data) {
			$('#notLoggedIn').show();
			$('#LoggedIn').hide();
		});

		});
		
		
	

		
		
	$('#sideCart').show();
	
	// add to cart function
	$('#add').bind('click', function() {
			$.post("/pages/components/sidecart.php", $("#productadd").serialize(), function(data) {
			$('#sideCart').slideUp({easing:"easeOutExpo"});
			$('.sideCartWrapper').show();
			$("#sideCart").html(data);
			$('#sideCart').slideDown({easing:"easeOutExpo"});
			});
		});
	
/*
	$('.removethis').bind('click', function() {
			if(confirm("Are you sure you would like to remove this item?")){
			var theid = $(this).attr("id");
			$.post('/pages/components/sidecart.php',{ price_id: theid, action:"remove"}, function(data) {
					
			$('#cartarea').load('/pages/components/cart_calculator.php');
		
			
				});
			}
		});
	
*/
	
	
	});
	
	function showtopcart(){
	$('#sideCart').load('/pages/components/sidecart.php');
	$('#sideCart').show();
	
	}
	
	
	
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
/* 	$("ul.tabs li:first").addClass("active").show(); //Activate first tab */
/* 	$(".tab_content:first").show(); //Show first tab content */



	//On Click Event
	$("ul.tabs li").click(function() {
	$("ul.tabs").css('border-bottom','1px solid #ccd6d3');
	$(".tab_container").css('border-bottom','1px solid #ccd6d3');
	$(".tab_container").css('border-left','1px solid #ccd6d3');
	$(".tab_container").css('border-right','1px solid #ccd6d3');
	
	


		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("title"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});	
