//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://wendistoys.com/cgi/Process.cgi?";
var SSLCGI = "http://wendistoys.com/cgi/Process.cgi?";
var NOCGI = "http://wendistoys.com/";

timegap=1500
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
"f00000",					// Off Back Color
"0000f0",					// On Font Color
"f0f000",					// On Back Color
"000000",					// Border Color
12,							// 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
125,					// 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,
     "<b>Lunchboxes</b>", "show-menu6",,,1,
     "<b>Other Toys</b>", "show-menu3",,,1,
     "Information", "show-menu2",,,1,
     "Login", CGI + "act=LOGIN&session="+SESNUM,,,1,
     "Contact Us", NOCGI + "contactus.shtml",,,0
]

// About Us

menu2=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "About Us", NOCGI + "about.shtml",,,1,
    "Announcements", NOCGI + "announcements.shtml",,,1,
    "News", "show-menu4",,,1,
	"Sell to Us", NOCGI + "sell_terms.shtml",,,1,
    "Links", NOCGI + "links.shtml",,,1,
//	"Calendar", NOCGI + "WebCalendar/month.php target=calendar",,,1,
//	"Guestbook", NOCGI + "guestbook/guestbook.html target=calendar",,,1,
	"", "",,,0
]

//      Our Store
 
menu3=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Beanie Babies",  CGI + "act=LISTINGS&CAT=BEANIE&search=&session="+SESNUM,,,1,
    "Simpsons",  CGI + "act=LISTINGS&CAT=SIMPSON&search=&session="+SESNUM,,,1,
    "Play Sets",  CGI + "act=LISTINGS&CAT=FP&search=&session="+SESNUM,,,1,
    "Banks",  CGI + "act=LISTINGS&CAT=BANK&search=&session="+SESNUM,,,1,
    "Misc",  CGI + "act=LISTINGS&CAT=MISC&search=&session="+SESNUM,,,1,
    " ", "",,,1,
    "View Cart", SSLCGI + "act=SHOWCART&CAT=BEANIE&search=&session="+SESNUM,,,1,
    "Checkout", SSLCGI + "act=STARTPURCHASE&CAT=BEANIE&search=&session="+SESNUM,,,1,
    "Terms", NOCGI + "terms.shtml",,,1,
	"", "",,,0
]

// News

menu4=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Press Releases",  "show-menu5",,,1,
	"", "",,,0
]

// Press Releases

menu5=[,,120,1,"",prop1,0,"left",effect,0,,,,,,
	"", "",,,0
]

// Lunchboxes

menu6=[,,150,1,"",prop1,0,"left",effect,0,,,,,,
    "Metal 1950-1959",CGI + "act=LISTINGS&CAT=LBXM4&search=&session="+SESNUM,,,1,
    "Metal 1960-1989",CGI + "act=LISTINGS&CAT=LBXM6&search=&session="+SESNUM,,,1,
    "Metal 1990-Today",CGI + "act=LISTINGS&CAT=LBXM9&search=&session="+SESNUM,,,1,
    " ", "",,,1,
    "Plastic 1960-1989",CGI + "act=LISTINGS&CAT=LBXP6&search=&session="+SESNUM,,,1,
    "Plastic 1990-Today",CGI + "act=LISTINGS&CAT=LBXP9&search=&session="+SESNUM,,,1,
    " ", "",,,1,
    "View Cart", SSLCGI + "act=SHOWCART&CAT=BEANIE&search=&session="+SESNUM,,,1,
    "Checkout", SSLCGI + "act=STARTPURCHASE&CAT=BEANIE&search=&session="+SESNUM,,,1,
    "Terms", NOCGI + "terms.shtml",,,1,
	"", "",,,0
]


// EOF
