var temphide = "hide"
var tempshow = "show"
var tempnum = 0
var size = ""
var numitems = ""
var htemp = ""
var ttemp = ""
var position = ""
var numpos = 0

if (document.all) {
 for (var count = 1; count <= menuLength; count++) {
  position = eval(count) + "_position"
  document.write('<div ')
  document.write('id="explorer' + count + '"')
  document.write('style="position: absolute; overflow: none; left: 260; top: 0; z-index: 1; width: 260; visibility: hidden" ')
  document.write('onMouseover="menu_over[' + count + '] = \'true\'; imgCheck()" ')
  document.write('onMouseout="menu_over[' + count + '] = \'false\'; imgCheck()">')
  makemenu(count)
  document.write('</div>')
 }
}

if (!document.all && document.getElementById && navigator.userAgent.indexOf('Netscape6')) {
 for (var count = 1; count <= menuLength; count++) {
  position = eval(count) + "_position"
  document.write('<div ')
  document.write('id="navigator' + count + '"')
  document.write('style="position: absolute; overflow: none; left: 260; top: 0; z-index: 1; width: 260; visibility: hidden" ')
  document.write('onMouseover="menu_over[' + count + '] = \'true\'; imgCheck()" ')
  document.write('onMouseout="menu_over[' + count + '] = \'false\'; imgCheck()">')
  makemenu(count)
  document.write('</div>')
 }
}
  
if (document.layers) {
 for (var count = 1; count <= menuLength; count++) {
  position = eval(count) + "_position"
  document.write('<layer name="navigator' + count + '" left=260 top=0 z-index=1 width=260 visibility="hide" ')
  document.write('onMouseover="menu_over[' + count + '] = \'true\'; imgCheck()" ')
  document.write('onMouseout="menu_over[' + count + '] = \'false\'; imgCheck()">')
  makemenu(count)
  document.write('</layer>')
 }
}
  
function makemenu (which) {
 tempVar = which
 size = eval(which) + "_size"
 numitems = eval(which) + "_numitems"
 document.write('<table width="260" cellpadding="0" cellspacing="0" background=' + bkgimg + ' border="0"')
 document.write('<tr>')
 document.write('<td width="10"><img src="images/spacer.gif" width="10" height="128" border="0"></td>')
 document.write('<td width="240" valign="top">')
 document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">')
 
 
 document.write('<tr><td colspan="2"><img src="images/spacer.gif" width=1 height=7 alt="" border="0">')
 if (navigator.appVersion.indexOf("Mac") != -1) {
 document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
 }
 else {
 document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
 }
 if (!document.all && document.getElementById && navigator.userAgent.indexOf('Netscape6')) {
  document.write('<center><b><font face="verdana,arial,helvetica" size="1">' + menuList[tempVar + "_title"] + '</font></b></center></font></td></tr>')
 }
 else {
  document.write('<center><b>' + menuList[tempVar + "_title"] + '</b></center></font></td></tr>')
 }
 document.write('<tr><td colspan="2"><img src="images/spacer.gif" width=1 height=5 alt="" border="0"></td></tr>')

 if (menuList[numitems] == 1) {
  if (menuList[tempVar + '_href1'] != "") {
   document.write('<tr><td valign="top" width="1%"><img src=' + bulletimg + ' width=' + bwidth + ' height=' + bheight + ' alt="" border="0"><img src="images/spacer.gif" width=8 height=5 alt="" border="0"></td><td>')
   if (navigator.appVersion.indexOf("Mac") != -1) {
   document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
   }
   else {
   document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
   }
   document.write('<a target="content" href="' + menuList[tempVar + "_href1"] + '"><font color="#000000">' + menuList[tempVar + "_text1"] +'</font></a>')
   document.write('</font></td></tr>')
  }
  else {
   document.write('<tr><td valign="top" width="1%"><img src=' + bulletimg + ' width=' + bwidth + ' height=' + bheight + ' alt="" border="0"><img src="images/spacer.gif" width=8 height=5 alt="" border="0"></td><td>')
   if (navigator.appVersion.indexOf("Mac") != -1) {
   document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
   }
   else {
   document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
   }
   document.write(menuList[tempVar + "_text1"])
   document.write('</font></td></tr>')
  }
 }
 else {
  tempnum = 0  
  for (var count = 1; count <= menuList[numitems]; count++) {
   tempnum++
   htemp = tempVar + '_href' + tempnum
   ttemp = tempVar + '_text' + tempnum
   if (menuList[htemp] != "") {
    document.write('<tr><td valign="top" width="1%"><img src=' + bulletimg + ' width=' + bwidth + ' height=' + bheight + ' alt="" border="0"><img src="images/spacer.gif" width=8 height=5 alt="" border="0"></td><td>')
    if (navigator.appVersion.indexOf("Mac") != -1) {
    document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
    }
    else {
    document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
    }
    document.write('<a target="content" href="' + menuList[htemp] + '"><font color="#000000">' + menuList[ttemp] +'</font></a>')
	document.write('</font></td></tr>')
	document.write('<tr><td colspan="2"><img src="images/spacer.gif" width=1 height=5 alt="" border="0"></td></tr>')
   }
   else {
    document.write('<tr><td valign="top" width="1%"><img src=' + bulletimg + ' width=' + bwidth + ' height=' + bheight + ' alt="" border="0"><img src="images/spacer.gif" width=8 height=5 alt="" border="0"></td><td>')
    if (navigator.appVersion.indexOf("Mac") != -1) {
    document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
    }
    else {
    document.write('<font face="verdana,arial,helvetica" size="1" color="#000000">')
    }
    document.write(menuList[ttemp])
	document.write('</font></td></tr>')
	document.write('<tr><td colspan="2"><img src="images/spacer.gif" width=1 height=5 alt="" border="0"></td></tr>')
   }
  }
 }
 document.write('</table>')
 document.write('</td>')
 document.write('<td width="10"><img src="images/spacer.gif" width="10" height="128" border="0"></td></tr>')
 document.write('</table>')
}
  
