function showPhoto(item, orientation)
{
  width=480;
  height=480;
  
  if (orientation=='L')
  {
    width=640; height=480;
  }
  else if (orientation=='P')
  {
    width=480; height=640;
  }
  else if (orientation=='S')
  {
    width=352; height=288;
  }
  msgWindow = open("", "displayWindow", "menubar=no,scrollbars=no,status=no,resizable=yes,width="+width+",height="+height);
  msgWindow.document.write('<head><title>'+item+'<\/title><\/head>');
  msgWindow.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
  msgWindow.document.write('<body onload="checksize()" topmargin="0" leftmargin="0" bgcolor=#000000 onblur="self.close()" onclick="window.close()">');
  msgWindow.document.write('<img border=0 src='+item+'>');
  msgWindow.document.write('<\/body><\/html>')
  msgWindow.document.close();
}

function showPhoto2(item,orientation)
{
  if (orientation=='L')
  {
    msgWindow = window.open("", "displayWindow", "menubar=no,scrollbars=no,status=no,width=640,height=480")
  }
  else if (orientation=='P')
  {
    msgWindow = window.open("", "displayWindow", "menubar=no,scrollbars=no,status=no,width=480,height=640")
  }
  else if (orientation=='S')
  {
    msgWindow = window.open("", "displayWindow", "menubar=no,scrollbars=no,status=no,width=352,height=288")
  }
  else
  {
    msgWindow = window.open("", "displayWindow", "menubar=no,scrollbars=no,status=no,width=640,height=640")
  }
  msgWindow.document.write ('<head><title>'+item+'<\/title><\/head>');
  msgWindow.document.write('<body topmargin="0" leftmargin="0" bgcolor=#000000 onblur="self.close()" onclick="window.close()">');
  msgWindow.document.write('<font face=arial size=2 color=#000000><img border=0 src='+item+'><\/font>');
  msgWindow.document.write('<\/body><\/html>')
  msgWindow.document.close();
}

