$(function(){
	$(".hor-layout").each(function(){
		var $this = $(this);
		var $horLayoutTable = $("<table class='layout-hor-table'><tbody><tr></tr></tbody></table>");
		var $tableRows = $horLayoutTable.find("tr");
		$tableRows.append($this.children().remove());
		$tableRows.children().wrap("<td></td>");
		$this.append($horLayoutTable);
		if($this.hasClass("hor-balloon")){
			$horLayoutTable.css({width:"100%"});
		}
	});
	
})

