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

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
"f0c192",					// Off Font Color
"341f0a",					// Off Back Color
"341f0a",					// On Font Color
"f0c192",					// 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", "show-menu7",,,1,
     "Information", "show-menu2",,,1,
     "Membership", "show-menu6",,,1,
     "Links", NOCGI + "links.shtml",,,1,
     "Our Store", "show-menu3",,,1,
     "Contact Us", NOCGI + "contactus.shtml",,,0
]

// About Us

menu2=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Volunteer", NOCGI + "volunteer.shtml",,,1,
    "Announcements", NOCGI + "announcements.shtml",,,1,
    "News", "show-menu4",,,1,
	"Calendar", NOCGI + "webcalendar/month.php target=calendar",,,1,
	"Guestbook", NOCGI + "advancedguestbook/index.php target=guestbook",,,1,
	"", "",,,0
]

//      Our Store
 
menu3=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "Free Items", NOCGI + "free.shtml",,,1,
    "Items For Sale", SSLCGI + "act=LISTINGS2&CAT=All&SEARCH=&session="+SESNUM,,,1,
    "View Cart", SSLCGI + "act=SHOWCART&CAT=All&SEARCH=&session="+SESNUM,,,1,
//    "Checkout", SSLCGI + "act=SHOWCART&CAT=All&SEARCH=&session="+SESNUM,,,1,
    "Paypal Checkout", SSLCGI + "act=PAYPAL&CAT=All&SEARCH=&session="+SESNUM,,,1,
	"", "",,,0
]

// News

menu4=[,,120,1,"",prop1,,"left",effect,,,,,,,
    "News",  NOCGI + "news.shtml",,,1,
    "Family Day 2008",  NOCGI + "RCRFamilyDay2008/index.htm target=photos",,,1,
    "Halloween 2008",  NOCGI + "TruckorTreat2008/index.htm target=photos",,,1,
    "Press Releases",  "show-menu5",,,1,
	"", "",,,0
]

// Press Releases

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

// Membership

menu6=[,,120,1,"",prop1,,"left",effect,,,,,,,
     "Join Us", NOCGI + "membership.shtml",,,1,
     "Board & Staff", NOCGI + "board&staff.shtml",,,1,
	 "", "",,,0
]

// About Us

menu7=[,,120,1,"",prop1,,"left",effect,,,,,,,
     "About Us", NOCGI + "about.shtml",,,1,
     "Facts About RCR", NOCGI + "facts.shtml",,,1,
	 "", "",,,0
]

