
// ========================= Edit to fit your needs ========================= //


fixMozillaZIndex = true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps

_menuCloseDelay = 500;
_menuOpenDelay  = 150;

_firstSubOffsetTop  = 1;
_firstSubOffsetLeft = 0;

_subOffsetTop  = 2;
_subOffsetLeft = -2;

with(eval("menuStyleSubLevel" + DHTMLMenuID + "=new mm_style()")){
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="12px";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#e3e5e6";
offcolor="#57565B";
onbgcolor="#003C73";
oncolor="#ffffff";
outfilter="";
overfilter="";
padding=3;
subimagepadding=2;
subimage="scripts/arrow.gif";
onsubimage = "scripts/arrowhi.gif";
rawcss="margin-left:7px;margin-right:7px;"
}

// ====================No editing needed below this line ==================== //

var aItemSeparator = "\x09";
var aRowSeparator = "#@#";
var aString = eval("DHTML_MENU_ITEMS" + DHTMLMenuID);
if (aString!="") {
  var aRow = aString.split(aRowSeparator);
  var aCol = aRow[0].split(aItemSeparator);
  var themenu;
  var aMenuText;

  aStartLevel = aCol[0];
  for (CurrentLevel = aStartLevel; CurrentLevel < (aStartLevel + 6); CurrentLevel++) {
    for (i = 0; i <= aRow.length; i++) {
    	if (i<aRow.length){
        aCol = aRow[i].split(aItemSeparator);
        theNextLevel =  aCol[0] * 1;
        theNextId =     aCol[1];
        theNextText =   aCol[2];
        theNextUrl =    aCol[3];
        theNextTarget = aCol[4];
      }

      if (i==0) {
        theFirstLevel = aCol[0] * 1;
        theLevel = aCol[0] * 1;
        theId = aCol[1];
      }
      else {
        if (theLevel > theFirstLevel) {
          if (theLevel == CurrentLevel) {
         		if ( theLevel > theLastLevel) {
            	themenu = new menuname("Menu_" + DHTMLMenuID + "_" +  theLastId)
            	themenu.left="offset=" + _firstSubOffsetLeft;
            	themenu.top="offset="+ _firstSubOffsetTop;
              themenu.style=eval("menuStyleSubLevel" + DHTMLMenuID);
         		}

         		aMenuText = "text=" + theText + ";url=" + theUrl + ";" + ";target=" + theTarget + ";";

  		    	if ((theUrl!="") && (theUrl!="#")) {
      	      aMenuText = aMenuText + "clickfunction=WriteDHTMLMenuCookie(" + DHTMLMenuID + ", " + theId + ");";
      	    }

          	if (theNextLevel > theLevel) {
       	 	    aMenuText = aMenuText + ";showmenu=" + "Menu_" + DHTMLMenuID + "_" +  theId + ";";
            }
            themenu.aI(aMenuText);
          }
        }
      }
      theLastLevel = theLevel;
      theLastId = theId;
      theLevel =  theNextLevel;
      theId =     theNextId;
      theText =   theNextText;
      theUrl =    theNextUrl;
      theTarget = theNextTarget;
    }
  }
  drawMenus();
}