// Toggles (show/hides)  text contained in Div's
// toggleSwitch() is called with two arguments (secid,title) from the html page displaying the toggled text
// secid = the generic name; used to identify the div id
// title = linked title name(or header) of the content that will be toggled


	function toggleSwitch(secid,title){
		  // this division holds the plus or minus image 
		  plusMinus(secid);
		  // this division holds the title for the text to be toggled 
		  toggleTitle(secid);
		  // Title text here 
		  document.write("<strong>"+title+"</strong></a></div>");
		  document.write("<div id=\""+secid+"\" class=\"toggel\">");
		  // the 'div id' is used by the js to hide/unhide the text.  'Div id' must be changed for each toggle 
		  toggleAction(secid);
	}
	
	

        function Toggle( secid )
        {
            var sectionId = document.getElementById(secid);
            if (sectionId == null) return;
            if (sectionId.style.display == '') 
            {
              sectionId.style.display = 'none';
              var ImgSrc = document.getElementById("i" + secid);
              ImgSrc.src = "http://www.nmu.edu/images/arrow_plus.gif";
            }
			//the image used is the standard nmu yellow arrow
            else
            {
              sectionId.style.display = '';
              var ImgSrc = document.getElementById("i" + secid);
              ImgSrc.src = "http://www.nmu.edu/images/arrow_minus.gif";
            }
        }

        function Hide( obj )
        {
          var oDiv = document.getElementById(obj);
          if(oDiv != null) oDiv.style.display = "none";
        }
		
		function plusMinus(secid){ 
			if(typeof(IsPrinterFriendly) == "undefined"){ 
				document.write("<a href=\"javascript:Toggle('"+secid+"')\"><img width=\"9\" height=\"9\" border=\"0\" id=\"i"+secid+"\" src=\"http://www.nmu.edu/images/arrow_plus.gif\" alt=\"\" /></a>");
			}else{
				document.write("<a href=\"javascript:Toggle('"+secid+"')\"><img width=\"9\" height=\"9\" border=\"0\" id=\"i"+secid+"\" src=\"http://www.nmu.edu/images/arrow_minus.gif\" alt=\"\" /></a>");
			}
		}

		function toggleTitle(secid){
			document.write("<a href=\"javascript:Toggle('"+secid+"')\">");
		}
		
		function toggleAction(secid){
			if(document.getElementById(secid) && typeof(IsPrinterFriendly) == "undefined"){ Hide(secid); }
		}