/*
DolceGusto ScriptableCheckout Frontend Library
Created by: Charlie Poladura
*/
function evaluateShownShippingMethods() {
	var carrier = $('#shippingcarrierselect').val();
	$('input.radio[value=318]').parents('tr:first').hide();   
	if(carrier == 'nonups' && $("input.radio:visible").length == 0){
    	showUPSList();
	}	
}
 
function showNonUPSList() {
	try{
		if($('#shippingcarrierselect').val() != 'nonups'){
			$('#shippingcarrierselect').val('nonups');
			shippingSelectOnChange();
		}
	}catch(x){}
}

function showUPSList() {
	try{
		if($('#shippingcarrierselect').val() != 'ups'){
			$('#shippingcarrierselect').val('ups');
			shippingSelectOnChange();
		}
	}catch(x){}
}

