﻿ /* Bold the currently selected link.*/
function BoldSelected()
{
      if (document.getElementsByTagName) 
      {
            var anchors = document.getElementsByTagName('a');
            for (var i=0; i < anchors.length; i++) 
            {
                  var anchor = anchors[i];
                  if ((anchor == location.href) || (anchor + 'index.aspx' == location.href))
                  {     
                        anchor.setAttribute('className', 'selected');
                        anchor.setAttribute('class', 'selected');
                  }
            }
      }     
}
/*dropdown*/
sfHover = function() {
	var sfEls = document.getElementById("navMain").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*imagebar*/
<!-- Copyright 2002 Bontrager Connection, LLC

NumberOfImagesToRotate = 6;
 

FirstPart = '<img src="http://minardieducation.com/images/bar';
LastPart = '.jpg" height="75" width="760">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}


/* This function takes the email and the hidden field that stores the list id 
 * and opens a new window allowing the visitor to the site to sign up for 
 * emails
 */
function EmailSignup(urlVal, mCtl, eaCtl)
{
    var mVal = document.getElementById(mCtl).value;
    var eaVal = document.getElementById(eaCtl).value;
    var openURL = urlVal + '?m=' + mVal + '&ea=' + eaVal;

    window.open(openURL, 'EmailSignup');

}

