/**  "midi.js" by Can2Can  Copyright (c) 2009, all rights reserved
 *
 *   Switches "display" between 'none' and 'inline'
 *   Used to "fold-up" footnotes and comments so they don't break the flow of the main text.
 *
 *   Use:
 *
 *  <link rel="stylesheet" href="http://can2can.biz/Tools/CanMaster.css" type="text/css"/>
 *  <script type="text/JavaScript" src="http://can2can.biz/Tools/midi.js">;
 *  </script>
 *
 *  in your page head section to use, or copy to your own site if editing is needed.
 *
 *  Surround the footnote with <span class="footnote" id="foot1"> ... </span>
 *
 *  use "<a href="JavaScript:ChooseFN1()">" as the 'show' and
 *  use "<a href="JavaScript:unChooseFN1()"> as the 'hide' buttons
 * 
 *  permission to use this script is granted under the following restrictions:
 *  1: No removal of copyright notice or other comments (you can add support for more IDs)
 *  2: No use for un-ethical purposes, explicitly including presentation of content to
 *     a search spider that is not presented to a normal visitor!
 *  3: The page _Must_ indicate that there is a choice of succint or verbose presentation.
 *
 */


  function ChooseFN1() {
	showhide("foot1","True")
  }
  function unChooseFN1() {
	showhide("foot1","False")
  }

  function ChooseFN2() {
	showhide("foot2","True")
  }
  function unChooseFN2() {
	showhide("foot2","False")
  }

  function ChooseFN3() {
	showhide("foot3","True")
  }
  function unChooseFN3() {
	showhide("foot3","False")
  }

  function ChooseFN4() {
	showhide("foot4","True")
  }
  function unChooseFN4() {
	showhide("foot4","False")
  }

  function ChooseFN5() {
	showhide("foot5","True")
  }
  function unChooseFN5() {
	showhide("foot5","False")
  }


  function showhide(id,bin){
	try{
		obj = document.getElementById(id);
		if (bin == "True"){
			obj.style.display = "inline";
		} else {
			obj.style.display = "none";
		}
	}
	catch(e){}
 }

  function ChooseAll(){
	ChooseFN1()
	ChooseFN2()
	ChooseFN3()
	ChooseFN4()
	ChooseFN5()
	ChooseFN6()
	ChooseFN7()
	ChooseFN8()
	ChooseFN9()
	ChooseFNA()
  }

  function FoldAll(){
	unChooseFN1()
	unChooseFN2()
	unChooseFN3()
	unChooseFN4()
	unChooseFN5()
	unChooseFN6()
	unChooseFN7()
	unChooseFN9()
	unChooseFN8()
	unChooseFNA()
  }

  function ChooseFN6() {
	showhide("foot6","True")
  }
  function unChooseFN6() {
	showhide("foot6","False")
  }

  function ChooseFN7() {
	showhide("foot7","True")
  }
  function unChooseFN7() {
	showhide("foot7","False")
  }

  function ChooseFN8() {
	showhide("foot8","True")
  }
  function unChooseFN8() {
	showhide("foot8","False")
  }

  function ChooseFN9() {
	showhide("foot9","True")
  }
  function unChooseFN9() {
	showhide("foot9","False")
  }

  function ChooseFNA() {
	showhide("foot10","True")
  }
  function unChooseFNA() {
	showhide("foot10","False")
  }


