//Get cookie routine by Shelley Powers 
function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search) 
    // if cookie exists
    if (offset != -1) { 
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}
var MMCookieName = "hi-keys";
var myCookie = get_cookie(MMCookieName);
var CGI = "http://donbailey-mexico.com/cgi/Process.cgi?";
var SSLCGI = "https://donbailey-mexico.com/cgi/Process.cgi?";
var NOCGI = "http://donbailey-mexico.com/";

timegap=1200
followspeed=90
followrate=90
suboffset_top=0;
suboffset_left=10;

effect = "fade(duration=0.3);Shadow(color='#444444', Direction=135, Strength=9)"

function openwin(url)
{
	nwin=window.open(url, "nwin",config="scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes,");
	nwin.focus();
}

prop1=[						// prop1 is an array of properties you can have as many property arrays as you need
"ffffff",					// Off Font Color
"7a95d9",					// Off Back Color
"000000",					// On Font Color
"cedfe8",					// On Back Color
"333388",					// Border Color
10,							// Font Size
"normal",					// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
3,							// Padding
"/JavaScript_files/black_right_arrow.gif",				// Sub Menu Image
0,							// 3D Border & Separator
"66ffff",					// 3D High Color
"006699",					// 3D Low Color
//"006699",					// Referer item Font Color (leave this blank to disable)
//"006699",					// Referer item Back Color (leave this blank to disable)
]

menu1=[				// This is the array that contains your menu properties and details
MMtop,				// Top
MMleft,				// left
104,					// Width
1,					// Border Width
"left",			    // Screen Position - here you can use "center;middle;right"
prop1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time
"center",			// Alignment - sets the menu elements alignment, HTML values are valid here for example: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation
,					// Follow Scrolling - Tells the menu item to follow the user down the screen
1, 					// Horizontal Menu - Tells the menu to be horizontal instead of top to bottom style
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page
,					// Position of sub image left:center:right:middle:top:bottom
,					// Show an image on top menu bars indicating a sub menu exists below
,					// Reserved for future use
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
     "Home        ", NOCGI + "index.shtml",,,1,
     "About Us", NOCGI + "about.shtml",,,1,
     "Information", "show-menu2",,,1,
     "Links", NOCGI + "links.shtml",,,1,
     "Terms", NOCGI + "terms.shtml",,,1,
     "Our Store", "show-menu3",,,1,
     "Contact Us", NOCGI + "contactus.shtml",,,0
]

// Information

menu2=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Don's Blog", NOCGI + "/wordpress target=Blog",,,1,
    "Announcements", NOCGI + "announcements.shtml",,,1,
	"Management", NOCGI + "about.shtml",,,1,
    "Partners", NOCGI + "pr-070308b.shtml",,,1,
    "News", "show-menu4",,,1,
    "Coin Show Schedules", NOCGI + "tradeshows.shtml",,,1,
	"Numismatic Information", "show-menu13",,,1,
    "Old Order Form", NOCGI + "order.shtml",,,1,
	"", "",,,0
]

//      Our Store
 
menu3=[,,120,1,"",prop1,,"left",effect,,,,,,,
	"Modern","show-menu6",,,1,
    "Medals", "show-menu7",,,1,
//	"Libertads", "show-menu8",,,1,
    "Libertads", NOCGI + "under_construction.shtml",,,1,
//	"Pre-Columbian", "show-menu9",,,1,
    "Pre-Columbian", NOCGI + "under_construction.shtml",,,1,
    "Revolution Coinage", CGI + "act=LISTINGS&CAT=Revolution Coinage&search=&session="+SESNUM,,,1,
	"Early Coinage", CGI + "act=LISTINGS&CAT=Early Coinage&search=&session="+SESNUM,,,1,
	"Tokens & Errors", "show-menu10",,,1,
    "Stocks & Bonds", CGI + "act=LISTINGS&CAT=stocks-bonds&search=&session="+SESNUM,,,1,
    "Books", "show-menu14",,,1,
//    "Stocks & Bonds", "show-menu11",,,1,
    "Historical Documents", "show-menu12",,,1,
    " ", "",,,1,
    "View Cart", SSLCGI + "act=SHOWCART&CAT=Libertad&search=&session="+SESNUM,,,1,
    "Checkout", SSLCGI + "act=SHOWCART&CAT=Libertad&search=&session="+SESNUM,,,1,
	"", "",,,0
]

