function showImage (url, name, w, h) {
	var n3 = (navigator.appName.indexOf('Netscape')!=-1 && navigator.appVersion.indexOf('3.')!=-1)?true:false;
	var ww = (n3)?(parseInt(w)+15):parseInt(w);
	var wh = (n3)?(parseInt(h)+15):parseInt(h);
	var winname = (name.indexOf(' ')!=-1)?name.substring(0, name.indexOf(' ')):name;
	var wnd = window.open('', winname, 'resizable=1,width='+ww+',height='+(wh));
 	var code = '<html><head>\n<title>'+name+'</title></head>\n'+
			   '<body onLoad="runSlideShow()" bgcolor="White" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>\n'+
			   '<center><img src=\"' + url + '\" onLoad="window.focus();" style="cursor:hand" alt="Close" onClick="window.close();" name="main_img"><br><font face=sans-serif size=11px><span style=\"font:11px sans-serif">'+
			   name + '</span></font></center>'+
			   '<script language=\'javascript\'> '+
			   'var NS = (navigator.appName=="Netscape")?true:false; '+       
			   'var slideShowSpeed = 5000;'+
			   			    '      imWidth = (NS)?window.innerWidth:document.body.clientWidth;  '+
       'imHeight = (NS)?window.innerHeight:document.body.clientHeight; '+      
			   
			   'function runSlideShow(){'+
			    'iWidth = document.images[0].width - imWidth; '+
      'iHeight = document.images[0].height - imHeight; '+
      ' window.resizeBy(iWidth, iHeight); '+			   
 
'}'+
'</script>'+
			  ' </body></html>';
	wnd.document.write(code);
	wnd.document.close();
}
