// For the left CSS menu //

       var last_obj = '';

       var set_obj = '';
       var sobj = '';

       function static_link() { 

           var pname = location.pathname + location.search;
	   //document.write(pname);
	   //document.write("<h1>Hello</h1>");
           // Jimworld
           if ( pname.indexOf("/") >= 1 ) { set_obj = "jw_home" }
  
           // Toolkit
           if ( pname.indexOf("standards.html") >= 1 ) { set_obj = "tool_v_standards" }
           if ( pname.indexOf("links.html") >= 1 ) { set_obj = "tool_v_links" }
           if ( pname.indexOf("featured_writers.html") >= 1 ) { set_obj = "tool_v_featured_writers" }
           if ( pname.indexOf("documents.html") >= 1 ) { set_obj = "tool_v_documents" }
           if ( pname.indexOf("directory.html") >= 1 ) { set_obj = "tool_v_directory" }
           if ( pname.indexOf("covenant.html") >= 1 ) { set_obj = "tool_v_covenant" }
           if ( pname.indexOf("about_pastoral_report.html") >= 1 ) { set_obj = "tool_v_aboutpr" }
           if ( pname.indexOf("tools/validate") >= 1 ) { set_obj = "tool_v_html" }
           if ( pname.indexOf("tools/validate-css") >= 1 ) { set_obj = "tool_v_css" }
           if ( pname.indexOf("tools/validate-xml") >= 1 ) { set_obj = "tool_v_xml" }
           if ( pname.indexOf("about.html") >= 1 ) { set_obj = "tool_v_about" }
           if ( pname.indexOf("scumware.php/Articles") >= 1 ) { set_obj = "scum_articles" }
           if ( pname.indexOf("featured_writers.html") >= 1 ) { set_obj = "tool_v_featured_writers" }
           if ( pname.indexOf("events.html") >= 1 ) { set_obj = "tool_v_events" }


           // alert("PNAME: " + pname + " OBJ: " + set_obj);


           if ( pname.indexOf("news.php") >= 1 ) { 
                var slash = '/';
                var stringArray = pname.split(slash);
                var num_elements = stringArray.length - 2;
                var last_one = stringArray[num_elements];

                var re = new RegExp ('::', 'gi') ;
                set_obj = last_one.replace(re, '_') ;

           }


           sobj = getElement(set_obj);
           if ( sobj ) { sobj.className="currentset css-button"; }

       }

       function getElement(psID) { 
           if(document.all) { 
              return document.all[psID]; 
           } else { 
              return document.getElementById(psID); 
           } 
       } 

       function shade( obj ) {
          obj.style.background="#e0e0e0";
          obj.style.border="100px ridge silver";
       }

       function normal( obj ) {
          obj.style.background="#f5f5f5";
          obj.style.border="100px solid #f5f5f5";
       }


       function tabover(obj) { 
          if ( obj.className != 'tabactive' ) { obj.className="tabon"; }
       }       
       function taboff(obj) { 
          if ( obj.className != 'tabactive' ) { obj.className="taboff"; }
       }


       function mover(obj) {
          if ( obj != last_obj && obj != sobj ) {
              obj.className="over";
          }
       }

       function moff(obj) {
          if ( obj != last_obj && obj != sobj ) {
              obj.className="topset";
          }
       }

       function moffyellow(obj) {
          if ( obj != last_obj && obj != sobj ) {
              obj.className="offyellow";
          }          
       }

       function toggle(obj) {
          if ( obj != last_obj && obj != sobj ) {
              last_obj.className="topset"
          }

          // Toggle Current
          obj.className="currentset css-button";

          last_obj = obj;
       }

       function toggleyellow(obj) {
          if ( obj != last_obj && obj != sobj ) {
              last_obj.className="offyellow"
          }

          // Toggle Current
          obj.className="currentset css-button";

          last_obj = obj;
       }

       function turnon(td) {
          td.className='divmenuover';
       }

       function turnoff(td) {
          td.className='divmenu';
       }