$(function() {
		
	/*********************
		Shopping cart buttons
	\*/
	$('#cartbuttons .btn_checkout')
		.removeClass('btn_checkout')
		.addClass('gradbutton green')
		.click(function() {
			if ((typeof _gaq != 'undefined')) {
				_gaq.push(['_trackEvent', 'Shop Cart', 'Click button checkout', location.pathname.replace( '/index.cfm', '' )]);
			}		
		});;
		
	$('#cartbuttons .btn_keepshopping')
		.removeClass('btn_keepshopping')
		.addClass('gradbutton gray')
		.click(function() {
			if ((typeof _gaq != 'undefined')) {
				_gaq.push(['_trackEvent', 'Shop Cart', 'Click button keep shopping', location.pathname.replace( '/index.cfm', '' )]);
			}		
		});
		
	$('#cartbuttons .btn_update')
		.removeClass('btn_update')
		.addClass('gradbutton blue updatecartbtn')
		.hide()
		.click(function() {
			if ((typeof _gaq != 'undefined')) {
				_gaq.push(['_trackEvent', 'Shop Cart', 'Click button update cart', location.pathname.replace( '/index.cfm', '' )]);
			}		
		});
		//.fadeOut();
		//.attr({'disabled': true});
		
	$('#cartbuttons .btn_clear').hide();
	
	/*\
		Shopping cart buttons
	\********************/
	
	/*********************
		Login form
	\*/
	$('#shop #loginform')
		.prepend('<h2>Returning customers, please log in here</h2>')
	;
	$('#shop #loginform .createnewaccountbtn')
		.addClass('gradbutton orange')
		.width(220)
		.css({'margin-top': '20px'});
	/*\
		Login form
	\********************/
	
	
	/*********************
		PRODUCT LIST IN CATEGORY
	\*/
	//$('#shop .button input:image').addClass('gradbutton green').append('Add to cart');
	
	/* V2, not ready for PRD
	$('#shop .addtocartbtn').addClass('gradbutton white').prepend('Add to cart &nbsp;');
	
	$('#shop .quantityselect').hide();
	
	$('#shop .oldprice').prepend('List price: ');
	
	$('#shop .discount + .price').prepend('Price: '); V2, not ready for PRD */
	
	//$('#shop .button').addClass('gradbutton white');
	//$('#shop .addtocartbtn').prepend('Add to cart &nbsp;');
	/*\
		PRODUCT LIST IN CATEGORY
	\********************/
	
	/*********************
		PRODUCT INFO IN DETAIL VIEW
	\*/
	//$('#shop #productprice');
	/*\
		PRODUCT INFO IN DETAIL VIEW
	\********************/
		

});

setCartHasChanged = function() {
	cartHasChanged = true;
	$('#cartbuttons .updatecartbtn').fadeIn('fast');
} 
