$(document).ready(function() {
	// Global ish
	$('td.rightnav-col').remove();
	$('table#topbar').remove();
	$('td.leftnav-col').prepend('<div style="position:relative;"><a href="/"><img src="/images/dcfc_leftnav_logo.gif" width="158" height="143" alt="Death Cab For Cutie." border="0" id="leftnav-logo" /></a></div>');
	$('table.leftnav td.bg').parent().remove();
	$('td[width=10]').remove();
	$('img[width=165]').attr({'width':'158'});
	$('a.v').remove(); // remove extra privacy policy link
	$('td.f').remove(); // remove spacer graphic
	$('table.s').hide(); // hide search box
	
	// Home page
	var mainContent = $('td#line2').next().children();
	$('td#line2').next().children('div').addClass('featuredProduct');
	//$('div.featuredProduct:eq(2) table table td.g').css({'border-top':'1px dotted #333','padding-bottom':'15px'});
	
	// Category page
	$('td.line').height(10);
	$('table#page-title').remove();
	$('div#sortBy').next().addClass('productList');
	$('div#sortBy').next().attr({'width':'575'});
	
	// Product page
	$('td#line2').next('td[width=16]').next().children('table:first').addClass('product');
	$('td#line2').next('td[width=16]').next().children('table:first').attr({'width':'575'});
	$('td#line2').next('td[width=16]').remove();
	$('div.dd table[cellpadding=2]').attr({'cellpadding':'0'});
	$('td#breadcrumbs').parent().remove();
	//$('td#description').parent().prev().remove();
	//$('td#description').parent().prev().remove();
	//$('td#description').parent().remove();
	$("table.product tr td.fg1:contains('Customer Reviews:')").parent().next().next().remove();
	$("table.product tr td.fg1:contains('Customer Reviews:')").parent().next().remove();
	$("table.product tr td.fg1:contains('Customer Reviews:')").parent().remove();
	$("table#productDetails_1 tr:contains('Average Customer Rating')").remove();
	$('span.thirdPartyWarning').prepend('<br />');
	// Update button graphics
	//$('img.wba_add_to_cart_btn').attr({'src':'/images/dcfc_addtocart.gif'});
	//$('input.wba_add_to_cart_btn').attr({'src':'/images/dcfc_addtocart.gif'});
	$('img.wba_search_btn').attr({'src':'/images/dcfc_btn_go.gif'});
	//$('img[title=Details]').attr({'src':'/images/dcfc_btn_details.gif'});
	//$('img#secureCheckoutTopImg').attr({'src':'/images/dcfc_btn_begincheckout.gif'});
	//$('img#secureCheckoutBottomImg').attr({'src':'/images/dcfc_btn_begincheckout.gif'});
	
	// Shopping Cart
	$('td.fg1:contains(Shopping Cart)').parent().parent().parent().addClass('productList');
	$('td.fg1:contains(Shopping Cart)').parent().parent().parent().attr({'width':'575'});
	$('tr.itemInfo').attr({'bgcolor':''});
	$('table#cartTotals tr[bgcolor=#ffffff]').attr({'bgcolor':''});
	
	// Other pages
	$('td.leftnav-col').next().next().children('table').addClass('productList').attr({'width':'575','cellpadding':'10'})
	
	// Update star graphics
	$('div.stars-0-0 img').attr({'src':'/images/dcfc_stars_0_0.gif'});
	$('div.stars-0-5 img').attr({'src':'/images/dcfc_stars_0_5.gif'});
	$('div.stars-1-0 img').attr({'src':'/images/dcfc_stars_1_0.gif'});
	$('div.stars-1-5 img').attr({'src':'/images/dcfc_stars_1_5.gif'});
	$('div.stars-2-0 img').attr({'src':'/images/dcfc_stars_2_0.gif'});
	$('div.stars-2-5 img').attr({'src':'/images/dcfc_stars_2_5.gif'});
	$('div.stars-3-0 img').attr({'src':'/images/dcfc_stars_3_0.gif'});
	$('div.stars-3-5 img').attr({'src':'/images/dcfc_stars_3_5.gif'});
	$('div.stars-4-0 img').attr({'src':'/images/dcfc_stars_4_0.gif'});
	$('div.stars-4-5 img').attr({'src':'/images/dcfc_stars_4_5.gif'});
	$('div.stars-5-0 img').attr({'src':'/images/dcfc_stars_5_0.gif'});
	$('div.stars-5-5 img').attr({'src':'/images/dcfc_stars_5_5.gif'});
	$("img[src*=['stars-0-0']").attr({'src':'/images/dcfc_stars_0_0.gif'});
	$("img[src*=['stars-0-5']").attr({'src':'/images/dcfc_stars_0_5.gif'});
	$("img[src*=['stars-1-0']").attr({'src':'/images/dcfc_stars_1_0.gif'});
	$("img[src*=['stars-1-5']").attr({'src':'/images/dcfc_stars_1_5.gif'});
	$("img[src*=['stars-2-0']").attr({'src':'/images/dcfc_stars_2_0.gif'});
	$("img[src*=['stars-2-5']").attr({'src':'/images/dcfc_stars_2_5.gif'});
	$("img[src*=['stars-3-0']").attr({'src':'/images/dcfc_stars_3_0.gif'});
	$("img[src*=['stars-3-5']").attr({'src':'/images/dcfc_stars_3_5.gif'});
	$("img[src*=['stars-4-0']").attr({'src':'/images/dcfc_stars_4_0.gif'});
	$("img[src*=['stars-4-5']").attr({'src':'/images/dcfc_stars_4_5.gif'});
	$("img[src*=['stars-5-0']").attr({'src':'/images/dcfc_stars_5_0.gif'});
	$("img[src*=['stars-5-5']").attr({'src':'/images/dcfc_stars_5_5.gif'});

});
