////////////////////////////////////////////////////////////////////////////////
// Dreamweaver JavaScript
//
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

////////////////////////////////////////////////////////////////////////////////
// WMU: JavaScript Library: Current Year
// Author(s):   Michael Stilson Jr. - Western Michigan University
//
// Created:     20040126
// Modifications:
// +===============================================================+
//  200XXXXX   <function_name> INSERTED|DELETED|UPDATED
//  ---------------------------------------------------------------
//  <description>
// +===============================================================+
//

////////////////////////////////////////////////////////////////////
// Function: currentYear()
// Purpose:  To provide a way to write the current year to a page
//
// Args In:  none
// Pre:      none
//
// Args Out: none
// Post:     The current year is written to the document oject
//
function currentYear() {
	var today=new Date();
	var year=today.getYear();
	year=((year<1000)?(year+1900):year);
	document.write(year);
return 1;
}

////////////////////////////////////////////////////////////////////
// Function: jumpMenu()
// Purpose:  To provide a way for <select> boxes to navigate to URLs 
//           specified within their <option>s.
//
// Args In:  objSelect:
//           The name of the <select> DOM object
//           varDead
//           This is for if you need "dead" options in the list. 
//           Specify "null" if you do not need it.
// Pre:      objSelect is a valid DOM <select> object and varDead 
//           is either the value that flags a dead link or null.
//
// Args Out: none
// Post:     The selected option IS NOT a dead link and the browser 
//           will change it's location to the URL selected.
//           OR
//           The selected option IS a dead link and so nothing 
//           happens.
//
function jumpMenu(objSelect,varDead)
{	var selection=objSelect.options[objSelect.selectedIndex].value;
	if(selection!=varDead)
	{	document.location=selection;	}
}

// 
// Copyright 2004 - Western Michigan University - All rights reserved
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
////////////////////////////////////////////////////////////////////////////////

