var show = "0";

function hideIt() { // this is too hide the button with javascript immediately on load without waiting for ajax, setting the button hidden by default with html will stop folks with javascript disabled from EVER seeing the button
	if (show == "0") {
		document.getElementById("cartButton").style.display = "none";
	} else {
		document.getElementById("cartButton").style.display = "block";
	}
}

function viewCart() {	
	var ths = '1';
	DWREngine._execute(_sabreFunctions, null, 'checkCart', ths, hasCart);
}

function hasCart(some) {
	if (some == "1") {
		document.getElementById("cartButton").style.display = "block";
	} else {
		document.getElementById("cartButton").style.display = "none";
	}
}

function init()
		{
			DWREngine._errorHandler =  errorHandler;
		}