$(document).ready(function(){

	///TESTING AREA ---> REMOVE WHEN LIVE
	
	//$(".featBox").removeAll();
	//$(".qe_tip_article").removeAll();
	//$("#qe_tip_div_2").remove();
	//alert("ists lkd");
	
	/////////////////////////////////////
	
	$("#content_area > img").remove();
	
	$("#content_area > table > tbody > tr").attr("id","tblTr");
	$("#tblTr > td:eq(1)").attr("id","tblTd");
	
	$("#tblTd > table:eq(0)").attr("id","tblA");
	$("#tblA > tbody > tr > td").remove(); 
	
	
	$("#tblTd > table:eq(1)").attr("id","tblB");
	$("#tblB").css({'border':'1px solid #d1d1d1'});
	
	$("#tblTr > td:eq(3)").attr("id","clearPix");
	$("#clearPix > img").remove();
	$("#clearPix > br").remove();
	$("#clearPix").css({"padding-left":"3px"});
	
	$("#tblB").removeAttr("cellspacing");
	
		
	$("#tblB > tbody > tr > td > table").attr("id","featProdDetails");
	$("#tblB").attr("cellpadding","5");
		
	//$("#featProdDetails  tbody  tr  td:eq(2)").attr("class","featProdImg");
	
	// Delete Strange td to left of content
	$("#tblTr > td:eq(0)").remove();
	$("#tblTr > td:eq(1)").remove();
	
	// Delete Breaks at bottom of content area
	$("#tblTd > br").remove();

	$("#featProdDetails > tbody > tr:eq(3)").attr("id","trDividerImg");
	$("#trDividerImg > td > img").css({"height":"16px"});

	//better spacing in featured product. May need to add lines of code to deal with extra featured products
	//$("#featProdDetails > tbody > tr:eq(1)").attr("id","featProdTr1");
	//$("#featProdTr1 td").css({'padding':'5px 15px 3px 5px'}); //,'text-align':'justify'
//$("#featProdDetails > tbody > tr:eq(5)").attr("id","featProdTr5");
	//$("#featProdTr5 td").css({'padding':'5px 15px 3px 5px'}); //,'text-align':'justify'
		
	//$("#clearPix table tbody tr:firstChild").attr("class","featBox");
	$("#clearPix > table > tbody > tr:first-child").attr("class","featBox");
	$(".featBox > td").attr("height","31");
	
	$(".featBox:first").next().attr("id","superD1");
	$("#superD1 > td:eq(1)").attr("id","superD2");
	$("#superD2 > table > tbody > tr > td > table > tbody").attr("id","superD3");
	$("#superD3 > tr:last").remove();
	$("#superD3 br").remove();

	//Wrap Welcome to fix dimensions
	$("#tblTd > b,#tblTd > font").wrapAll("<div id='welcText'></div>");
	$("#tblTd > img:first").remove();
	
	//find vert dividers and change
	$("td[background*='Grid_Divider_Vertical.gif']").each(function(i){
		$(this).attr("background","/v/vspfiles/templates/MainTemp/images/Grid_Divider_Vertical2.gif");
	});
});
