BLANK_IMAGE = '/images/add-space.gif';

var lastTip = null;

function setVis(id, value) {
	var o;
	if (document.getElementById && (o = document.getElementById(id)) && o.style)
		o.style.visibility = value;
}
function show(id) {
	setVis(id, 'visible');
}
function hide(id) {
	setVis(id, 'hidden');
}
function navTip(id) {
	if (lastTip)
		hide(lastTip);
	show(id);
	lastTip = id;
}


var STYLE = {
	border:1,
	shadow:0,
	color:{
		border:'#6C0E0E',
		shadow:'#333333',
		bgON:'#F3E555',
		bgOVER:'#E7CE18'
	},
	css:{
		ON:'clsCMOn',
		OVER:'clsCMOver'
	}
};

var STYLE2 = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#6C0E0E",	// color of the item border, if any
		shadow:"#6C0E0E",	// color of the item shadow, if any
		bgON:"#6C0E0E",		// background color for the items
		bgOVER:"#953131"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOn2",		// CSS class for items
		OVER:"clsCMOver2"	// CSS class  for item which is under mouse
	}
};

var MENU_ITEMS =
[
	{"pos":"relative", "itemoff":[0,69], "leveloff":[25,0], "style":STYLE, "size":[25,300]},
	{code:"Horse Racing", url:"/About-Horse-Racing/", "format":{"size":[25,150]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Race Track Schedule", url:"/schedule/", "format":{"size":[25,165]}},
			{code:"About Horse Racing", url:"/About-Horse-Racing/", "format":{"size":[25,165]}},
			{code:"FAQs", url:"/FAQ/", "format":{"size":[25,165]}},
			{code:"Harness Racing &amp; &quot;Racino&quot;", url:"/Saratoga-Gaming-and-Raceway/", "format":{"size":[25,165]}},
			{code:"NYRA", url:"http://www.nyra.com/Saratoga/", target:"_blank", "format":{"size":[25,165]}},
			{code:"Travers", url:"/Travers/", "format":{"size":[25,165]}},
			{code:"Giveaway Days", url:"/Giveaway-Days/", "format":{"size":[25,165]}},
			{code:"Betting Primer", url:"/About-Horse-Racing/Betting-Primer.cfm", "format":{"size":[25,165]}},
			{code:"Racing Results", url:"/About-Horse-Racing/Results.cfm", "format":{"size":[25,165]}},
			{code:"Horse Racing Glossary", url:"/About-Horse-Racing/Glossary-Terms.cfm", "format":{"size":[25,165]}},
		]
	},
	{code:"Lodging", url:"/Racetrack-Guide/Lodging.cfm", "format":{"itemoff":[0,149], "size":[25,115]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Hotels, Motels &amp; Resorts", url:"/Racetrack-Guide/Lodging-Saratoga-Hotels.cfm", "format":{"size":[25,165]}},
			{code:"Bed &amp; Breakfast Inns", url:"/Racetrack-Guide/Lodging-Saratoga-Inns.cfm", "format":{"size":[25,165]}},
			{code:"Campgrounds", url:"/Racetrack-Guide/Lodging-Campgrounds.cfm", "format":{"size":[25,165]}},
			{code:"Vacation &amp; House Rentals", url:"/Racetrack-Guide/Lodging-Rentals.cfm", "format":{"size":[25,165]}},
			{code:"Budget Accommodations", url:"/Racetrack-Guide/Lodging-Budget.cfm", "format":{"size":[25,165]}},
			{code:"Other Lodging Nearby", url:"/Racetrack-Guide/Lodging-Near-Saratoga.cfm", "format":{"size":[25,165]}},
		]
	},
	{code:"Restaurants &amp; Nightlife", url:"/Racetrack-Guide/Restaurants-Nightlife.cfm", "format":{"itemoff":[0,114], "size":[25,190]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Restaurants In Saratoga", url:"/Racetrack-Guide/Restaurants-In-Saratoga.cfm", "format":{"size":[25,190]}},
			{code:"Saratoga Nightlife &amp; Pubs", url:"/Racetrack-Guide/Nightlife-Pubs.cfm", "format":{"size":[25,190]}},
			{code:"Nearby Restaurants", url:"/Racetrack-Guide/Restaurants-Around-Saratoga.cfm", "format":{"size":[25,190]}},
			{code:"Dining at the Racecourse", url:"/Racetrack-Guide/Restaurants-At-The-Racecourse.cfm", "format":{"size":[25,190]}},
			{code:"Saratoga Restaurant Row", url:"/restaurant-row/", "format":{"size":[25,190]}},
			{code:"Restaurant Reviews", url:"http://www.saratogarestaurants.com/restaurant_reviews.htm", target:"_blank", "format":{"size":[25,190]}},
		]
	},
	{code:"Vacation &amp; Fun Guide", url:"/Racetrack-Guide/Vacation.cfm", "format":{"itemoff":[0,189], "size":[25,190]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Activities &amp; Attractions", url:"/Racetrack-Guide/Vacation-Attractions.cfm", "format":{"size":[25,225]}},
			{code:"Activities &amp; Attractions Near Saratoga", url:"/Racetrack-Guide/Vacation-Attractions-Near-Saratoga.cfm", "format":{"size":[25,225]}},
			{code:"Health &amp; Beauty", url:"/Racetrack-Guide/Vacation-Health-Beauty.cfm", "format":{"size":[25,225]}},
			{code:"Shopping", url:"/Racetrack-Guide/Shopping.cfm", "format":{"size":[25,225]}},
			{code:"Events Calendar", url:"/Events/", "format":{"size":[25,225]}},
			{code:"Specials &amp; Coupons", url:"/Specials-And-Coupons/", "format":{"size":[25,225]}},
			{code:"Getting to Saratoga", url:"/Directions/", "format":{"size":[25,225]}},
		]
	},
	{code:"Living Here", url:"/Racetrack-Guide/Live-Here.cfm", "format":{"itemoff":[0,189], "size":[25,140]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Real Estate", url:"/Racetrack-Guide/Live-Here-Real-Estate.cfm", "format":{"size":[25,140]}},
			{code:"Home &amp; Garden", url:"/Racetrack-Guide/Live-Here-Home-And-Garden.cfm", "format":{"size":[25,140]}},
			{code:"Business Services", url:"/Racetrack-Guide/Live-Here-services.cfm", "format":{"size":[25,140]}},
			{code:"New Construction", url:"/Racetrack-Guide/new-construction-saratoga.cfm", "format":{"size":[25,140]}},
		]
	},
	{code:"SaratogaRacetrack.com", url:"/", "format":{"itemoff":[0,139], "size":[25,180]},
		sub:[
			{"style":STYLE2, "itemoff":[25,0]},
			{code:"Advertise Here!", url:"/Advertising/", "format":{"size":[25,180]}},
			{code:"E-Newsletter Signup", url:"/eNews/", "format":{"size":[25,180]}},
			{code:"Site Map &amp; Search", url:"/Racetrack-Guide.cfm", "format":{"size":[25,180]}},
			{code:"Contact Us", url:"/Contact/", "format":{"size":[25,180]}},
		]
	}
];
