function show_info(lnk, param){
    runt = "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1," + param;
    var iwin = window.open(lnk, 'info1', runt);
    iwin.focus();
    }
function photo_win(img_path,img_alt){
var str, StrBody;

	str = 'resizable=yes,width=100,height=100,screenX=100,screenY=100,left=1,top=1,scrollbars=0';
	
	if (document.all){ 
		StrBody = '<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="White" onblur="self.window.close();" onresize="self.window.location.reload();">';
	} else {
		StrBody = '<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="White" onblur="self.window.close();">';
	}
		
	var win_op = window.open('','show', str);
	win_op.document.open();
	win_op.document.writeln('<html>');
	win_op.document.writeln('<head>');
	win_op.document.writeln('<title>' + img_alt + '</title>');
	win_op.document.writeln('<script>');
	win_op.document.writeln('function resize_img() {');
	win_op.document.writeln('var width = document.image.width;');
	win_op.document.writeln('var height = document.image.height;');
	win_op.document.writeln('if (!(document.all)){ self.resizeTo(width,height); } else { self.resizeTo((width+12),(height + 31));');
	win_op.document.writeln(' }');
	win_op.document.writeln('}');
	win_op.document.writeln('</script>');	
	win_op.document.writeln('</head>');
	win_op.document.writeln(StrBody);
	win_op.document.writeln('<img name="image" src='+ img_path + ' border=0 alt="'+img_alt+'" onload="resize_img();">');
	win_op.document.writeln('</body>');
	win_op.document.writeln('</html>');		
	win_op.document.close();
}

function imgopen(imgf,tit){
rand_id='image'+(Math.round(Math.random()*1000));
outf="<html>"
+"<head>"
+"<title>"+tit+"</title>"
+"<style>body{margin:0px}</style>"
+"</head>"
+"<body leftmargin=0 topmargin=0>"
+"<img src=\""+imgf+"\">";
iopen="iwin=self.open('"+imgf+"', '"+rand_id+"', 'width='+(img1.width)+',height='+(img1.height)+',top=30,left=30');"
+"iwin.document.write('"+outf+"');"
+"iwin.focus();";
img1=new Image();
img1.src=imgf;
if(img1.width!=0) eval(iopen);
else{
iwin = self.open('about:blank', 'f'+rand_id, 'width=100,height=100,top=0,left=0');
iwin.document.write("<html>"
+"<body>"
+"<"+"script>"
+"function imo(img1){"+iopen
+"self.close();"
+"}<"+"/script>"
+"<img src='"+imgf+"' onload='imo(this);'>");
}
}