// JavaScript Document
<!--
function printPage(){
	var doc;
	if(document.all&&navigator.userAgent.indexOf("Opera")==-1){
		h = 400;
		w = 600;
		winTop = (screen.height - h - 100) / 2;
		winLeft = (screen.width - w) / 2;
		features = "height="+h+",width="+w+",top="+winTop+",left="+winLeft+",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,titlebar=no";
		strTitel = document.title;
		strContent = document.getElementById('content').innerHTML;
		strContent = strContent.replace(/\40class=right/gi, "");
		strContent = strContent.replace(/\401px\40/gi, " 0px ");
		var	doc = "<html>\n";
		doc += "<head>\n";
		doc += "<title>Print Side\133"+strTitel+"\135<\57title>\n";
		doc += "<link href='/kunst/cms/print.css' rel='stylesheet' type='text/css'>\n";
		doc += "<script language=\42JavaScript\42 type=\42text/javascript\42>\n";
		doc += "\74\41\55\55\n";
		doc += "function resizePic(){\n";
		doc += "	maxWidth = (document.title.indexOf('Værker')==-1)?300:500;\n";
		doc += "	img = document.images;\n";
		doc += "	for(i=0;i<img.length;i++){\n";
		doc += "		pic = new Image();\n";
		doc += "		pic.src = img[i].src;\n";
		doc += "		w = pic.width;\n";
		doc += "		if(w>maxWidth){;\n";
		doc += "			x = w/maxWidth;\n";
		doc += "			img[i].width = Math.round(w/x);\n";
		doc += "			img[i].height = Math.round(pic.height/x);\n";
		doc += "			}\n";
		doc += "		}\n";
		doc += "	}\n";
		doc += "function swap(){\n";
		doc += "	return;\n";
		doc += "	}\n";
		doc += "\57\57\55\55\76\n";
		doc += "<\57script>\n";
		doc += "<\57head>\n";
		doc += "<body onLoad=\42document.getElementById('tbl').style.width='100%';resizePic()\42>\n";
		doc += strContent+"\n";
		doc += "<\57body>\n";
		doc += "<\57html>\n";
		newWin = window.open("","printWin",features);
		newWin.document.write(doc);
		newWin.document.close();
		newWin.focus();
		newWin.print();
		newWin.close();
		}
	else{
		window.print();
		}
	}
//-->