// as of 11 Mar 08, includes JumpTop.js...
	/*
	Top Navigational Bar II (By Mike Hall)
	Last updated: 00/05/08
	Permission granted and modified by Dynamicdrive.com to include script in archive
	For this and 100's more DHTML scripts, visit http://dynamicdrive.com
	*/

	var myNavBar1 = new NavBar(0);
	var dhtmlMenu;

	//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
	//add more menus simply by adding more "blocks" of same code below

	dhtmlMenu = new NavBarMenu(80, 0);
	dhtmlMenu.addItem(new NavBarMenuItem("Home", "http://www.nasma.us"));
	myNavBar1.addMenu(dhtmlMenu);

	dhtmlMenu = new NavBarMenu(110, 110);
	dhtmlMenu.addItem(new NavBarMenuItem("Divisions", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("Educational", "http://www.nasma.us/Educational/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Show", "http://www.nasma.us/Shows/index.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("Versatility Trail", "http://www.nasma.us/VTP/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Youth", "http://www.nasma.us/Youth/index.htm"));
	myNavBar1.addMenu(dhtmlMenu);

	dhtmlMenu = new NavBarMenu(140, 170);
	dhtmlMenu.addItem(new NavBarMenuItem("Membership", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("Presidents Pen", "http://www.nasma.us/PresidentPens/Tom%20Cochran/2010.7.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Officers", "http://www.nasma.us/Officers.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("Committees", "http://www.nasma.us/Committees/"));
	dhtmlMenu.addItem(new NavBarMenuItem("Charter & Lifetime Members", "http://www.nasma.us/mbrship/charterlife.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("Farm Names", "http://www.nasma.us/FarmNames/index.asp"));
dhtmlMenu.addItem(new NavBarMenuItem("Forms", "http://www.nasma.us/Forms/index.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("Account Log In", "http://www.nasma.us/MemberArea/index.asp"));	
	myNavBar1.addMenu(dhtmlMenu);	

	dhtmlMenu = new NavBarMenu(130, 170);
	dhtmlMenu.addItem(new NavBarMenuItem("Rule Book", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("7th Edition Rule Book", "http://www.nasma.net/SEVENTH%20EDITION.pdf"));
	dhtmlMenu.addItem(new NavBarMenuItem("Rule Change Procedures", "http://www.nasma.us/RuleBook/RuleChanges.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("Proposed Rule Changes", "http://www.nasma.us/RuleBook/RuleChangeProposals.asp"));
	dhtmlMenu.addItem(new NavBarMenuItem("SOP Guidelines", "http://www.nasma.us/RuleBook/CommitteeSOPs.htm"));
	myNavBar1.addMenu(dhtmlMenu);

	dhtmlMenu = new NavBarMenu(140, 140);
	dhtmlMenu.addItem(new NavBarMenuItem("News & Events", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("News", "http://www.nasma.us/News/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Events Calendar", "http://www.nasma.us/News/Calendar.asp"));
	myNavBar1.addMenu(dhtmlMenu);

	dhtmlMenu = new NavBarMenu(90, 90);
	dhtmlMenu.addItem(new NavBarMenuItem("Links", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("Mule Tracker", "http://www.nasma.us/Tracker/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Sponsors", "http://www.nasma.us/Sponsors/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("VTP Sponsors", "http://www.nasma.us/VTP/Sponsors/index.htm"));
	myNavBar1.addMenu(dhtmlMenu);

	dhtmlMenu = new NavBarMenu(130, 140);
	dhtmlMenu.addItem(new NavBarMenuItem("About NASMA", ""));
	dhtmlMenu.addItem(new NavBarMenuItem("History of NASMA", "http://www.nasma.us/About/History.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Director Bios", "http://www.nasma.us/Bios/index.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Moments in Time", "http://www.nasma.us/About/MomentsinTime.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("What is a Mule", "http://www.nasma.us/About/Mules.htm"));
	dhtmlMenu.addItem(new NavBarMenuItem("Jackstock", "http://www.nasma.us/Jacks/"));
	dhtmlMenu.addItem(new NavBarMenuItem("Promotional Material", "http://www.nasma.us/printmaterial/"));
	dhtmlMenu.addItem(new NavBarMenuItem("Admin Area", "http://www.nasma.us/DBUpdates/"));
	myNavBar1.addMenu(dhtmlMenu);

	//set menu colors
        // (toptablecolor, topfont, topcellcolor)   
	myNavBar1.setColors("", "#FFFFFF", "", "#36395F", "#FFFFFF", "#FFFFFF", "#36395F", "#36395F", "#CCCCCC")
//	myNavBar1.setColors("#36395F", "#FFFFFF", "#36395F", "#36395F", "#FFFFFF", "#FFFFFF", "#36395F", "#36395F", "#FFFFFF")

	//uncomment below line to center the menu (valid values are "left", "center", and "right"
	myNavBar1.setAlign("center")

	var fullWidth;

	function init() {

	  // Get width of window, need to account for scrollbar width in Netscape.

	  fullWidth = getWindowWidth() 
	    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
	  myNavBar1.setAlign("center")
	  myNavBar1.resize (fullWidth);
	  //  myNavBar1.create();

	  myNavBar1.setzIndex(2);
	  myNavBar1.setSizes(1, 2, 1)
	  myNavBar1.create();
	  //UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels i.e. move(left, top)
	  myNavBar1.moveTo(0, 129);
	}
// ****************** JumpTop
/***********************************************
* Jump To Top Link Script- © Dynamic Drive (www.dynamicdrive.com)
* Last updated Nov 13th, 03'.
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify the text to display
var displayed="<nobr><b><font color='#FFFFFF' size='2'>[Top]</font></b></nobr>"

///////////////////////////Do not edit below this line////////////

var logolink='javascript:window.scrollTo(0,0)'
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4)
setTimeout("window.onresize=regenerate",400)
}

if (ie4||ns6)
document.write('<span id="logo" style="position:absolute;top:-300px;z-index:100">'+displayed+'</span>')

function createtext(){ //function for NS4
staticimage=new Layer(5)
staticimage.left=-300
staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')
staticimage.document.close()
staticimage.visibility="show"
regenerate2()
staticitns()
}

function staticit(){ //function for IE4/ NS6
var w2=ns6? pageXOffset+w : ietruebody().scrollLeft+w
var h2=ns6? pageYOffset+h : ietruebody().scrollTop+h
crosslogo.style.left=w2+"px"
crosslogo.style.top=h2+"px"
}

function staticit2(){ //function for NS4
staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28
staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10
}

function inserttext(){ //function for IE4/ NS6
if (ie4)
crosslogo=document.all.logo
else if (ns6)
crosslogo=document.getElementById("logo")
crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
w=ns6 || window.opera? window.innerWidth-crosslogo.offsetWidth-20 : ietruebody().clientWidth-crosslogo.offsetWidth-10
h=ns6 || window.opera? window.innerHeight-crosslogo.offsetHeight-15 : ietruebody().clientHeight-crosslogo.offsetHeight-10
crosslogo.style.left=w+"px"
crosslogo.style.top=h+"px"
if (ie4)
window.onscroll=staticit
else if (ns6)
startstatic=setInterval("staticit()",100)
}

if (ie4||ns6){
if (window.addEventListener)
window.addEventListener("load", inserttext, false)
else if (window.attachEvent)
window.attachEvent("onload", inserttext)
else
window.onload=inserttext
window.onresize=new Function("window.location.reload()")
}
else if (ns4)
window.onload=createtext

function staticitns(){ //function for NS4
startstatic=setInterval("staticit2()",90)
}
