<!-- Navigation bar script -->


//Javascript, PHP Code based on styles by Ashraf Metry

//ashraf@ametry.com


var Menu1 = new Array ()

var subMenu1 = new Array ()




   Menu1[0] = new Array("What is LRTC?","/clo/lrtcis.html","_top", "left")

     subMenu1[0] = new Array()

     subMenu1[0][0] = new Array ("What is LRTC?","/clo/lrtcis.html","_top", "left")

     subMenu1[0][1] = new Array ("What is a mentor?","/clo/mentoris.html","_top", "left")

     subMenu1[0][2] = new Array ("What is Least Resistance Training?","/clo/lrtis1.html","_top", "left")

     subMenu1[0][3] = new Array ("IRS Determination Letter","/gra/lrtc501.jpg","_top", "left")

     subMenu1[0][4] = new Array ("Nevada Tax Exemption Letter","/gra/nvexletter.pdf","_top", "left")

   Menu1[1] = new Array("LRTC Help Desk","/men/help.html","_top")

     subMenu1[1] = new Array()

     subMenu1[1][0] = new Array ("Adopter Help Desk","/men/help.html","_top")

     subMenu1[1][1] = new Array ("Adoption Information","http://www.kbrhorse.net/whb/blmhrs02.html#1","_top")

     subMenu1[1][2] = new Array ("WHB Support Groups","http://www.kbrhorse.net/whb/whbgroup.html#1","_top")

     subMenu1[1][3] = new Array ("WHB Registries","http://www.kbrhorse.net/whb/whbgroup.html#2","_top")


   Menu1[2] = new Array("Training Section","http://www.kbrhorse.net/pag/train.html","_top", "left")

     subMenu1[2] = new Array()

     subMenu1[2][0] = new Array ("Basic Behavior & Principles","http://www.kbrhorse.net/pag/train.html#contents","_top")

     subMenu1[2][1] = new Array ("Wild & Unsocialized Horses","http://www.kbrhorse.net/pag/train.html#unsocialized","_top", "left")

     subMenu1[2][2] = new Array ("Basic Training Approaches","http://www.kbrhorse.net/pag/train.html#basic","_top")

     subMenu1[2][3] = new Array ("Intermediate Training Approaches","http://www.kbrhorse.net/pag/train.html#intermediate","_top")

     subMenu1[2][4] = new Array ("Other Important Issues","http://www.kbrhorse.net/pag/train.html#other","_top", "left")

     subMenu1[2][5] = new Array ("Specific Training Subcategories","http://www.kbrhorse.net/pag/train.html#subcategories","_top", "left")


   Menu1[3] = new Array("Workshops & Clinics","/whw/whw.html","_top", "left")

       subMenu1[3] = new Array()

       subMenu1[3][0] = new Array ("Workshops & Clinics","/whw/whw.html","_top")

       subMenu1[3][1] = new Array ("California Weekly Activities (KBR)","/activities/play_days_2011_kbr.pdf","_top")


   Menu1[4] = new Array("Safety Section","/saf/safety.html","_top", "left")

     subMenu1[4] = new Array()

     subMenu1[4][0] = new Array ("Safety & Survival Section Main Index", "/saf/safety.html","_top", "left")

     subMenu1[4][1] = new Array ("Protecting Your Horse in the Event of Fire, Earthquake or Flood", "/saf/protectingyourhorse.pdf","_top", "left")

     subMenu1[4][2] = new Array ("Equestrian 'Crash Course' series", "/saf/safety.html#crash","_top", "left")

     subMenu1[4][3] = new Array ("Trail Blazer 'Survival Guide' series", "/saf/safety.html#tb","_top", "left")

     subMenu1[4][4] = new Array ("Animal Safety features", "/saf/safety.html#animal","_top", "left")

     subMenu1[4][5] = new Array ("Weather and Travel Links", "/saf/weather.html","_top", "left")


   Menu1[5] = new Array("WHB Success Stories","http://www.kbrhorse.net/whb/blmhrs03.html#1","_top", "left")

     subMenu1[5] = new Array()

     subMenu1[5][0] = new Array ("Wild Horse & Burro Success Stories","http://www.kbrhorse.net/whb/blmhrs03.html#1","_top")

     subMenu1[5][1] = new Array ("Mustang Gallery","http://www.kbrhorse.net/whb/mustang.html","_top")

     subMenu1[5][2] = new Array ("Longears Gallery","http://www.kbrhorse.net/whb/longears.html","_top")


   Menu1[6] = new Array("Issues & Answers","http://www.kbrhorse.net/whb/blmhrs04.html#1","_top", "right")

     subMenu1[6] = new Array()

     subMenu1[6][0] = new Array ("Issues & Answers", "http://www.kbrhorse.net/whb/blmhrs04.html#1","_top", "right")

     subMenu1[6][1] = new Array ("Wild Horse & Burro Management","http://www.kbrhorse.net/whb/blmhrs01.html","_top", "right")

     subMenu1[6][2] = new Array ("Wild Horses by States","http://www.kbrhorse.net/whb/blmhrs03.html#2","_top", "right")


   Menu1[7] = new Array("Rehab Project","/lhp/lhp01.html","_top", "left")

     subMenu1[7] = new Array()

     subMenu1[7][0] = new Array ("Lucky Horse Rehab Project","http://www.whmentors.org/lhp/lhp01.html","_top", "left")

     subMenu1[7][1] = new Array ("Horse Health","http://www.kbrhorse.net/pag/health.html","_top", "left")

     subMenu1[7][2] = new Array ("Horse Health Section","http://www.kbrhorse.net/pag/health.html","_top", "left")


   Menu1[8] = new Array("You Can Help!","http://www.kbrhorse.net/whb/blmhrs04.html#3","_top", "left")

     subMenu1[8] = new Array()

     subMenu1[8][0] = new Array ("You Can Help!", "http://www.kbrhorse.net/whb/blmhrs04.html#3","_top", "left")


   Menu1[9] = new Array("Adoption Schedule","http://www.kbrhorse.net/whb/blmhrs01.html#2","_top", "left")

     subMenu1[9] = new Array()

     subMenu1[9][0] = new Array ("Wild Horse & Burro Adoption Schedule","http://www.kbrhorse.net/whb/blmhrs01.html#2","_top", "left")

   Menu1[10] = new Array("Mentors Scrapbook","/men/mscrap01.html","_top", "left")

     subMenu1[10] = new Array()

     subMenu1[10][0] = new Array ("Mentors Scrapbook","/men/mscrap01.html","_top", "left")

     subMenu1[10][1] = new Array ("Featured Albums","/men/mscrap01.html#featured","_top", "left")

     subMenu1[10][2] = new Array ("Wild Horse Workshops","/men/mscrap01.html#workshops","_top", "left")

     subMenu1[10][3] = new Array ("Wild Horse U","/men/mscrap01.html#whu","_top", "left")

     subMenu1[10][4] = new Array ("Promoting Horse & Burro Adoptions","/men/mscrap01.html#adoptions","_top", "left")

     subMenu1[10][5] = new Array ("Special Projects","/men/mscrap01.html#projects","_top", "left")

     subMenu1[10][6] = new Array ("Range Activities","/men/mscrap01.html#range","_top", "left")


   Menu1[11] = new Array("VIDEOS (New)","/clo/videos.html","_top", "left")

     subMenu1[11] = new Array()

     subMenu1[11][0] = new Array ("Index to Mentor and Rescue Videos","/clo/videos.html","_top", "left")

     subMenu1[11][1] = new Array ("Butterfield Stallions at Play","http://www.youtube.com/watch?v=gOCSCwSKT0Q","_top", "left")

     subMenu1[11][2] = new Array ("Carrol Abel Photos","http://www.youtube.com/watch?v=mDht_MFyrTA","_top", "left")

     subMenu1[11][3] = new Array ("Extortion by Nevada Officials?","http://www.youtube.com/v/ZRmHag1JfDo","_top", "left")

     subMenu1[11][4] = new Array ("Frank Bell at the Tooele Wild Horse Workshop","http://www.youtube.com/v/jmdA-5LjtHg","_top", "left")

     subMenu1[11][5] = new Array ("Home Means Nevada for Wild Horses","http://www.youtube.com/v/8LjgJY-E1OE","_top", "left")

     subMenu1[11][6] = new Array ("Horse Slaughter - Not an American Pastime","http://www.youtube.com/watch?v=4v--HzUSKDo","_top", "left")

     subMenu1[11][7] = new Array ("Landfill Foals - NDoA Does It Again","http://www.youtube.com/v/hhOHoE-eBq8","_top", "left")

     subMenu1[11][8] = new Array ("Little Bit of Trouble","http://www.youtube.com/watch?v=hshQW9yqJnc","_top", "left")

     subMenu1[11][9] = new Array ("NV Dept.of Ag. Scam on WWER","http://www.youtube.com/v/fLBpBhshFtg","_top", "left")

     subMenu1[11][10] = new Array ("Onaqui WIld Horses / Unloading, Tooele Wild Horse Workshop","http://www.youtube.com/v/5kG5Zm-QLxA","_top", "left")

     subMenu1[11][11] = new Array ("The Rescue of Little Iron Man","http://www.youtube.com/watch?v=b-o7cKnMo30","_top", "left")

     subMenu1[11][12] = new Array ("Robert Denlinger at Tooele Wild Horse Workshop","http://www.youtube.com/v/bCzIbRDLAyU","_top", "left")

     subMenu1[11][13] = new Array ("Spring in Nevada","http://www.youtube.com/watch?v=2vSGWXGL8wk","_top", "left")

     subMenu1[11][14] = new Array ("Swedes Gone Wild","http://www.youtube.com/watch?v=jkU2aCmcWmQ","_top", "left")

     subMenu1[11][15] = new Array ("Tony Lesperance - Plan to Remove Wild Horses","http://www.youtube.com/v/q2I9kLNE6BU","_top", "left")

     subMenu1[11][16] = new Array ("Topaz St. Foal Rescue","http://www.youtube.com/watch?v=O6KHcA2u4Xw","_top", "left")

     subMenu1[11][17] = new Array ("TRI Wild Horse Release","http://www.youtube.com/watch?v=h6WzeScsuTg","_top", "left")

     subMenu1[11][18] = new Array ("What Advocates Do","http://www.youtube.com/watch?v=JYbrEWwy8-Q","_top", "left")

     subMenu1[11][19] = new Array ("Wild Horse Poker","http://www.youtube.com/watch?v=0-eauilWAXk","_top", "left")

   Menu1[12] = new Array("Contact Us","/clo/contact.html","_top", "left")

     subMenu1[12] = new Array()

     subMenu1[12][0] = new Array ("Contact Us","/clo/contact.html","_top", "left")

   Menu1[13] = new Array("Web Bugs","mailto:willis@kbrhorse.net?subject=Whmentors_Website_Bugs","_top", "left")

     subMenu1[13] = new Array()

     subMenu1[13][0] = new Array ("To Report Website Problems", "mailto:willis@kbrhorse.net?subject=Whmentors_Website_Bugs","_top", "left")


   Menu1[14] = new Array("  Home", "http://www.whmentors.org/","_top", "left")

     subMenu1[14] = new Array()

     subMenu1[14][0] = new Array ("Back to LRTC Main Page", "http://www.whmentors.org/","_top", "left")




