$(document).ready(function() {
	// find all instances of images under .document-top and make them background images inside divs
	// this, to avoid pushing the width of the site.
	/*
	$(".document-top img").each(function(i){
		//alert($(this).attr("src"));
		//alert($(this).attr("height"));

		// replace with a div
		$(this).replaceWith("<div class='document-image' style='background:url(" + $(this).attr("src") + ") no-repeat;height:" + $(this).height() + "px;width:" + $("#mid").width()+ "px'>&#160;</div>");

	});
	*/

	// attach window resize event to jquery
	$(window).bind("resize", resizeWindow);
});

// what happens when we resize browser window? 
function resizeWindow()
{
	// resize width of document-images
	/*
	$(".document-image").each(function(i){
		$(this).width($("#mid").width());
	});
	*/
	$(".content-table").each(function(i){
		$(this).css("width",$("#mid").width());
	});
	
}