<!-- 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("  WAR ROOM", "/war/war_room.html","_top", "left")

     subMenu1[0] = new Array()

     subMenu1[0][0] = new Array ("Main War Room Page", "/war/war_room.html","_top", "left")

     subMenu1[0][1] = new Array ("Calico Roundup", "/war/calico0901.html","_top", "left")

     subMenu1[0][2] = new Array ("Cloud's herd", "/war/cloud0901.html","_top", "left")

     subMenu1[0][3] = new Array ("ROAM Act", "/war/roam0901.html","_top", "left")

     subMenu1[0][4] = new Array ("Sheldon", "/war/sheldon0901.html","_top", "left")

     subMenu1[0][5] = new Array ("Slaughter", "/war/sheldon0901.html","_top", "left")

     subMenu1[0][6] = new Array ("West Douglas", "/war/west_douglas0901.html","_top", "left")

     subMenu1[0][7] = new Array ("Winecup Gamble", "/war/winecup_gamble0901.html","_top", "left")

     subMenu1[0][8] = new Array ("Virginia Range", "/war/virginia_range0901.html","_top", "left")


   Menu1[1] = new Array("  Media", "/press/pressndx.html","_top")

     subMenu1[1] = new Array()

     subMenu1[1][0] = new Array ("Press Reports", "/press/pressndx.html","_top")

     subMenu1[1][1] = new Array ("Press Releases", "/documents/pressreleasendx.html","_top")

     subMenu1[1][2] = new Array ("Opinion Page", "/opinions/opinionsndx.html","_top")

     subMenu1[1][3] = new Array ("Wild Horse & Burro Stories", "/documents/horsendx.html","_top", "left")


   Menu1[2] = new Array("  Notices", "/notices/noticendx.html","_top", "left")

     subMenu1[2] = new Array()

     subMenu1[2][0] = new Array ("Action Items", "/actions/actionsndx.html","_top")

     subMenu1[2][1] = new Array ("News and Happenings", "/notices/noticendx.html","_top", "left")

     subMenu1[2][2] = new Array ("BLM Sale Authority Site",
"http://www.blm.gov/nhp/spotlight/whb_authority/","_top")

     subMenu1[2][3] = new Array ("Rumor Control", "/rumor/rumorndx.html","_top")

     subMenu1[2][4] = new Array ("Wild Horse Coin", "/actions/nvcoin.html","_top", "left")



   Menu1[3] = new Array("  Documents", "/documents/documentsndx.html","_top", "left")

     subMenu1[3] = new Array()

     subMenu1[3][0] = new Array ("The Wild Horse & Burro Act", "/legal/pl92-195.html","_top")

     subMenu1[3][1] = new Array ("Text of the Burns Rider", "/legal/r-142.html","_top")

     subMenu1[3][2] = new Array ("America's Efforts to End Horse Slaughter", "/notices/slaughter01.html","_top")

     subMenu1[3][3] = new Array ("The Restore Our American Mustangs Act", "/notices/s1579.html","_top")

     subMenu1[3][4] = new Array ("Horse & Burro Stories", "/documents/horsendx.html","_top", "left")

     subMenu1[3][5] = new Array ("Legal Documents", "/legal/legalndx.html","_top", "left")

     subMenu1[3][6] = new Array ("Wild Horse Facts", "/documents/facts01.html","_top", "left")

     subMenu1[3][7] = new Array ("Wild Horse Questions & Answers", "/documents/whqna01.html","_top", "left")

     subMenu1[3][8] = new Array ("Wild Horses: Native Animals?", "/documents/whnative01.html","_top", "left")

     subMenu1[3][9] = new Array ("BLM Sale Authority", "/documents/blmsale01.html","_top", "left")

     subMenu1[3][10] = new Array ("WHB Economics", "/documents/adoptionfinances.html","_top", "left")

     subMenu1[3][11] = new Array ("Document Archives", "/documents/documentsndx.html","_top", "left")

     subMenu1[3][12] = new Array ("H.R. 297", "/notices/hr-297.html","_top")

     subMenu1[3][13] = new Array ("H.R. 503", "/notices/hr-503.html","_top")

     subMenu1[3][14] = new Array ("S. 576", "/notices/s-576.html","_top")

     subMenu1[3][15] = new Array ("S. 1273", "/notices/s-1273.html","_top")

     subMenu1[3][16] = new Array ("S. 1915", "/notices/s-1915.html","_top")


   Menu1[4] = new Array("  Congress", "/actions/contactrep.html","_top", "left")

     subMenu1[4] = new Array()

     subMenu1[4][0] = new Array ("H.R. 297", "/notices/hr-297.html","_top")

     subMenu1[4][1] = new Array ("H.R. 503", "/notices/hr-503.html","_top")

     subMenu1[4][2] = new Array ("S. 576", "/notices/s-576.html","_top")

     subMenu1[4][3] = new Array ("S. 1273", "/notices/s-1273.html","_top")

     subMenu1[4][4] = new Array ("S. 1915", "/notices/s-1915.html","_top")

     subMenu1[4][5] = new Array ("Contacting Your Legislators", "/actions/contactrep.html","_top", "left")

     subMenu1[4][6] = new Array ("H.R. 297 Cosponsors",
"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:HR00297:@@@P","_top", "left")

     subMenu1[4][7] = new Array ("H.R. 503 Cosponsors",
"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:HR00503:@@@P","_top", "left")

     subMenu1[4][8] = new Array ("S. 576 Cosponsors",
"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.00576:@@@P","_top", "left")

     subMenu1[4][9] = new Array ("S. 1273 Cosponsors",
"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.01273:@@@P","_top", "left")

     subMenu1[4][10] = new Array ("S. 1915 Cosponsors",
"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.01915:@@@P","_top", "left")

     subMenu1[4][11] = new Array ("Governpub.com",
"http://www.governpub.com","_top", "left")

   Menu1[5] = new Array("  Resources", "/resources/resourcesndx.html","_top", "right")

     subMenu1[5] = new Array()

     subMenu1[5][0] = new Array ("Downloadable Information", "/resources/infondx.html","_top", "right")

     subMenu1[5][1] = new Array ("Postcards & Flyers", "/resources/flyerndx.html","_top", "right")



   Menu1[6] = new Array("  Actions !", "/actions/actionsndx.html","_top", "left")

     subMenu1[6] = new Array()

     subMenu1[6][0] = new Array ("Current Week's Actions", "/actions/index.shtml","_top", "left")


     subMenu1[6][1] = new Array ("Action Index", "/actions/actionsndx.html","_top", "left")

     subMenu1[6][2] = new Array ("Wild Horse Coin", "/actions/nvcoin.html","_top", "left")



   Menu1[7] = new Array("  Kid Action", "/activities/kidspeak0901.html","_top", "left")

     subMenu1[7] = new Array()

     subMenu1[7][0] = new Array ("Kids' Activity Book", "/activities/kidspeak0901.html","_top", "left")


   Menu1[8] = new Array("  Contact Us", "/documents/contact01.html","_top", "left")

     subMenu1[8] = new Array()

     subMenu1[8][0] = new Array ("AOWHA Staff", "/documents/contact01.html","_top", "left")

     subMenu1[8][1] = new Array ("Workgroups", "/documents/contact02.html","_top", "left")


     subMenu1[8][2] = new Array ("BLM 'Point of Contact'", "mailto:wildhorse@blm.gov?subject=Referral_From_AOWHA_Website","_top", "left")

     subMenu1[8][3] = new Array ("Webmaster", "mailto:dlinkous@radix.net?subject=Alliance_Website","_top", "left")


   Menu1[9] = new Array("  Web Bugs", "mailto:willis@kbrhorse.net?subject=Alliance_Website_Bugs","_top", "left")

     subMenu1[9] = new Array()

     subMenu1[9][0] = new Array ("To Report Website Problems", "mailto:willis@kbrhorse.net?subject=Alliance_Website_Bugs","_top", "left")


   Menu1[10] = new Array("  Home", "/","_top", "left")

     subMenu1[10] = new Array()

     subMenu1[10][0] = new Array ("Back to AOWHA Opening Page", "/","_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()')

}





//-->


