$(document).ready(function(){

	$('input').each(function(){
		if($(this).attr('value') == 'Add To Cart'){
			$(this).parents('tr').prev('tr').find('a').addClass('cartTitle');
		}
	});
	
	$('a[onclick*="ViewCartForm"]').addClass('viewCart');
	
	$('table td[colspan=5]').html('<div class="VA_dashedLine"></div>');
	
	$('table tr td[colspan=2] a').each(function(){
		if($(this).text() == 'Checkout'){
			var thePage = location.pathname;
			thePage = thePage.substr(1);
			$(this).text('CC Order');
			$(this).after('&nbsp;|&nbsp;<a href="Email-Order-Form?p='+thePage+'" title="checkout">Cheque/Wire Order</a>');
		}
	});
	
});
