
//--------------------------------   SET YOUR VARIABLES    ------------------------------//

  
  var theSearch_Value= "";     //--  global declaring the Search Form Value: ie DOT, DOH, DMV, etc.
  
  var collapse_Menu = true;   //--  enables you to close all "menu elements" upon first visit to page set to false to leave open
  var collapse_Body = true;   //--  enables you to close all "body elements" upon first visit to page set to false to leave open
  var   unique_Menu = false;   //--  enables a unique left hand menu for each page set to false if your menu is the same on every page

  
//---------------------------   ONLOAD,UNLOAD, & RESIZE BODY    -------------------------//
  
  function onPageLoad(){
    if(document.forms['search'])document.forms['search'].reset();
    if(theSearch_Value)document.forms['search'].qt.value=theSearch_Value;
    
    if(document.getElementById)openCloseDivs();//collapsible.js: detect cookies
  }
  
  function onPageUnload(){
    if(document.getElementById)setCollapsibleCookies();//collapsible.js: set cookies
  }
  
  function onPageResize(){
  }
  
  
  
//----------------------------   DON'T EDIT BELOW THIS LINE   ---------------------------//
  
  function theRoot_Path(){  
    if(document.getElementById){
      var current_path;
	  
      for(var i=0;i<document.getElementsByTagName("script").length;i++){
        var script_src = document.getElementsByTagName("script")[i].src;
		    var checkfor_file = script_src;

		    if(checkfor_file.indexOf('edit.js')>0){
		      script_src = script_src.split("/");
		        
		      if(script_src[0].indexOf('http')==0||script_src[0].indexOf('file')==0||script_src[0].indexOf('ftp')==0){
		        current_path = script_src.slice(3,script_src.length-2).join("/");
		      }else{
		        var storeRelative = 0;
		        for(var j=0;j< script_src.length;j++){if(script_src[j]=="..")storeRelative +=1;}
				
				current_path = script_src.slice(1,script_src.length-2).join("/");
				
				if(storeRelative>0||current_path==""){
		          current_path = document.location.href;
		          current_path = current_path.split("/");
		          current_path = current_path.slice(3,current_path.length-(storeRelative+1)).join("/");
				}
		      }  
		      if(current_path==""){return "/";
		      }else{return"/"+current_path+"/";}   
	      }//if
	    }//for
    }//if
  }

//--------------------------------  SEARCH FORM FUNCTIONS  -----------------------------//

  function sword(){if(document.forms['search'].qt.value == theSearch_Value)document.forms['search'].qt.value = '';}
  function submitForm(whatForm){document.forms[whatForm].submit();}

  
//--------------------------------  EXTERNAL FILE LINKs    -----------------------------//
  
  if(document.getElementById){
    document.write('<script src="'+theRoot_Path()+'java/standard/detectflash.js"></' + 'script>');
  
    document.write('<script src="'+theRoot_Path()+'java/standard/generalJava.js"></' + 'script>');

    document.write('<script src="'+theRoot_Path()+'java/standard/collapsible.js"></' + 'script>');
  }
  
//------------------------------  END EXTERNAL FILE LINKs    ---------------------------//
