// <!-- Hide from non-JS browsers

// Global Constants and Variables...
var message="Sorry, no right click on this site. Copyrighted Material// Copyright 2002-2007 by Jeff Duhaime\nALL RIGHTS RESERVED";

function click(e) {
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);
}
document.onmousedown=click;

                                                   <!-- End No Right click -->



                 <!-- Begin status scroll bar -->





var typespeed = 100; 
var MessagePause = 1000; 
var timerID = null;
var Running = false;
var message = new Array();
var currentMessage = 0;
var offset = 0;

message[0] = "Welcome To This Web site"
message[1] = "If you have any suggestions"
message[2] = "Please let me know"
message[3] = "Check back often for updates"

// end of scroll 



function userMachine()  {
   ua = navigator.userAgent;
   if (ua.search(/SunOS/) >= 0)
      return "SunOS";
   else if (ua.search(/WinNT/) >= 0 || ua.search(/Windows\sNT/) >= 0)
      return "WinNT";
   else
      return "Other";
}

function browser()  {
   var u = navigator.userAgent;
   var a = navigator.appName;

   if (a == 'Microsoft Internet Explorer' || u.search(/MSIE/) >= 0)
      return "ie";
   else if (a == 'Netscape')
      return "ns";
   else
      return "other";
}

function pdfLink(URL)  {

   /*  This function uses the userMachine() function to determine if the user
       is on a SunOS platform.  If so, the function creates a link to the
       specified URL with the target as the current window (the default for the
       <A HREF> tag.  If the user is on any other platform, the target is a 
       the current window.

       This function is used primarily for opening up PDF files, since in UNIX,
       when a link to a PDF file is clicked, the system opens up Acrobat Reader
       in its own window, so if the target attribute is set to _top, the window
       will be blank.  But in WinNT, Netscape normally opens up the PDF file in
       the current window or frame, but since we generally want the PDF file to
       open in the entire window, we use the _top value.

       Output of this function:
          <a href="{URL}"[ target=_top]>
 
       Remember to close the <A HREF> tag in the HTML.
   */

   document.write('<a href="'+URL+'"');
   if (userMachine() != "SunOS")
      document.write(' target=_top');

   document.write('>');
}

function pdfWarning()  {
   if (userMachine() == 'SunOS')
      document.write('<p> <b> Note:</b> Some of the documents on this page are\
	 Adobe Acrobat (PDF) files.  When clicking on PDF links, please be\
	 patient while Acrobat Reader loads (wait time is typically 30-60\
	 seconds).  Links need to be clicked only once to work.</p>');
}

function WebCITISLink(linkText)  {
   if (!linkText) linkText = "WebCITIS";
   document.write('<a href="'+WebCITIS_URL+'"> '+linkText+'</a>');
}

function WebCalLink(linkText)  {
   if (!linkText) linkText = "WebCal";
   document.write('<a href="'+WebCal_URL+'"> '+linkText+'</a>');
}

function SEPGCalLink(linkText)  {
   if (!linkText) linkText = "SEPG Calendar";
   document.write('<a href="'+SEPGCal_URL+'"> '+linkText+'</a>');
}

function WSTRLink(linkText)  {
   if (!linkText) linkText = "WSTR";
   document.write('<a href="'+WSTR_URL+'"> '+linkText+'</a>');
}

function openwin(URL, width, height, status,
		 toolbar, menubar, scrollbars, resizable)  {
   if (!URL)  {
      alert("Cannot open new window.");
      return;
   }
   if (!width) width=480;
   if (!height) height=450;
   if (!status) status="no";
   if (!toolbar) toolbar="no";
   if (!menubar) menubar="no";
   if (!scrollbars) scrollbars="yes";
   if (!resizable) resizable="yes";

   windowFeatures = "width=" + width
		  + ",height=" + height
		  + ",status=" + status
		  + ",toolbar=" + toolbar
		  + ",menubar=" + menubar
		  + ",scrollbars=" + scrollbars
		  + ",resizable=" + resizable;

   dispWin = open(URL, "displayWindow", windowFeatures);
}

topHold  = new Image(70, 17);
topR     = new Image(70, 17);


function topSwap(num)  {
   imgName = 'top' + num;
   curTop = document[imgName].src;
   if (curTop == topR.src)  {
      document[imgName].src = topHold.src;
   }
   else  {
      topHold.src = curTop;
      document[imgName].src = topR.src;
   }
}

topButtonNumber = 0;
function topButtonHTML()  {
   if (document.images)  {
      document.write('\
    <a href="#top" onMouseOver="topSwap('+topButtonNumber+');"\
		    onMouseOut="topSwap('+topButtonNumber+');">\
   	  alt="&#8226; top of page" name="top'+topButtonNumber+'"></a>');
   }
   else  {
      document.write('<a href="#_top"> &#8442; top of page</a>');
   }
   topButtonNumber++
}
   

function icon(format)  {
   format = format.toLowerCase();
   switch (format)  {
      case "adobe":
      case "acrobat":
      case "pdf":
         file = "pdf16.gif";
         alt = "Adobe Acrobat format";
         break;
      case "doc":
      case "word":
         file = "word16.gif";
         alt = "Microsoft Word format";
         break;
      case "xls":
      case "excel":
         file = "excel16.gif";
         alt = "Microsoft Excel format";
         break;
      case "ppt":
      case "powerpoint":
         file = "ppt16.gif";
         alt = "Microsoft Powerpoint format";
         break;
      case "mdb":
      case "access":
	 file = "mdb16.gif";
	 alt  = "Microsoft Access format";
	 break;
      case "txt":
      case "text":
         file = "txt16.gif";
         alt = "Plain text format";
         break;
      case "html":
      case "web":
      case "netscape":
         file = "netscape16.gif";
         alt = "HTML format";
         break;
      case "tif":
      case "tiff":
         file = "tif16.gif";
         alt = "Tagged Image Format (TIF) download";
         break;
      case "gif":
         file = "gif16.gif";
         alt = "Graphics Interchange Format (GIF)";
         break;
   }
   document.write('\
     <img src="/images/'+file+'" width="16" height="16" border="0" align="top"\
          alt="'+alt+'">');
}
 /******************************************************************************
 * The new_icon() function returns a "New!" icon starting on "post_date" and
 * ending "duration" days after "post_date".  If "duration" is omitted, it is
 * set to 10.
 *****************************************************************************/
function new_icon(post_date, duration)  {
        if (!duration)
                duration=10;

        duration *= 24  // hours in a day
        duration *= 60  // minutes in an hour
        duration *= 60  // seconds in a minute
        duration *= 1000        // milliseconds in a second

        var now         = new Date();
        var date_posted = new Date(post_date);
        var date_expire = new Date(Date.parse(date_posted) + duration);

        // document.write(now+"<BR>")
        // document.write(date_posted+"<BR>")
        // document.write(date_expire+"<BR>")

        if (now >= date_posted && now <= date_expire)  {
                return ('<img src="/images/new_icon.gif" width="32" height="32"'
                      + '     border="" alt="New!">');
        }
	else {
	   return '';
	   }
} 
 

// End function new_icon()
// -->
