var _PAGE="";
var _CONTENT="";
function openImageWindow(imageSrc,imageTitle)
{
_CONTENT="";
_CONTENT+="<HTML>\n";
_CONTENT+="<head>\n";
_CONTENT+="<"+"SCRIPT>\n";
_CONTENT+="function specialInit()\n";
_CONTENT+="{\n";
_CONTENT+="if (document.all || document.layers)\n";
_CONTENT+="window.resizeTo(document.images[0].width + 34,document.images[0].height + 196);\n";
_CONTENT+="}\n";
_CONTENT+="</"+"SCRIPT>\n";
_CONTENT+="</head>\n";
_CONTENT+="<BODY onLoad='specialInit();' onclick='self.close();'>\n";
_CONTENT+="<"+"SCRIPT>\n";
_CONTENT+="document.write('<center>');\n";
_CONTENT+="document.write('<b><font color=\\'#000000\\'>');\n";
_CONTENT+="document.write('<span style=\\'BACKGROUND-COLOR:#ffffff\\'> ');\n";
_CONTENT+="document.write('"+imageTitle+"' +'  </span></font></b><HR>');\n";
_CONTENT+="document.write('<IMG SRC=\\'"+imageSrc+"\\'>');\n";
_CONTENT+="document.write('<HR><P><FORM><INPUT TYPE=button VALUE=Close onClick=window.close()></FORM>');\n";
_CONTENT+="document.write('</center>')\n";
_CONTENT+="</"+"SCRIPT>\n";
_CONTENT+="</BODY>\n";
_CONTENT+="</HTML>\n";

var _parms = 'directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,HEIGHT=600,WIDTH=600,resizable=yes';
var _windowName = "PicViewer";
  if(_PAGE)
  {
    fileName = 'http://www.js-examples.com/?' + escape(imageSrc) + '&' + escape(imageTitle);
    myWindowHandle = window.open(fileName,_windowName,_parms);
  }
  else
  {
    myWindowHandle=window.open("",_windowName,_parms);
    myWindowHandle.document.open();
    myWindowHandle.document.write(_CONTENT);
    myWindowHandle.document.close();
  }
  myWindowHandle.focus();


var message="Function Disabled! The images on Reflections In Metal have a COPYRIGHT policy. Please contact reflections in metal directly from our contact us page for images seen on this site.";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")

}

