function showPic(info,file,widt,heigh,x) {
var w=(window.screen.availWidth-widt)/2;
var h=(window.screen.availHeight-heigh)/2;
var config;

if(widt<250) {
	var c = 250/widt;
	widt *= c;
	heigh *= c;
}

var w_badb=window.open('#', 'avi', config='height='+heigh+',width='+widt+',menubar=0,left='+w+',top='+h);
w_badb.resizeTo(widt,heigh);
w_badb.document.open();

w_badb.document.write('<html><head><title>'+info+'</title></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"><img src="'+file+'" width="'+widt+'" height="'+heigh+'" alt="'+info+'" border="0" onclick="window.close();"></body></html>');
w_badb.document.close();
w_badb.focus();

return false;
}