//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 MMTop = 50;
//var MMleft = 20;
var MMCookieName = "hi-keys";
var myCookie = get_cookie(MMCookieName);
var CGI = "http://mexicancoincompany.com/cgi/Process.cgi?";
var SSLCGI = "https://mexcc.com/cgi/Process.cgi?";
//var CGI = "http://72.167.127.58/cgi/Process.cgi?";
var NOCGI = "http://mexicancoincompany.com/";
//var NOCGI = "http://72.167.127.58/";

timegap=2500
followspeed=90
followrate=90
suboffset_top=0;
suboffset_left=0;

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
"c09000",					// Off Back Color
"000000",					// On Font Color
"ffffff",					// On Back Color
"000000",					// Border Color
11,							// Font Size
"normal",					// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
2,							// Padding
"/JavaScript_files/black_right_arrow.gif",				// Sub Menu Image
0,							// 3D Border & Separator
"aaaaaa",					// 3D High Color
"555555",					// 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
128,					// 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<br>&nbsp;", NOCGI + "index.shtml",,,1,
     "<b>Mexican<br>Store</b>", "show-menu2",,,1,
     "<b>Latin<br>Store</b>", "show-menu6",,,1,
     "Sell To Us<br>&nbsp;",  NOCGI + "sell_terms2.shtml",,,1,
     "My Account<br>&nbsp;", CGI + "act=LOGIN&session="+SESNUM,,,1,
//     "My Want List<br>&nbsp;", CGI + "act=LOGIN&session="+SESNUM,,,1,
     "Information<br>&nbsp;", "show-menu5",,,0
]

//      Our Mexican Store
 
menu2=[,,120,1,"",prop1,,"left",effect,0,,,,,,
    "<br>Coins", "show-menu3",,,1,
    "<br>Currency", "show-menu4",,,1,
    "<br>Books",  CGI + "act=LISTINGS&CAT=BKS&search=&session="+SESNUM,,,1,
//    "<br>Other", "show-menu6",,,1,
    "","",,,1,
    "<br>View Cart", SSLCGI + "act=SHOWCART&CAT=MG&search=&session="+SESNUM,,,1,
    "<br>Checkout", SSLCGI + "act=STARTPURCHASE&CAT=MG&search=&session="+SESNUM,,,1,
    "<br>Terms", NOCGI + "terms2.shtml",,,0
//    "  ", SSLCGI + "act=PAYPALGOOD&CAT=MG&search=&session="+SESNUM,,,0
]

// coins

menu3=[,,180,1,"",prop1,0,"left",effect,0,,,,,,
    "<br>Colonial Gold",  CGI + "act=LISTINGS&CAT=CCG&search=&session="+SESNUM,,,1,
    "<br>Colonial Silver & Minors",  CGI + "act=LISTINGS&CAT=CCS&search=&session="+SESNUM,,,1,
    "<br>War For Independence",  CGI + "act=LISTINGS&CAT=CWI&search=&session="+SESNUM,,,1,
    "<br>Imperial Era",  CGI + "act=LISTINGS&CAT=CIE&search=&session="+SESNUM,,,1,
    "<br>Republic Gold",  CGI + "act=LISTINGS&CAT=CRG&search=&session="+SESNUM,,,1,
    "<br>Republic 8 Reales",  CGI + "act=LISTINGS&CAT=CRE&search=&session="+SESNUM,,,1,
    "<br>Republic Silver & Minors",  CGI + "act=LISTINGS&CAT=CRS&search=&session="+SESNUM,,,1,
    "<br>State Coppers",  CGI + "act=LISTINGS&CAT=CSC&search=&session="+SESNUM,,,1,
    "<br>Revolution",  CGI + "act=LISTINGS&CAT=CRV&search=&session="+SESNUM,,,1,
    "<br>Modern Gold",  CGI + "act=LISTINGS&CAT=CMG&search=&session="+SESNUM,,,1,
    "<br>Modern Silver & Minors",  CGI + "act=LISTINGS&CAT=CMS&search=&session="+SESNUM,,,1,
    "<br>Medals & Tokens",  CGI + "act=LISTINGS&CAT=CMT&search=&session="+SESNUM,,,1,
    "<br>Other Coins",  CGI + "act=LISTINGS&CAT=COC&search=&session="+SESNUM,,,0
    ]

//  currency

menu4=[,,180,1,"",prop1,0,"left",effect,0,,,,,,
    "<br>Imperial & Early Republic",  CGI + "act=LISTINGS&CAT=PIM&search=&session="+SESNUM,,,1,
    "<br>Bancos",  CGI + "act=LISTINGS&CAT=PBK&search=&session="+SESNUM,,,1,
    "<br>Pre Revolution",  CGI + "act=LISTINGS&CAT=PPR&search=&session="+SESNUM,,,1,
    "<br>Revolution",  CGI + "act=LISTINGS&CAT=PRC&search=&session="+SESNUM,,,1,
    "<br>Post Revolution",  CGI + "act=LISTINGS&CAT=PPT&search=&session="+SESNUM,,,1,
    "<br>Banco De Mexico",  CGI + "act=LISTINGS&CAT=PBM&search=&session="+SESNUM,,,1,
    "<br>Other Currency",  CGI + "act=LISTINGS&CAT=PMC&search=&session="+SESNUM,,,0
    ]

