
  
  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
  }
  
  var theRoot_Path = theRoot_Path();
  
  //var theRoot_Path = '/construction/wztc/';//construction/wztc/';    //--  global declaring the Root Directory Path 
													
  var  collapse_Menu = false;  //--  enables you to close all "menu elements" upon first visit to page set to false to leave open
  var  collapse_Body = false;  //--  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(){
	document.forms['search'].reset();    // reset the search form
    openCloseDivs();                     // used by collapsible.js to detect cookies
  }
  
  function onPageUnload(){
    setCollapsibleCookies();             // used by collapsible.js to set cookies
  }
  
  function onPageResize(){
  }

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

  function sword(){if (document.search.qt.value == 'DOH')document.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 --//////////////////////////////// 


