//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);

timegap=1200
followspeed=10
followrate=10
suboffset_top=2;
suboffset_left=-4;


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

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

var MM_Off_Font_Color = "9f1e32";
var MM_Off_Back_Color = "ded1b1";
var MM_On_Font_Color = "ffffff";
var MM_On_Back_Color = "9f1e32";
var MM_Border_Color = "006d78";
var MM_width = 120;

prop1=[						// prop1 is an array of properties you can have as many property arrays as you need
MM_Off_Font_Color,			// Off Font Color
MM_Off_Back_Color,			// Off Back Color
MM_On_Font_Color,			// On Font Color
MM_On_Back_Color,			// On Back Color
MM_Border_Color,			// Border Color
12,							// Font Size
"normal",					// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
3,							// Padding
"/black_right_arrow.gif",				// Sub Menu Image
1,							// 3D Border & Separator
"f8f8f8",					// 3D High Color
"222222"					// 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
MM_width,			// 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
effect,				// 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", HMcgi+"/tucson&template=NULL",,,1,
"General Info", "show-menu2",,,1, 
"Tariff Book", "show-menu3",,,1, 
"Processes", "show-menu4",,,1, 
"VIP Access", "/login/tuc-index.html",,,0
]

// General Info
menu2=[,,MM_width,1,"",prop1,,"left",effect,,,,,,,
"About Us", HMcgi+"tuc-introduction",,,1, 
"Tucson -<br> The Old Pueblo", HMcgi+"tuc-destination",,,1,
"Contact Us", HMcgi+"tuc-contacts",,,0
]

// Tarriff Book
menu3=[,,MM_width,1,"",prop1,,"left",effect,,,,,,,
"Contents", HMcgi+"tuc-toc",,,1,
"Room Gifts", HMcgi+"tuc-room-gifts",,,1,
"Transportation", HMcgi+"tuc-meet-greet",,,1,
"Sightseeing", "show-menu5",,,1,
"Recreation", "show-menu6",,,1,
"Team Building", "show-menu7",,,1,
"Spouse Programs", "show-menu8",,,1,
"Themed Events", "show-menu9",,,1,
"Hotel Parties", "show-menu10",,,0
]

// Processess
menu4=[,,MM_width,1,"",prop1,,"left",effect,,,,,,,
"Document Exchange", HMcgi2,,,0
]

// Sightseeing
menu5=[,,MM_width,1,,prop1,0,"left",effect,0,,,,,,
"Artist Studio", HMcgi+"tuc-artists",,,1,
"Sonoran Desert Museum", HMcgi+"tuc-sonoran",,,1,
"De Grazia Gallery / Sabino Canyon", HMcgi+"tuc-de-grazia",,,1,
"Biosphere 2", HMcgi+"tuc-biosphere",,,1,
"Mission San Xavier Del Bac / Tubac", HMcgi+"tuc-san-xavier",,,1,
"Sedona Tour", HMcgi+"tuc-sedona",,,0
]

// Recreation
menu6=[,,MM_width+40,1,"",prop1,,"",effect,,,,,,,
"City Slickers Excursion", HMcgi+"tuc-city-slickers",,,1,
"Golf Information", HMcgi+"tuc-golf-info",,,1,
"Hiking", HMcgi+"tuc-hiking",,,1,
"Horseback Riding", HMcgi+"tuc-horseback",,,1,
"4-Wheel Desert Tour", HMcgi+"tuc-4wd",,,1,
"Mountain Biking", HMcgi+"tuc-mtn-bike",,,1,
"Soaring", HMcgi+"tuc-soaring",,,0
]

// Team Building
menu7=[,,MM_width,1,"",prop1,,"left",effect,,,,,,,
//"City Snickers", HMcgi+"tuc-city-snickers",,,1,
//"Chili Cook-Off", HMcgi+"tuc-chili",,,1,
//"Coverd Wagon", HMcgi+"tuc-covered",,,1,
//"Horse to Heart", HMcgi+"tuc-horse",,,1, 
//"Softball Tournament", HMcgi+"tuc-ballgame",,,1,
//"Tee-Pee Building", HMcgi+"tuc-Tee-Pee",,,1,
//"TV Trivia", HMcgi+"tuc-couch",,,1,
"4-Wheel Desert Rally", HMcgi+"tuc-4wd-rally",,,1,
"Executive Paintball", HMcgi+"tuc-paintball",,,0
]

// Spouse Programs
menu8=[,,MM_width+40,1,"",prop1,,"left",effect,,,,,,,
"Arizona Johnson Photo Class", HMcgi+"tuc-johnson-photo",,,1,
"Create Your Own Cactus Garden", HMcgi+"tuc-cactus-garden",,,1,
"Unique Shopping Experience", HMcgi+"tuc-shopping",,,0
]

// Themed Events
menu9=[,,MM_width+40,1,"",prop1,,"left",effect,,,,,,,
"Dine Around Information", HMcgi+"tuc-dine-around",,,1,
"Tucson Museum of Art", HMcgi+"tuc-tucson-museum",,,1,
"Rancho Valle Milagro", HMcgi+"tuc-rancho-milagro",,,1,
"Pima Air & Space Museum", HMcgi+"tuc-pima-air",,,1,
"Western Cookout", HMcgi+"tuc-cookout",,,0
]

// Hotel Parties
menu10=[,,MM_width+50,1,"",prop1,,"left",effect,,,,,,,
"Sonoran Sculpture Garden", HMcgi+"tuc-tp-sonoran",,,1,
"Majestic Canyon Magic", HMcgi+"tuc-tp-canyon-magic",,,1,
"Mexican Midway", HMcgi+"tuc-tp-mexican-midway",,,1,
"Native American Affair", HMcgi+"tuc-tp-native-american",,,1,
"Route 66", HMcgi+"tuc-tp-route-66",,,1,
"Arizona Wrangler Round-Up", HMcgi+"tuc-tp-roundup",,,1,
"Additional Theme Party Suggestions", HMcgi+"tuc-tp-other",,,0
]