// About Us

menu5=[,,111,1,"",prop1,,"left",effect,,,,,,,
    "<br>About Us", NOCGI + "about2.shtml",,,1,
    "<br>Shows", NOCGI + "tradeshows2.shtml",,,1,
    "<br>News", NOCGI + "news2.shtml",,,1,
    "<br>Links", NOCGI + "links2.shtml",,,1,
    "<br>Contact Us", NOCGI + "contactus2.shtml",,,0
]

// other

//menu6=[,,150,1,"",prop1,0,"left",effect,0,,,,,,
//    "<br>Books",  CGI + "act=LISTINGS&CAT=BKS&search=&session="+SESNUM,,,1,
//    "<br>Other",  CGI + "act=LISTINGS&CAT=OTH&search=&session="+SESNUM,,,0
//    ]


//      Our Latin Am. Store
 
menu6=[,,120,1,"",prop1,,"left",effect,0,,,,,,
    "<br>A-F", "show-menu7",,,1,
    "<br>G-Z", "show-menu8",,,1,
    "<br>Latin Other",  CGI + "act=LISTINGS&CAT=LOC&search=&session="+SESNUM,,,1,
    "","",,,1,
    "<br>View Cart", SSLCGI + "act=SHOWCART&CAT=MG&search=&session="+SESNUM,,,1,
    "<br>Checkout", SSLCGI + "act=STARTPURCHASE&CAT=MG&search=&session="+SESNUM,,,1,
    "<br>Terms", NOCGI + "terms2.shtml",,,0
]

menu7=[,,120,1,"",prop1,,"left",effect,0,,,,,,
    "<br>Argentina",  CGI + "act=LISTINGS&CAT=LAR&search=&session="+SESNUM,,,1,
    "<br>Belize",  CGI + "act=LISTINGS&CAT=LBE&search=&session="+SESNUM,,,1,
    "<br>Bolivia",  CGI + "act=LISTINGS&CAT=LBO&search=&session="+SESNUM,,,1,
    "<br>Brazil",  CGI + "act=LISTINGS&CAT=LBR&search=&session="+SESNUM,,,1,
    "<br>Central Am. Rep.",  CGI + "act=LISTINGS&CAT=LCA&search=&session="+SESNUM,,,1,
    "<br>Chile",  CGI + "act=LISTINGS&CAT=LCH&search=&session="+SESNUM,,,1,
    "<br>Columbia",  CGI + "act=LISTINGS&CAT=LCO&search=&session="+SESNUM,,,1,
    "<br>Costa Rica",  CGI + "act=LISTINGS&CAT=LCR&search=&session="+SESNUM,,,1,
    "<br>Ecuador",  CGI + "act=LISTINGS&CAT=LEC&search=&session="+SESNUM,,,1,
    "<br>El Salvodor",  CGI + "act=LISTINGS&CAT=LES&search=&session="+SESNUM,,,1,
    "<br>French Guyana",  CGI + "act=LISTINGS&CAT=LFG&search=&session="+SESNUM,,,0
]

menu8=[,,120,1,"",prop1,,"left",effect,0,,,,,,
    "<br>Guatemala",  CGI + "act=LISTINGS&CAT=LGU&search=&session="+SESNUM,,,1,
    "<br>Guyana",  CGI + "act=LISTINGS&CAT=LGY&search=&session="+SESNUM,,,1,
    "<br>Honduras",  CGI + "act=LISTINGS&CAT=LHO&search=&session="+SESNUM,,,1,
    "<br>Nicaragua",  CGI + "act=LISTINGS&CAT=LNI&search=&session="+SESNUM,,,1,
    "<br>Panama",  CGI + "act=LISTINGS&CAT=LPA&search=&session="+SESNUM,,,1,
    "<br>Paraguay",  CGI + "act=LISTINGS&CAT=LPY&search=&session="+SESNUM,,,1,
    "<br>Peru",  CGI + "act=LISTINGS&CAT=LPE&search=&session="+SESNUM,,,1,
    "<br>Suriname",  CGI + "act=LISTINGS&CAT=LSU&search=&session="+SESNUM,,,1,
    "<br>Uruguay",  CGI + "act=LISTINGS&CAT=LUR&search=&session="+SESNUM,,,1,
    "<br>Venezuela",  CGI + "act=LISTINGS&CAT=LVE&search=&session="+SESNUM,,,0
]

// EOF