////// (Format)

menuStyle = "flat"

cellPadding = 5

cellBorder = 0

verticalOffset = 0

horizontalOffset = 0

subMenuDelay = 1

subIndicate = 1

indicator = "<img src='/images/arrow-right.gif' border='0'>"

////// (Main Menu)

borderColor = "Brown"

borderHighlight = "#97BBD3"

borderShadow = "#31556D"

menuBackground = ""//#9A2B3B"

menuHoverBackground = ""//#F2F2F2"

fontFace = "arial"

fontColour = "#E5AE58"

fontHoverColour = "#FFFFFF"

fontSize = "10pt"

fontDecoration = "none"

fontWeight = "bold"



////// (Sub Menu)

sborderColor = "Black"

sborderHighlight = "#E9E9E2"

sborderShadow = "#83837C"

smenuBackground = "khaki"

smenuHoverBackground = "black"

sfontFace = "arial"

sfontColour = "#000000"

sfontHoverColour = "#FFFFFF"

sfontSize = "8pt"

sfontDecoration = "none"

sfontWeight = "normal"

sfontHoverWeight = "bold"

sShadow = 1


////// END FORMAT MENU


quantity = 1


////// DO NOT EDIT BELOW THIS LINE



// Browser Sniffer

var isIE = (document.getElementById && document.all)?true:false;

