var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
function checkPlugin2(){
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";
}

function showFullPicture ( pageUrl, pageHeight, pageWidth ) 
{		
				  function replace(s, t, u) {
				  /*
				  **  Replace a token in a string
				  **    s  string to be processed
				  **    t  token to be found and removed
				  **    u  token to be inserted
				  **  returns new String
				  */
				  i = s.indexOf(t);
				  r = "";
				  if (i == -1) return s;
				  r += s.substring(0,i) + u;
				  if ( i + t.length < s.length)
					r += replace(s.substring(i + t.length, s.length), t, u);
				  return r;
				  }
				  //pageUrl=unescape(pageUrl);
				  //pageUrl='http://localhost/cpreview/digital/camera/Canon/PowerShot%20Pro1/002B%202%20day%20light%20sony%20Cybershot%20DSC-F828.jpg';
	  pageHeight2=pageHeight+0;
	  pageWidth2=pageWidth+0;
	
	  myWin= open("", "displayWindow", "width="+pageHeight2+",height="+pageWidth2+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes,left=50,top=50");  
	  myWin.document.open();  
	  myWin.document.write("<html><head><title>Full Picture</title>");
	  myWin.document.write("</head><body bgcolor=black topmargin=0 leftmargin=0  style=\"padding:0; margin:0;\">");
	  myWin.document.write("<a href='javascript:close()'><center><img src='"+pageUrl+"' border=0></center></a>");  	  
	  myWin.document.write("</body></html>"); 
	  myWin.document.close();  
}