// News

menu4=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Industry News", NOCGI + "news.shtml",,,1,
    "Press Releases",  "show-menu5",,,1,
	"", "",,,0
]

// Press Releases

menu5=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "DBNS Not Retiring", NOCGI + "pr-070308a.shtml",,,1,
    "Firms Join", NOCGI + "pr-070308b.shtml",,,1,
	"", "",,,0
]

//	Modern

menu6=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "1 to 50 Centavo", CGI + "act=LISTINGS&CAT=Centavo&search=&session="+SESNUM,,,1,
//    "2 Centavo", CGI + "act=LISTINGS&CAT=2 Centavo&search=&session="+SESNUM,,,1,
//    "5 Centavo", CGI + "act=LISTINGS&CAT=5 Centavo&search=&session="+SESNUM,,,1,
//    "10 Centavo", CGI + "act=LISTINGS&CAT=10 Centavo&search=&session="+SESNUM,,,1,
//    "20 Centavo", CGI + "act=LISTINGS&CAT=20 Centavo&search=&session="+SESNUM,,,1,
//    "25 Centavo", CGI + "act=LISTINGS&CAT=25 Centavo&search=&session="+SESNUM,,,1,
//    "50 Centavo", CGI + "act=LISTINGS&CAT=50 Centavo&search=&session="+SESNUM,,,1,
    "1 Peso & Up", CGI + "act=LISTINGS&CAT=Peso&search=&session="+SESNUM,,,1,
    "1992 Reform", CGI + "act=LISTINGS&CAT=Reform&search=&session="+SESNUM,,,1,
    "Commemoratives", CGI + "act=LISTINGS&CAT=Modern Commems&search=&session="+SESNUM,,,1,
    "State Commem.", CGI + "act=LISTINGS&CAT=State Commems&search=&session="+SESNUM,,,1,
    "Proof & Mint", CGI + "act=LISTINGS&CAT=Proof And Mint&search=&session="+SESNUM,,,1,
	"", "",,,0
]

//  Medals

menu7=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "Proclamations", CGI + "act=LISTINGS&CAT=Medals-proclamations&search=&session="+SESNUM,,,1,
    "1821 - 1900", CGI + "act=LISTINGS&CAT=Medals-1821-1900&search=&session="+SESNUM,,,1,
    "1901 - 1950", CGI + "act=LISTINGS&CAT=Medals-1901-1950&search=&session="+SESNUM,,,1,
    "1951 - 1960", CGI + "act=LISTINGS&CAT=Medals-1951-1960&search=&session="+SESNUM,,,1,
    "1961 - 1970", CGI + "act=LISTINGS&CAT=Medals-1961-1970&search=&session="+SESNUM,,,1,
    "1971 - 1980", CGI + "act=LISTINGS&CAT=Medals-1971-1980&search=&session="+SESNUM,,,1,
    "1981 - 1990", CGI + "act=LISTINGS&CAT=Medals-1981-1990&search=&session="+SESNUM,,,1,
    "1991 - 2000", CGI + "act=LISTINGS&CAT=Medals-1991-2000&search=&session="+SESNUM,,,1,
    "Undated Medals", CGI + "act=LISTINGS&CAT=Medals-Undated&search=&session="+SESNUM,,,1,
    "Casa De Moneda Medals", CGI + "act=LISTINGS&CAT=Medals-CasaDeMoneda&search=&session="+SESNUM,,,1,
    "Revolution Medals", CGI + "act=LISTINGS&CAT=Medals-Revolution&search=&session="+SESNUM,,,1,
    "SNDM Medals", CGI + "act=LISTINGS&CAT=Medals-Coin-1st&search=&session="+SESNUM,,,1,
    "SNDM Conv. Medals", CGI + "act=LISTINGS&CAT=Medals-Convention-SNDM&search=&session="+SESNUM,,,1,
    "Convention Medals", CGI + "act=LISTINGS&CAT=Medals-Convention&search=&session="+SESNUM,,,1,
    "Other Num Orgs.", CGI + "act=LISTINGS&CAT=Medals-Other-Coin&search=&session="+SESNUM,,,1,
	"", "",,,0
]

//  Libertad