var isNS4 = (document.layers)?true:false;

var isNS6 = (document.getElementById && !document.all)?true:false;



var timer;

var obj = (isIE)?"document.all":"document.getElementById"



styleBorder=(menuStyle.toLowerCase() == "flat")?cellBorder:0 



// Menu Styles

document.writeln ('<style>');

document.writeln ('.rcMenuStatic {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontColour+';font-weight:'+fontWeight+';background-color:'+menuBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');

document.writeln ('.rcMenuHover  {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontHoverColour+';font-weight:'+fontWeight+';background-color:'+menuHoverBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');

document.writeln ('.rcSubMenuStatic {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuBackground+'; cursor:hand}');

document.writeln ('.rcSubMenuHover  {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontHoverColour+';font-weight:'+sfontHoverWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuHoverBackground+'; cursor:hand}');

document.writeln ('</style>');



// Build and show the main menu items

function showMenus(quant,definedOrientation)

{

  if(definedOrientation!=""){orientation=definedOrientation}

  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table width="100%"  border="0" cellpadding="0" cellspacing="'+styleBorder+'" ')}

  else{document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor+'"><tr>')}  


  for (x=0; x<eval("Menu"+quant).length; x++)

  {

    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')

    document.writeln ('<td onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')"  ')

    if (menuStyle.toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+borderHighlight+';border-top:'+cellBorder+'px solid '+borderHighlight+';border-right:'+cellBorder+'px solid '+borderShadow+';border-bottom:'+cellBorder+'px solid '+borderShadow+';"');}        

    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" cellpadding="'+cellPadding+'" cellspacing="0" width="100%"><tr><td class="rcMenuStatic" id="'+quant+'cell'+x+'" nowrap>');

    document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic" id="'+quant+'cell'+x+'a" align="right">');

      document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic">'+indicator+'</a></td>');}

    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')

  }

  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}

  else{document.writeln ('</tr></table>');}   

  



