$(document).ready(function(){
	// Add Inner div
	$('#container').wrapInner("<div id='containerInner'></div>");
	// Replace ul with table -- more cross browser friendly
	var tr = $("<tr valign='top' />");
	var table = $("<table id='pageLayout' cellpadding='0' cellspacing='0' />").append(tr);

	$.each( $("ul#pageLayout").children(), function(i,item){
		var td = $("<td/>")
		.	attr('id', $(item).attr('id') )
		.	html( $(item).html() )
		;
		
		tr.append( td );
	});

	$("ul#pageLayout").after( table );
	$("ul#pageLayout").remove();
	
	$("table#pageLayout tr td:first-child").addClass("first");
	$("table#pageLayout tr td:nth-child(2)").addClass("second");
	$("table#pageLayout tr td:last-child").addClass("last");
	
	$("table#pageLayout").wrap("<div id='carriersContainer'></div>");
	
	// Add class first to first <p>
	$("#whiteBkgdShippers p:first").addClass("first");
	$("#whiteBkgdCarriers p:first").addClass("first");
	$("#col2bottom p:first").find("span").addClass("first");
	
	// Add arrow before click to inquire link
	$('div#col2top p a').before("<img src='images/arrow_carriers.gif' />");
	$('div#col2top_2 p a').before("<img src='images/arrow_shippers.gif' />");
	// Add arrow before link block in bottom of first td
	$('div.link').before("<div id='arrow'></div>");
	
	// remove top margin
	$('div#col2bottom p:first').css("margin-top", 0);
	// add top margin
	$("table#pageLayout tr td:last-child").find('p:first').css("margin-top", "30px");
	
});
