// popSlide function

function popSlide(dirname) {
  var newWindow;

  var SlideShow = "/" + dirname + "/slideshow.cfm";

  newWindow = open(SlideShow, "", "height = 540, width = 550, scrollbars = 0, status=0");
}


// date-info.js
// a javascript collection to provide date & time functions and values
// created by j.augeri, 07-11-2001
//
// we need to get the Browser name and version to resolve some date issues
var browser=navigator.appName;
var version=parseInt(navigator.appVersion.charAt(0));
//
// start by creating a new date object
var todaysDate = new Date;
//
// add a couple of arrays to hold the correct names
var Month = new Array(12);
Month[0] = "January";
Month[1] = "February";
Month[2] = "March";
Month[3] = "April";
Month[4] = "May";
Month[5] = "June";
Month[6] = "July";
Month[7] = "August";
Month[8] = "September";
Month[9] = "October";
Month[10] = "November";
Month[11] = "December";
//
var Dow = new Array(7);
Dow[0] = "Sunday";
Dow[1] = "Monday";
Dow[2] = "Tuesday";
Dow[3] = "Wednesday";
Dow[4] = "Thursday";
Dow[5] = "Friday";
Dow[6] = "Saturday";
//
// now populate these variables with the correct data
// they are what we will use in our final output
var DayName = Dow[todaysDate.getDay()];
var DayNumber = todaysDate.getDate();
var MonthName = Month[todaysDate.getMonth()];
var tmpYear = todaysDate.getYear();
var Hour = todaysDate.getHours();
var Min = todaysDate.getMinutes();
//
if ((browser == "Microsoft Internet Explorer") && (tmpYear >= 2000))
  Year = tmpYear;
else
  Year = tmpYear + 1900;
//
// adjust the Minutes for Min < 10
if ( Min < 10 ) {
  Min = "0" + Min;
  }
//
// set an appropriate greeting
//
if ( Hour >= 18 ) {
  Greeting = "Good evening";
  }
else if ( Hour >= 12 ) {
  Greeting = "Good afternoon";
  }
else {
  Greeting = "Good morning";
  }
//
// adjust time for 24 vs 12 hour clock
//
if ( Hour > 12 ) {
  Hour = Hour - 12;
  Min = Min + " PM";
  }
else if ( Hour == 12 ) {
  Min = Min + " PM";
  }
else {
  Min = Min + " AM";
  }
//

// new popWindow code; added 12-Dec-2007
function popWindow(mypage,myname,w,h) {
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition
  win = window.open(mypage,myname,settings)
}

// end of file

