//File:  scripts.js

function click(e) {
  var message="IMAGES ARE NOT FOR DOWNLOAD: Content and images are exclusive property. "; // Message for the alert box
  if (document.all) {
    if (event.button == 2) {
      alert(message);
      return false;
    }
  }
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
}
if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
}


//**********************************************************************
function fNewWinURL( strURLName, strWinName) {
//**********************************************************************

  
  strWinProp = " toolbar=no"        //Back, Forward, etc...
               + ",location=no"     //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=yes"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=yes"   //Displays scrollbars if document is larger than window.
               + ",titlebar=yes"     //Displays titlebar. Signed script required for "no" to work in Netscape.
               + ",top=0"            //Offset of windows top edge from screen.
               + ",left=0"           //Offset of windows left edge from screen.
               + "";

  winMsg = window.open(strURLName, strWinName, strWinProp);  //parms: URL,window name,properties.
  winMsg.focus();
}


//**********************************************************************
function fNewWin() {
//**********************************************************************

  var strWinProp;
  var winMsg;

  intWidth = screen.width - 30; //Adjust for the end of screen 
  intHeight = screen.height - 80; //Adjust for the Icon Bar at the bottom of the window.

  strWinProp = " toolbar=no,"        //Back, Forward, etc...
               + ",location=no,"     //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=yes"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=yes"   //Displays scrollbars if document is larger than window.
               + ",titlebar=yes"      //Enable/Disable titlebar resize capability.
               + ",width="+intWidth    //Standard 640,800/788, 800/788
               + ",height="+intHeight  //Standard 480,600/541, 600/566               
               + ",top=0"            //Offset of windows top edge from screen.
               + ",left=0"           //Offset of windows left edge from screen.
               + "";

  winMsg = window.open("saffronwalden/index.html", "BedWindow", strWinProp);  //parms: URL,window name,properties.

  winMsg.focus();
}
