// Changes Shopping Cart summary text: Remove total amounts and change to View Order
function updateSummary() {
	if ($('td.cartSummaryItem').length) {
		var regexp = /\s.*(?= <a)/;
		var newCartText = $('td.cartSummaryItem').html().replace(regexp," tons/yards ordered");
		$('td.cartSummaryItem').html(newCartText);
		var cartRep = $('.cartSummaryLink');
		cartRep.html(cartRep.html().replace("View Cart","View Order"));
		}
	}

function cufonUpdate() {
	Cufon.replace('h1');
	Cufon.replace('h2',{hover:true});
	Cufon.replace('h3');
	Cufon.replace('h4');
	Cufon.replace('#phone');
	Cufon.replace('#address');
	Cufon.replace('.testimonial');
	Cufon.replace('.attribution');
	Cufon.replace('#nav');
	Cufon.replace('#siteswitch a',{hover:true});
	}

function buttonUpdate() {
	$('input.productSubmitInput').addClass('awesome');
	$('a#catshopquote').addClass('large awesome');
	$('a#catshopclear').addClass('small awesome');
	}
	
function shippingDefault() {
	if ($("#ShippingOptions option:selected").val() == -1 || !$("#mySelect option:selected").length) {
	$("#ShippingOptions option[value='78133']").attr('selected', 'selected');
	}
}

function shippingUpdate() {
    var sel = document.getElementById('ShippingOptions')
    for(var i=sel.options.length-1;i>=0;i--) {
        if(sel.options[i].value == "78133") 
        sel.options[i].text = "Delivery (Get quote)";
        if(sel.options[i].value == "78132") 
        sel.options[i].text = "Pickup (Get quote)";
    }
}