<!--
// MAIN MENU ====================================
if (document.images) {
  m_01b=new Image(40,139)
  m_01b.src="../images/nav_hm_ms.jpg"
  m_02b=new Image(40,139)
  m_02b.src="../images/nav_dealer_ms.jpg"
  m_03b=new Image(40,139)
  m_03b.src="../images/nav_prod_ms.jpg"
  m_04b=new Image(40,139)
  m_04b.src="../images/nav_sol_ms.jpg"
  m_05b=new Image(40,139)
  m_05b.src="../images/nav_tech_ms.jpg"
  m_06b=new Image(40,139)
  m_06b.src="../images/nav_doc_ms.jpg"
  m_07b=new Image(40,141)
  m_07b.src="../images/nav_cont_ms.jpg"

} else {
  m_01b=""
  document.menu01=""
  m_02b=""
  document.menu02=""
  m_03b=""
  document.menu03=""
  m_04b=""
  document.menu04=""
  m_05b=""
  document.menu05=""
  m_06b=""
  document.menu06=""
  m_07b=""
  document.menu07=""
}

// SUB-MENU  ====================================
// SUBMENU 1 -- About Us

// SUBMENU 2 -- Products
var submenu02 = new Array()
submenu02[0]='<a href="../products/index.php?cid=1">Indicators</a>'
submenu02[1]='<a href="../products/index.php?cid=2">Load Cells</a>'
submenu02[2]='<a href="../products/index.php?cid=3">Software / Data Transfer</a>'
submenu02[3]='<a href="../products/index.php?cid=4">Remote Displays</a>'

// SUBMENU 3 -- Solutions
var submenu03 = new Array()
submenu03[0]='<a href="../solutions/index.php?cid=1">Feed Management Software Systems</a>'
submenu03[1]='<a href="../solutions/index.php?cid=2">Grain Cart Weighing Systems</a>'
//submenu03[2]='<a href="#">Manure Application Weighing Systems</a>'
submenu03[3]='<a href="../solutions/index.php?cid=3">Livestock Weighing Systems</a>'
submenu03[4]='<a href="../solutions/index.php?cid=4">Planter Weighing Systems</a>'
submenu03[5]='<a href="../solutions/index.php?cid=5">Spreader Weighing Systems</a>'

// SUBMENU 4 -- Technical Support
var submenu04 = new Array()
submenu04[0]='<a href="../support/index.php?id=1">Setup & Calibration</a>'
submenu04[1]='<a href="../support/index.php?id=2">Product Bulletins</a>'
submenu04[2]='<a href="../support/index.php?id=3">Technical Manuals & <br> &nbsp; Trouble Shooting Guides</a>'
submenu04[3]='<a href="../support/warranty_centers.php">Warranty Service Centers</a>'

// SUBMENU 5 -- Document Warehouse
var submenu05 = new Array()
submenu05[0]='<a href="../doc_warehouse/index.php?id=1">Product Manuals</a>'
submenu05[1]='<a href="../doc_warehouse/index.php?id=2">Load Cells</a>'
submenu05[2]='<a href="../doc_warehouse/index.php?id=3">Product Literature</a>'

// SUBMENU 6 -- Contact Information
var submenu06 = new Array()
submenu06[0]='<a href="../contact_us.php">Contact Us</a>'
submenu06[1]='<a href="../employment.php">Employment</a>'
submenu06[2]='<a href="../history.php">History</a>'
submenu06[3]='<a href="../calendar.php">Event Calendar</a>'
submenu06[4]='<a href="../helpdesk.php">Helpdesk</a>'
		
var menuwidth='160px' //default menu width
var menubgcolor='#008A9A'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
// -->