

$(document).ready(function() {
	/*if (flashembed.isSupported([10,0])) {
		var imgBaseURI = $("img.image-viewer").attr("src").replace("http://","").replace("fetch", "download");
		var srcURI = "/mediaviewer/mediaviewer3.swf?imageURL=http%3A%2F%2F" + encodeURIComponent(imgBaseURI);
		var par = $("img.image-viewer").parent();
		//$("img.image-viewer").remove();
		par.flashembed({src: srcURI, w3c: false, allowScriptAccess: "sameDomain", bgcolor: "#ffffff", quality: "high", movie: "http://" + imgBaseURI});
	}*/
	
	var thead = $('thead').height();
	var tfoot = $('tfoot').height();
	var ttable = $('html').height();
	ttable = (ttable - tfoot - thead);
	$('td.lens').attr('height',ttable);
	$('td.lens').css('height',ttable);
	
});

$(window).resize(function(){
	var thead = $('thead').height();
	var tfoot = $('tfoot').height();
	var ttable = $('html').height();
	ttable = (ttable - tfoot - thead);
	$('td.lens').attr('height',ttable);
	$('td.lens').css('height',ttable);
});



