
function openWin(src){
      newImg = new Image();
      newImg.src = src;

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac";
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


  if (OS=="Mac"){  	  
	var w=newImg.width,h=newImg.height;
	newwindow2=window.open('','win','height=582,width=700');
	
	var tmp = newwindow2.document;
	   tmp.write('<html><head><title>Enlarged view</title>');
		tmp.write('</head><body>');
		
		tmp.write("<img style='border: solid 1px #000' src='"+src+"'><p>");
		tmp.write("<a style='font:normal 11px verdana;color: #000066;text-decoration:underline;' href=\"javascript:window.close();\">close window<\/a>");
		tmp.write("</p><br><br>");
		tmp.write('</body></html>');
		tmp.close();
    	
   } 
     else {
     	
     	var w=newImg.width,h=newImg.height;
     	newwindow2=window.open('','win','height=600,width=600');
		var tmp = newwindow2.document;
	
		tmp.write('<html><head><title>Enlarged view</title>');
		tmp.write('</head><body>');
		tmp.body.style.margin="0";
      tmp.body.style.textAlign="center";
      tmp.body.style.fontFamily="Arial";
      tmp.body.style.fontWeight="normal";
      tmp.body.style.fontSize="15px";
		
		tmp.write("<img style='border: solid 1px #000' src='"+src+"'><p >");
		tmp.write("<a style='font:normal 11px verdana;color: #000066;text-decoration:underline;' href=\"javascript:window.close();\">close window<\/a>");
		tmp.write("</p><br><br>");
		tmp.write('</body></html>');
		tmp.close();
				if (w != 0 || h != 0){
				    	newwindow2.resizeTo(w+150, h+150) ;
				}
   			else
					{
			    	newwindow2.resizeTo(800, 600) ;
			   }
   }
   
}
     
     
	function preLoadEnlarge() {
		var str4=document.getElementById('normalimg').src.replace('normal','enlarge');
		Image1= new Image()
		Image1.src = "+str4+"

		 }
	