// Build the sub menu items

  for (x=0; x<eval("Menu"+quant).length; x++)

  { 

    if (eval("subMenu"+quant)[x].length > 0)

    {     

      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');

      document.writeln ('<table class="cell_all" border="0" width="150" cellpadding="'+cellPadding+'" cellspacing="'+styleBorder+'" bgColor="'+sborderColor+'">');

      for (y=0; y<eval("subMenu"+quant)[x].length; y++)

      {

        document.writeln ('<tr><td id="'+quant+'subMenu'+x+y+'" class="rcSubMenuStatic" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+');" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')

        if (menuStyle.toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight+';border-top:'+cellBorder+'px solid '+sborderHighlight+';border-right:'+cellBorder+'px solid '+sborderShadow+';border-bottom:'+cellBorder+'px solid '+sborderShadow+';"');}

        document.writeln ('><a id="'+quant+'subLink'+x+y+'" href="'+eval("subMenu"+quant)[x][y][1]+'" target="'+eval("subMenu"+quant)[x][y][2]+'" class="rcSubMenuStatic">'+eval("subMenu"+quant)[x][y][0]+'</a></td></tr>');

      }

      document.writeln ('</table></div>');

    }

  }

} 



// Change colour or menu and submenu items when the mouse hovers over.  

function highlightMenu(element,mainMenu,dropMenu,state,quant)

