PageSourceSearch

https://www.aowha.org/navigate.js

js aowha.org collected 2026-10-02 12:08:38 UTC 18,005 bytes, 748 lines download raw bytes

1<!-- Navigation bar script -->
2
3
4//Javascript, PHP Code based on styles by Ashraf Metry
5
6//[email protected]
7
8
9var Menu1 = new Array ()
10
11var subMenu1 = new Array ()
12
13
14
15
16   Menu1[0] = new Array("  WAR ROOM", "/war/war_room.html","_top", "left")
17
18     subMenu1[0] = new Array()
19
20     subMenu1[0][0] = new Array ("Main War Room Page", "/war/war_room.html","_top", "left")
21
22     subMenu1[0][1] = new Array ("Calico Roundup", "/war/calico0901.html","_top", "left")
23
24     subMenu1[0][2] = new Array ("Cloud's herd", "/war/cloud0901.html","_top", "left")
25
26     subMenu1[0][3] = new Array ("ROAM Act", "/war/roam0901.html","_top", "left")
27
28     subMenu1[0][4] = new Array ("Sheldon", "/war/sheldon0901.html","_top", "left")
29
30     subMenu1[0][5] = new Array ("Slaughter", "/war/sheldon0901.html","_top", "left")
31
32     subMenu1[0][6] = new Array ("West Douglas", "/war/west_douglas0901.html","_top", "left")
33
34     subMenu1[0][7] = new Array ("Winecup Gamble", "/war/winecup_gamble0901.html","_top", "left")
35
36     subMenu1[0][8] = new Array ("Virginia Range", "/war/virginia_range0901.html","_top", "left")
37
38
39   Menu1[1] = new Array("  Media", "/press/pressndx.html","_top")
40
41     subMenu1[1] = new Array()
42
43     subMenu1[1][0] = new Array ("Press Reports", "/press/pressndx.html","_top")
44
45     subMenu1[1][1] = new Array ("Press Releases", "/documents/pressreleasendx.html","_top")
46
47     subMenu1[1][2] = new Array ("Opinion Page", "/opinions/opinionsndx.html","_top")
48
49     subMenu1[1][3] = new Array ("Wild Horse & Burro Stories", "/documents/horsendx.html","_top", "left")
50
51
52   Menu1[2] = new Array("  Notices", "/notices/noticendx.html","_top", "left")
53
54     subMenu1[2] = new Array()
55
56     subMenu1[2][0] = new Array ("Action Items", "/actions/actionsndx.html","_top")
57
58     subMenu1[2][1] = new Array ("News and Happenings", "/notices/noticendx.html","_top", "left")
59
60     subMenu1[2][2] = new Array ("BLM Sale Authority Site",
61"http://www.blm.gov/nhp/spotlight/whb_authority/","_top")
62
63     subMenu1[2][3] = new Array ("Rumor Control", "/rumor/rumorndx.html","_top")
64
65     subMenu1[2][4] = new Array ("Wild Horse Coin", "/actions/nvcoin.html","_top", "left")
66
67
68
69   Menu1[3] = new Array("  Documents", "/documents/documentsndx.html","_top", "left")
70
71     subMenu1[3] = new Array()
72
73     subMenu1[3][0] = new Array ("The Wild Horse & Burro Act", "/legal/pl92-195.html","_top")
74
75     subMenu1[3][1] = new Array ("Text of the Burns Rider", "/legal/r-142.html","_top")
76
77     subMenu1[3][2] = new Array ("America's Efforts to End Horse Slaughter", "/notices/slaughter01.html","_top")
78
79     subMenu1[3][3] = new Array ("The Restore Our American Mustangs Act", "/notices/s1579.html","_top")
80
81     subMenu1[3][4] = new Array ("Horse & Burro Stories", "/documents/horsendx.html","_top", "left")
82
83     subMenu1[3][5] = new Array ("Legal Documents", "/legal/legalndx.html","_top", "left")
84
85     subMenu1[3][6] = new Array ("Wild Horse Facts", "/documents/facts01.html","_top", "left")
86
87     subMenu1[3][7] = new Array ("Wild Horse Questions & Answers", "/documents/whqna01.html","_top", "left")
88
89     subMenu1[3][8] = new Array ("Wild Horses: Native Animals?", "/documents/whnative01.html","_top", "left")
90
91     subMenu1[3][9] = new Array ("BLM Sale Authority", "/documents/blmsale01.html","_top", "left")
92
93     subMenu1[3][10] = new Array ("WHB Economics", "/documents/adoptionfinances.html","_top", "left")
94
95     subMenu1[3][11] = new Array ("Document Archives", "/documents/documentsndx.html","_top", "left")
96
97     subMenu1[3][12] = new Array ("H.R. 297", "/notices/hr-297.html","_top")
98
99     subMenu1[3][13] = new Array ("H.R. 503", "/notices/hr-503.html","_top")
100
101     subMenu1[3][14] = new Array ("S. 576", "/notices/s-576.html","_top")
102
103     subMenu1[3][15] = new Array ("S. 1273", "/notices/s-1273.html","_top")
104
105     subMenu1[3][16] = new Array ("S. 1915", "/notices/s-1915.html","_top")
106
107
108   Menu1[4] = new Array("  Congress", "/actions/contactrep.html","_top", "left")
109
110     subMenu1[4] = new Array()
111
112     subMenu1[4][0] = new Array ("H.R. 297", "/notices/hr-297.html","_top")
113
114     subMenu1[4][1] = new Array ("H.R. 503", "/notices/hr-503.html","_top")
115
116     subMenu1[4][2] = new Array ("S. 576", "/notices/s-576.html","_top")
117
118     subMenu1[4][3] = new Array ("S. 1273", "/notices/s-1273.html","_top")
119
120     subMenu1[4][4] = new Array ("S. 1915", "/notices/s-1915.html","_top")
121
122     subMenu1[4][5] = new Array ("Contacting Your Legislators", "/actions/contactrep.html","_top", "left")
123
124     subMenu1[4][6] = new Array ("H.R. 297 Cosponsors",
125"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:HR00297:@@@P","_top", "left")
126
127     subMenu1[4][7] = new Array ("H.R. 503 Cosponsors",
128"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:HR00503:@@@P","_top", "left")
129
130     subMenu1[4][8] = new Array ("S. 576 Cosponsors",
131"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.00576:@@@P","_top", "left")
132
133     subMenu1[4][9] = new Array ("S. 1273 Cosponsors",
134"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.01273:@@@P","_top", "left")
135
136     subMenu1[4][10] = new Array ("S. 1915 Cosponsors",
137"http://thomas.loc.gov/cgi-bin/bdquery/z?d109:s.01915:@@@P","_top", "left")
138
139     subMenu1[4][11] = new Array ("Governpub.com",
140"http://www.governpub.com","_top", "left")
141
142   Menu1[5] = new Array("  Resources", "/resources/resourcesndx.html","_top", "right")
143
144     subMenu1[5] = new Array()
145
146     subMenu1[5][0] = new Array ("Downloadable Information", "/resources/infondx.html","_top", "right")
147
148     subMenu1[5][1] = new Array ("Postcards & Flyers", "/resources/flyerndx.html","_top", "right")
149
150
151
152   Menu1[6] = new Array("  Actions !", "/actions/actionsndx.html","_top", "left")
153
154     subMenu1[6] = new Array()
155
156     subMenu1[6][0] = new Array ("Current Week's Actions", "/actions/index.shtml","_top", "left")
157
158
159     subMenu1[6][1] = new Array ("Action Index", "/actions/actionsndx.html","_top", "left")
160
161     subMenu1[6][2] = new Array ("Wild Horse Coin", "/actions/nvcoin.html","_top", "left")
162
163
164
165   Menu1[7] = new Array("  Kid Action", "/activities/kidspeak0901.html","_top", "left")
166
167     subMenu1[7] = new Array()
168
169     subMenu1[7][0] = new Array ("Kids' Activity Book", "/activities/kidspeak0901.html","_top", "left")
170
171
172   Menu1[8] = new Array("  Contact Us", "/documents/contact01.html","_top", "left")
173
174     subMenu1[8] = new Array()
175
176     subMenu1[8][0] = new Array ("AOWHA Staff", "/documents/contact01.html","_top", "left")
177
178     subMenu1[8][1] = new Array ("Workgroups", "/documents/contact02.html","_top", "left")
179
180
181     subMenu1[8][2] = new Array ("BLM 'Point of Contact'", "mailto:[email protected]?subject=Referral_From_AOWHA_Website","_top", "left")
182
183     subMenu1[8][3] = new Array ("Webmaster", "mailto:[email protected]?subject=Alliance_Website","_top", "left")
184
185
186   Menu1[9] = new Array("Defense Fund", "/war/defense_fund.html","_top", "left")
187
188     subMenu1[9] = new Array()
189
190     subMenu1[9][0] = new Array ("Virginia Range Horse Defense Fund", "/war/defense_fund.html","_top", "left")
191
192   Menu1[10] = new Array("  Web Bugs", "mailto:[email protected]?subject=Alliance_Website_Bugs","_top", "left")
193
194     subMenu1[10] = new Array()
195
196     subMenu1[10][0] = new Array ("To Report Website Problems", "mailto:[email protected]?subject=Alliance_Website_Bugs","_top", "left")
197
198
199   Menu1[11] = new Array("  Home", "/","_top", "left")
200
201     subMenu1[11] = new Array()
202
203     subMenu1[11][0] = new Array ("Back to AOWHA Opening Page", "/","_top", "left")
204
205
206
207
208////// (Format)
209
210menuStyle = "flat"
211
212cellPadding = 5
213
214cellBorder = 0
215
216verticalOffset = 0
217
218horizontalOffset = 0
219
220subMenuDelay = 1
221
222subIndicate = 1
223
224indicator = "<img src='images/arrow-right.gif' border='0'>"
225
226////// (Main Menu)
227
228borderColor = "Brown"
229
230borderHighlight = "#97BBD3"
231
232borderShadow = "#31556D"
233
234menuBackground = ""//#9A2B3B"
235
236menuHoverBackground = ""//#F2F2F2"
237
238fontFace = "arial"
239
240fontColour = "#E5AE58"
241
242fontHoverColour = "#FFFFFF"
243
244fontSize = "10pt"
245
246fontDecoration = "none"
247
248fontWeight = "bold"
249
250
251
252////// (Sub Menu)
253
254sborderColor = "Black"
255
256sborderHighlight = "#E9E9E2"
257
258sborderShadow = "#83837C"
259
260smenuBackground = "khaki"
261
262smenuHoverBackground = "black"
263
264sfontFace = "arial"
265
266sfontColour = "#000000"
267
268sfontHoverColour = "#FFFFFF"
269
270sfontSize = "8pt"
271
272sfontDecoration = "none"
273
274sfontWeight = "normal"
275
276sfontHoverWeight = "bold"
277
278sShadow = 1
279
280
281////// END FORMAT MENU
282
283
284quantity = 1
285
286
287////// DO NOT EDIT BELOW THIS LINE
288
289
290
291// Browser Sniffer
292
293var isIE = (document.getElementById && document.all)?true:false;
294
295var isNS4 = (document.layers)?true:false;
296
297var isNS6 = (document.getElementById && !document.all)?true:false;
298
299
300
301var timer;
302
303var obj = (isIE)?"document.all":"document.getElementById"
304
305
306
307styleBorder=(menuStyle.toLowerCase() == "flat")?cellBorder:0 
308
309
310
311// Menu Styles
312
313document.writeln ('<style>');
314
315document.writeln ('.rcMenuStatic {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontColour+';font-weight:'+fontWeight+';background-color:'+menuBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
316
317document.writeln ('.rcMenuHover  {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontHoverColour+';font-weight:'+fontWeight+';background-color:'+menuHoverBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
318
319document.writeln ('.rcSubMenuStatic {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuBackground+'; cursor:hand}');
320
321document.writeln ('.rcSubMenuHover  {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontHoverColour+';font-weight:'+sfontHoverWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuHoverBackground+'; cursor:hand}');
322
323document.writeln ('</style>');
324
325
326
327// Build and show the main menu items
328
329function showMenus(quant,definedOrientation)
330
331{
332
333  if(definedOrientation!=""){orientation=definedOrientation}
334
335  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table width="100%"  border="0" cellpadding="0" cellspacing="'+styleBorder+'" ')}
336
337  else{document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor+'"><tr>')}  
338
339
340  for (x=0; x<eval("Menu"+quant).length; x++)
341
342  {
343
344    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')
345
346    document.writeln ('<td onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')"  ')
347
348    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+';"');}        
349
350    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>');
351
352    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>');
353
354    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){
355
356      document.writeln('<td class="rcMenuStatic" id="'+quant+'cell'+x+'a" al
356ign="right">');
357
358      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>');}
359
360    document.writeln ('</tr></table></div></td>');    
361
362    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')
363
364  }
365
366  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}
367
368  else{document.writeln ('</tr></table>');}   
369
370  
371
372
373
374// Build the sub menu items
375
376  for (x=0; x<eval("Menu"+quant).length; x++)
377
378  { 
379
380    if (eval("subMenu"+quant)[x].length > 0)
381
382    {     
383
384      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');
385
386      document.writeln ('<table class="cell_all" border="0" width="150" cellpadding="'+cellPadding+'" cellspacing="'+styleBorder+'" bgColor="'+sborderColor+'">');
387
388      for (y=0; y<eval("subMenu"+quant)[x].length; y++)
389
390      {
391
392        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')
393
394        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+';"');}
395
396        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>');
397
398      }
399
400      document.writeln ('</table></div>');
401
402    }
403
404  }
405
406} 
407
408
409
410// Change colour or menu and submenu items when the mouse hovers over.  
411
412function highlightMenu(element,mainMenu,dropMenu,state,quant)
413
414{
415
416  hoverMenu();
417
418  state=(state == "hover")?"rcMenuHover":"rcMenuStatic"
419
420  if (element == "sub")
421
422  {
423
424    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)
425
426     {
427
428      eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic"')
429
430      eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic"')
431
432    }   
433
434    eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
435
436    eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
437
438  }
439
440  else
441
442  {
443
444    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')
445
446    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')
447
448    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)
449
450    {
451
452      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')
453
454      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')
455
456    }
457
458  }
459
460}
461
462
463
464// Find positioning for sub menus
465
466function getOffset(obj, dim) 
467
468{
469
470  if(dim=="left") 
471
472  {     
473
474    oLeft = obj.offsetLeft;    
475
476    while(obj.offsetParent!=null) 
477
478    {    
479
480      oParent = obj.offsetParent     
481
482      oLeft += oParent.offsetLeft 
483
484      obj = oParent 	
485
486    }
487
488    return oLeft
489
490  }
491
492  else if(dim=="top")
493
494  {
495
496    oTop = obj.offsetTop;
497
498    while(obj.offsetParent!=null) 
499
500    {
501
502      oParent = obj.offsetParent
503
504      oTop += oParent.offsetTop
505
506      obj = oParent 	
507
508    }
509
510    return oTop
511
512  }
513
514  else if(dim=="width")
515
516  {
517
518    oWidth = obj.offsetWidth
519
520    return oWidth
521
522  }  
523
524  else if(dim=="height")
525
526  {
527
528    oHeight = obj.offsetHeight
529
530    return oHeight
531
532  }    
533
534  else
535
536  {
537
538    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
539
540    return false;
541
542  }
543
544}
545
546
547
548// Show sub menus
549
550function popDown(quant, param, id, orientation)
551
552{
553
554  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)
555
556  var browserAdjustment = (isNS6)?cellBorder:0
557
558  var menu;
559
560  var button;
561
562
563
564  if (id)
565
566  {    
567
568    getOffset(eval(obj+'(id)'),'left');
569
570    getOffset(eval(obj+'(id)'),'top');    
571
572    getOffset(eval(obj+'(id)'),'width');  
573
574    getOffset(eval(obj+'(id)'),'height');
575
576    
577
578    if (eval("Menu"+quant+"["+param+"][3]")=="right") 
579
580    { 
581
582      oLeft=oLeft  
583
584      oLeft=oLeft+oWidth; 
585
586      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');
587
588      oLeft=oLeft-oWidth ;
589
590      alignAdjustment = cellBorder*2 + 1
591
592    }
593
594    else 
595
596    {
597
598      alignAdjustment = 0
599
600      oLeft=oLeft
601
602    }    
603
604  }  
605
606
607
608  
609
610  n = 0;    
611
612  while (n < eval("Menu"+quant).length)
613
614  {          
615
616    menu = quant+"MENU"+n
617
618    if (param == n)
619
620    {
621
622      theObj = eval(obj+'(menu)');
623
624      if (theObj)
625
626      {
627
628         theObj.style.visibility = "visible"
629
630
631
632          if (orientation.toLowerCase()=="vertical"){
633
634            theObj.style.left=(menuStyle.toLowerCase()=="flat")?oLeft+oWidth+cellBorder+horizontalOffset:oLeft+oWidth+cellBorderOffset+horizontalOffset;
635
636            theObj.style.top=(menuStyle.toLowerCase()=="flat")?oTop-cellBorder+verticalOffset:oTop+verticalOffset-browserAdjustment}
637
638          else{
639
640            theObj.style.left=(menuStyle.toLowerCase()=="flat")?oLeft-cellBorder+horizontalOffset+alignAdjustment:oLeft+horizontalOffset-browserAdjustment+alignAdjustment;
641
642            theObj.style.top=(menuStyle.toLowerCase()=="flat")?oTop+oHeight+cellBorder+verticalOffset:oTop+oHeight+cellBorderOffset+verticalOffset;}
643
644        }
645
646      
647
648       highlightMenu('main',n,'','hover',quant)
649
650       if (eval("subMenu"+quant)[param].length > 0)
651
652       {
653
654         for (x=0; x<eval("subMenu"+quant)[param].length; x++)
655
656         {
657
658           eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic"')
659
660           eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic"')         
661
662         }
663
664       }
665
666    }
667
668    else 
669
670    {  
671
672      for (x=1; x<quantity+1; x++)
673
674      {       
675
676        menu = x+"MENU"+n   
677
678        //alert(menu)     
679
680        if (eval(obj+'(menu)'))
681
682        {
683
684          eval(obj+'(menu).style.visibility = "hidden"')            
685
686        }
687
688        highlightMenu ('main',n,'','static',quant)
689
690      }
691
692    }
693
694    n++
695
696  }  
697
698}
699
700
701
702// Re-set timer for sub menus
703
704function hoverMenu()
705
706{
707
708  if(timer)
709
710  clearTimeout(timer)
711
712}
713
714
715
716// Set timer for sub menus
717
718function clearMenu(quant,menu)
719
720{
721
722  setDelay = subMenuDelay*1000
723
724  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1
725
726  
727
728  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)
729
730}
731
732
733
734// when you click the box, perform the same function as if the user had clicked the hyperlink
735
736function tdMouseClick(theElement)
737
738{
739
740  eval(obj+'(theElement).click()')
741
742}
743
744
745
746
747
748//-->

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.