﻿startList = function() {
	var navRoot = document.getElementById("verticalnav").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);

/*-----ภาคเหนือ--------*/
startList = function() {
	var navRoot = document.getElementById("north").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);

/*-----ภาคอีสาน--------*/
startList = function() {
	var navRoot = document.getElementById("northeast").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);

/*-----ภาคกลาง--------*/
startList = function() {
	var navRoot = document.getElementById("central").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);

/*-----ภาคตะวันออก--------*/
startList = function() {
	var navRoot = document.getElementById("east").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);

/*-----ภาคใต้--------*/
startList = function() {
	var navRoot = document.getElementById("south").getElementsByTagName("LI");
   for (var i=0; i<navRoot.length; i++) {
          navRoot[i].onmouseover=function()  {
                        this.className+=" over";
                   }
               navRoot[i].onmouseout=function() {
                       this.className=this.className.replace(new  RegExp(" over"), "");
   }
   }
  }
if (window.attachEvent) window.attachEvent("onload", startList);