{

  hoverMenu();

  state=(state == "hover")?"rcMenuHover":"rcMenuStatic"

  if (element == "sub")

  {

    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)

     {

      eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic"')

      eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic"')

    }   

    eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover"')

    eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover"')

  }

  else

  {

    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')

    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')

    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)

    {

      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')

      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')

    }

  }

}



// Find positioning for sub menus

function getOffset(obj, dim) 

{

  if(dim=="left") 

  {     

    oLeft = obj.offsetLeft;    

    while(obj.offsetParent!=null) 

    {    

      oParent = obj.offsetParent     

      oLeft += oParent.offsetLeft 

      obj = oParent 	

    }

    return oLeft

  }

  else if(dim=="top")

  {

    oTop = obj.offsetTop;

    while(obj.offsetParent!=null) 

    {

      oParent = obj.offsetParent

      oTop += oParent.offsetTop

      obj = oParent 	

    }

    return oTop

  }

  else if(dim=="width")

  {

    oWidth = obj.offsetWidth

    return oWidth

  }  

  else if(dim=="height")

  {

    oHeight = obj.offsetHeight

    return oHeight

  }    

  else

  {

    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")

    return false;

  }

}



// Show sub menus

function popDown(quant, param, id, orientation)

{

  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)

  var browserAdjustment = (isNS6)?cellBorder:0

  var menu;

  var button;



  if (id)

  {    

    getOffset(eval(obj+'(id)'),'left');

    getOffset(eval(obj+'(id)'),'top');    

    getOffset(eval(obj+'(id)'),'width');  

    getOffset(eval(obj+'(id)'),'height');

    

    if (eval("Menu"+quant+"["+param+"][3]")=="right") 

    { 

      oLeft=oLeft  

      oLeft=oLeft+oWidth; 

      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');

      oLeft=oLeft-oWidth ;

      alignAdjustment = cellBorder*2 + 1

    }

    else 

    {

      alignAdjustment = 0

      oLeft=oLeft

    }    

  }  



  

  n = 0;    

  while (n < eval("Menu"+quant).length)

  {          

    menu = quant+"MENU"+n

    if (param == n)

    {

      theObj = eval(obj+'(menu)');

      if (theObj)

      {

         theObj.style.visibility = "visible"



          if (orientation.toLowerCase()=="vertical"){

            theObj.style.left=(menuStyle.toLowerCase()=="flat")?oLeft+oWidth+cellBorder+horizontalOffset:oLeft+oWidth+cellBorderOffset+horizontalOffset;

            theObj.style.top=(menuStyle.toLowerCase()=="flat")?oTop-cellBorder+verticalOffset:oTop+verticalOffset-browserAdjustment}

          else{

            theObj.style.left=(menuStyle.toLowerCase()=="flat")?oLeft-cellBorder+horizontalOffset+alignAdjustment:oLeft+horizontalOffset-browserAdjustment+alignAdjustment;

            theObj.style.top=(menuStyle.toLowerCase()=="flat")?oTop+oHeight+cellBorder+verticalOffset:oTop+oHeight+cellBorderOffset+verticalOffset;}

        }

      

       highlightMenu('main',n,'','hover',quant)

       if (eval("subMenu"+quant)[param].length > 0)

       {

         for (x=0; x<eval("subMenu"+quant)[param].length; x++)

         {

           eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic"')

           eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic"')         

         }

       }

    }

    else 

    {  

      for (x=1; x<quantity+1; x++)

      {       

        menu = x+"MENU"+n   

        //alert(menu)     

        if (eval(obj+'(menu)'))

        {

          eval(obj+'(menu).style.visibility = "hidden"')            

        }

        highlightMenu ('main',n,'','static',quant)

      }

    }

    n++

  }  

}



// Re-set timer for sub menus

function hoverMenu()

{

  if(timer)

  clearTimeout(timer)

}



// Set timer for sub menus

function clearMenu(quant,menu)

{

  setDelay = subMenuDelay*1000

  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1

  

  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)

}



// when you click the box, perform the same function as if the user had clicked the hyperlink

function tdMouseClick(theElement)

{

  eval(obj+'(theElement).click()')

}





//-->


