jQuery.noConflict();
jQuery(document).ready(function($){
	check_horiz_width=function()
	{
		$(function(){
			$('.horiz').each(function(){
				$this = $(this);
				var new_w = 0;
				$this.find('#worktextouter').each(function() {
					  var $text = $(this);
					  //new_w += $text.width() + parseInt($text.css('marginLeft'), 10) + parseInt($text.css('marginRight'), 10) + 10;
					  new_w += parseInt($text.css('width'), 10) + parseInt($text.css('marginLeft'), 10) + parseInt($text.css('marginRight'), 10) + 10;
				});
				$this.find('img').each(function(){
					var $img = $(this);
					//new_w += $img.width() + parseInt($img.css('marginLeft'), 10) + parseInt($img.css('marginRight'), 10) + 10;
					new_w += parseInt($img.css('width'), 10) + parseInt($img.css('marginLeft'), 10) + parseInt($img.css('marginRight'), 10) + 10;
				});
				var w = $this.width();
				$this.css({width: new_w+'px'});
				//$('#doc').css({width: new_w});
			});
		});
		//setTimeout(check_horiz_width, 5000);
	}
	check_horiz_width();
	setTimeout(check_horiz_width, 100);
	setTimeout(check_horiz_width, 500);
});