menu8=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "1 Ounce", CGI + "act=LISTINGS&CAT=libertad 1 ounce&search=&session="+SESNUM,,,1,
    "2 Ounce", CGI + "act=LISTINGS&CAT=libertad 2 ounce&search=&session="+SESNUM,,,1,
    "5 Ounce", CGI + "act=LISTINGS&CAT=libertad 5 ounce&search=&session="+SESNUM,,,1,
    "Sets", CGI + "act=LISTINGS&CAT=libertad set&search=&session="+SESNUM,,,1,
    "Kilos", CGI + "act=LISTINGS&CAT=libertad kilo&search=&session="+SESNUM,,,1,
    "Gold", CGI + "act=LISTINGS&CAT=libertad gold&search=&session="+SESNUM,,,1,
	"", "",,,0
]

//  Pre-Columbian

menu9=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "Aztec", CGI + "act=LISTINGS&CAT=aztec&search=&session="+SESNUM,,,1,
    "Veracruz", CGI + "act=LISTINGS&CAT=veracruz&search=&session="+SESNUM,,,1,
    "Maya", CGI + "act=LISTINGS&CAT=maya&search=&session="+SESNUM,,,1,
    "Olmec", CGI + "act=LISTINGS&CAT=olmec&search=&session="+SESNUM,,,1,
    "Tethihuacan", CGI + "act=LISTINGS&CAT=tethihuacan&search=&session="+SESNUM,,,1,
    "Toltec", CGI + "act=LISTINGS&CAT=toltec&search=&session="+SESNUM,,,1,
	"", "",,,0
]

// Tokens & Errors

menu10=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "Tokens", CGI + "act=LISTINGS&CAT=tokens&search=&session="+SESNUM,,,1,
    "Errors", CGI + "act=LISTINGS&CAT=errors&search=&session="+SESNUM,,,1,
	"", "",,,0
]

// Stocks & Bonds

menu11=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
    "Stocks", CGI + "act=LISTINGS&CAT=stocks&search=&session="+SESNUM,,,1,
    "Bonds", CGI + "act=LISTINGS&CAT=bonds&search=&session="+SESNUM,,,1,
	"", "",,,0
]

// Historical Documents

menu12=[,,250,1,"",prop1,0,"left",effect,0,,,,,,
    "Introduction", NOCGI + "historical.shtml",,,1,
    "SPANISH CONQUEST 1521 - 1535", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "VICEROYS & SPANISH KINGS, 1535 - 1821", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
	"WAR OF INDEPENDENCE, 1821 - 1822", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "ITURBIDE, 1822 - 1823", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "EARLT REPUBLIC, 1824 - 1855", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "SANTA ANA, 1833 - 1855", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "TEXAS RELATED, 1800 - 1848", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "REFORM, 1855 - 1862", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "FRENCH INTERVENTION, 1862 - 1867", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "PUBLIC RESTORATION, 1867 - 1877", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "DIAZ ERA, 1876 - 1911", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "REVOLUTION, 1910 - 1920", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "RECONSTRUCTION, 1920 - 1940", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "MODERN MEXICO, 1940 - TO DATE", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "UNCLASSIFIED IMPRINTS AND BOOKS", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "FEMININE RELATED", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
    "UNUSED SEALED REVENUE PAPER", CGI + "act=LISTINGS&CAT=historical&search=&session="+SESNUM,,,1,
	"", "",,,0
]

// Numismatic Information

menu13=[,,250,1,"",prop1,0,"left",effect,0,,,,,,
    "Review: State & Federal...", NOCGI + "review-1.shtml",,,1,
    "Order of the Aztec Eagle", NOCGI + "mex_order_azetc_eagle.shtml",,,1,
    "Pre-Columbian Background", NOCGI + "pre-columbian_background.shtml",,,1,
    "Pre-Columbian Coinage", NOCGI + "pre-columbian.shtml",,,1,
    "Libertad Mintages", NOCGI + "libertad_mintages.shtml",,,1,
    "Libertad Trends", "",,,1,
    "Millennium Collection", NOCGI + "millennium.shtml",,,1,
    "Endangered Species", NOCGI + "endangered.shtml",,,1,
	"", "",,,0
]

// books
menu14=[,,250,1,"",prop1,0,"left",effect,0,,,,,,
    "Numismatic", CGI + "act=LISTINGS&CAT=Books - Num&search=&session="+SESNUM,,,1,
    "Historical", CGI + "act=LISTINGS&CAT=Books - Hist&search=&session="+SESNUM,,,1,
	"", "",,,0
]


