function showPNGwithSize(image, width, height){
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img src='"+image+"' />");
    else 
		document.write("<div style=\"display: inline; height: "+height+"; width: "+width+"; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src ='"+image+"', sizingMethod='scale');\"> </div> ");   
}

function showPNG(image){
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img border='0' src='"+image+"' />");
    else 
		document.write("<div class=\""+className+"\"> </div> ");
}

function showPNGwithParams(image, params){
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img "+params+" border='0' src='"+image+"' />");
    else 
		document.write("<div "+params+" class=\""+className+"\"> </div> ");
}

function showPNGwithOffset(image, offset){
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img border='0' src='"+image+"' />");
    else {
	document.write("<div style=\"display:inline; padding-right: "+offset+"px; \"> ");
	document.write("<div class=\""+className+"\"> </div> ");
	document.write("</div>");
    }
}

function showPNGwithOffsetBorder(image, offset, showBorder){
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    border_class = "unclicked_evidence"
	if (showBorder == false) {
	    border_class="";
	}
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img border='0' class='"+border_class+"' src='"+image+"' />");
    else {
	document.write("<div style=\"display:inline; padding-right: "+offset+"px; \"> ");
	document.write("<span class='"+border_class+"'>");
	document.write("<div class=\""+className+"\"> </div> ");
	document.write("</span>");
	document.write("</div>");
    }
}

function showPNGEvidenceIcon(image, offset, showBorder){
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    border_class = "unclicked_evidence"
	if (showBorder == false) {
	    border_class="";
	}
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img border='0' class='"+border_class+"' src='"+image+"' />");
    else {
	document.write("<div style=\"display:inline; padding-right: "+offset+"px; width: 22px;\"> ");
	document.write("<span class='"+border_class+"'>");
	document.write("<div class=\""+className+"\" style=\"margin-top: 4px; margin-bottom: 4px;\"> </div> ");
	document.write("</span>");
	document.write("</div>");
    }
}

function showPNGwithStyle (image, style) {
    var className = "pngfix_"+image.match(/\/([^\/]+)\./)[1];
    if (typeof document.body.style.maxHeight != "undefined") 
		document.write("<img style='"+style+"' border='0' src='"+image+"' />");
    else 
		document.write("<div style='"+style+"' class=\""+className+"\"> </div> ");
}
