function image( file, title, w, h ) {

	width = w + 50;
	height = h + 50;

	if( height > screen.availHeight ) height = screen.availHeight - 100;
	if( width > screen.availWidth ) width = screen.availWidth - 100;

	var left   = ( screen.availWidth / 2 )  - ( width / 2 );
	var top    = ( screen.availHeight / 2 ) - ( height / 2 );

	var wnd = window.open( "", "image", "left="+left+",top="+top+",screenX="+left+",screenY="+top+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+", height="+height ); 

	wnd.document.write( '<html><head><link href="' + window.baseHref + 'css/styles.css" rel="stylesheet" type="text/css"><title>' + title + '</title></head><body><table width="100%" height="100%"><tr><td valign="middle" align="center"><img onclick="window.close()" src="' + file + '" width="' + w + '" height="' + h + '" alt="' + title + '"></td></tr></table></body></html>' );

	wnd.focus();

	return false;
}
