// Current year for footer

today=new Date();
y0=today.getFullYear();



// Open a small pop-up window

var popupWin = null;

function openWindow(location, w, h)
{
  openCustomizedWindow(location, w, h, 1);
}

function openCustomizedWindow(location, w, h, showToolbar)
{
       if (popupWin != null && !popupWin.closed)
       {
         popupWin.close();
         popupWin = null;
       }

      // Detect screen resolution. Only works in 4+ browsers. If resolution is
     var browserName=navigator.appName;
     var browserVer=parseInt(navigator.appVersion);

     // Detect screen1 resolution. Only works in 4+ browsers. If resolution is
       // smaller than the desired window size, adjust the window size.
        if (!(browserName=="Netscape" && browserVer<=4) )
        {
          wd = (w > screen.availWidth) ? eval(screen.availWidth - 15) : w;
          ht = (h > screen.availHeight) ? eval(screen.availHeight - 15) : h;
 	        if (screen) {
 	          wd = (w > screen.availWidth) ? eval(screen.availWidth - 15) : w;
       	    ht = (h > screen.availHeight) ? eval(screen.availHeight - 15) : h;
 	        }
          else
          {
            wd = (w > 600) ? 600 : w;
            ht = (h > 380) ? 380 : h;
          }
        }
       else
       {
         wd = (w > 600) ? 600 : w;
         ht = (h > 380) ? 380 : h;
       }

       // Open a resizable popup window with scrollbars, the toolbar (buttons),
      // no status bar, in the top left corner of the screen (window positioning
     // no status bar, in the top left corner of the screen1 (window positioning
       // only works in IE 4+).

       popupWin = window.open("", "display", "menubar=1, scrollbars=1,resizable=1,width="+wd+
                  ",height="+ht+",left=250,top=100,toolbar="+showToolbar+",menubar=0,status=0");
       popupWin.focus();
       popupWin.location.href = location;

       return true;
}

 function openWindowWithProperties(location, w, h, showToolBar, showMenuBar,showScrollBar, showStatusBar,resizable)
 {
     if (popupWin != null && !popupWin.closed)
     {
       popupWin.close();
       popupWin = null;
     }
 
  // Detect screen resolution. Only works in 4+ browsers. If resolution is
 	var browserName=navigator.appName;
 	var browserVer=parseInt(navigator.appVersion);

     // Detect screen1 resolution. Only works in 4+ browsers. If resolution is
       // smaller than the desired window size, adjust the window size.

  if (!(browserName=="Netscape" && browserVer<=4) )
  {
    wd = (w > screen.availWidth) ? eval(screen.availWidth - 15) : w;
    ht = (h > screen.availHeight) ? eval(screen.availHeight - 15) : h;
    if (screen) {
      wd = (w > screen.availWidth) ? eval(screen.availWidth - 15) : w;
      ht = (h > screen.availHeight) ? eval(screen.availHeight - 15) : h;
    }
    else
    {
      wd = (w > 600) ? 600 : w;
      ht = (h > 380) ? 380 : h;
    }
  }
  else
  {
    wd = (w > 600) ? 600 : w;
    ht = (h > 380) ? 380 : h;
  }

 // Open a resizable popup window with scrollbars, the toolbar (buttons),
 // no status bar, in the top left corner of the screen (window positioning
 // only works in IE 4+).
 popupWin = window.open("", "display", "menubar="+showMenuBar +",scrollbars=" +showScrollBar +",resizable=" +resizable +",width="+wd+
            ",height="+ht+",left=250,top=100,toolbar="+showToolBar+",menubar="+showMenuBar +",status="+showStatusBar);
 popupWin.focus();
 popupWin.location.href = location;

 return true;
}

// Continue visit window

var mcPopup = null;
var continueVisit = false;
function ContinueVisit()
{continueVisit = true;}
