if(typeof $ != "function"){
	d.write('<script type="text/javascript" src="http://images.theglobeandmail.com/v5/scripts/sc/lib/prototype.js"><'+'\/script>');
}
PageInfo = {
	hubClass : null,
	subhubClass : null,
	navParent : null,
	resetMenuTimeOut : null,
	setCurrentTimeOut : null
} 
var robSubSubNav, lifeSubSubNav, sportsSubSubNav, marketplaceSubSubNav; 
var spd = "/servlet/Page/document";
var gn_gigPromo = "http://gold.globeinvestor.com/public/promo";
function setMenu(){
		if(typeof WEBSITE_ROB != "undefined") {	
		robSubSubNav = {
			"menu": 
				{
					"industrynews": [
						{	"title": "Energy \u0026 Resources", "url": WEBSITE_ROB+"/energy", "cN": "energy" },
						{	"title": "The Law Page", "url": WEBSITE_ROB+"/law", "cN": "law" },
						{	"title": "Marketing", "url": WEBSITE_ROB+"/marketing", "cN": "marketing" }
					],
					"commentary": [
						{	"title": "Agenda", "url": WEBSITE_ROB+"/agenda", "cN": "agenda" }
					],
					"marketaction": [
						{	"title": "Where To Find It", "url": "http://v1.theglobeandmail.com/v5/content/ROB/sitemap.html", "cN": "wheretofind" },
						{	"title": "Market Blog", "url": WEBSITE_TGAM+"/blogs/markets", "cN": "markets" },
						{	"title": "Streetwise Blog", "url": WEBSITE_TGAM+"/blogs/streetwise", "cN": "streetwise" },
						{	"title": "Market Indexes", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/indexes", "cN": "indexes" },
						{	"title": "Earnings Surprises", "url": WEBSITE_FINANCE+"/invest/investSQL/gx.show_surprise", "cN": "earnings" },
						{	"title": "Cdn. Co. Earnings", "url": WEBSITE_CO_GLOBEINVESTOR+spd+"/v5/data/corporateearnings", "cN": "canadianearnings" },
				/*		{	"title": "Insider Trading", "url": WEBSITE_ROB+"/servlet/story/RTGAM.20050112.insider/BNStory/SpecialEvents2/home", "cN": "insidertrade" },*/
						{	"title": "Commodities", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/commodities/", "cN": "commodities" },
						{	"title": "Forex", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/news/currencies", "cN": "currencies" },
						{	"title": "Dividends", "url": WEBSITE_CO_GLOBEINVESTOR+spd+"/v5/data/dividends", "cN": "dividends" },
						{	"title": "Options", "url": WEBSITE_CO_GLOBEINVESTOR+spd+"/v5/data/options", "cN": "options" },
						{	"title": "Bonds", "url": WEBSITE_CO_GLOBEINVESTOR+spd+"/v5/data/bonds", "cN": "bonds" },
						{	"title": "Rates", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/data/rates", "cN": "rates" },
						{	"title": "Special Reports", "url": null, "cN": null },
						{	"title": "ROB Top 1000", "url": "http://v1.theglobeandmail.com/top1000/", "cN": "top1000" }
					],
					"globeinvestor": [
						{	"title": "My Stocklist", "url": WEBSITE_FINANCE+"/invest/investSQL/gx.stock_rep?pi_mode=SECLIST", "cN": "gi_stocklist" },
						{	"title": "My Portfolio", "url": WEBSITE_FINANCE_PORTFOLIO+"/gishome/plsql/port_gis.homepage", "cN": "gi_portfolio" },
						{	"title": "My Streaming Tracker", "url": "javascript:void _open_popup_window(800,700,'"+WEBSITE_CO_GLOBEINVESTOR+spd+"/v5/data/stocks/mini_tracker/index','tracker','My Streaming Tracker')", "cN": "gi_tracker" },
						{	"title": "Trust Centre", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/trusts/", "cN": "trust_centre" },
						{	"title": "Stock Quotes", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/quotes.html", "cN": "gi_quote" },
						{	"title": "Investor News", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/news/", "cN": "gi_news" },
						{	"title": "Event Calendar", "url": WEBSITE_CO_GLOBEINVESTOR+"/servlet/Page/document/v5/data/events/", "cN": "gi_event" },
						{	"title": "Mobile Quotes", "url": "http://gold.globeinvestor.com/public/promo/newfeature/mobile/", "cN": "gi_mobile" },
						{	"title": "Stock Charts", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/charts", "cN": "gi_chart" },
						{	"title": "Stock Filter", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/filters", "cN": "gi_filter" },
						{	"title": "Stock Profile", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/company-snapshot", "cN": "gi_snapshot" },
						{	"title": "5-Star Ratings", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/5-star", "cN": "gi_fivestar" },
						{	"title": "Tutorials", "url": WEBSITE_CO_GLOBEINVESTOR+"/tutorials", "cN": "gi_tutorials" },
						{	"title": "Help/Contact Us", "url": WEBSITE_CO_GLOBEINVESTOR+"/v5/content/help/", "cN": "gi_help" },
						{	"title": "Special Reports", "url": null, "cN": null },
						{	"title": "Trade By Numbers", "url": "http://www.theglobeandmail.com/globe-investor/e-zines/trade-by-numbers/", "cN": "" }
					], 
					"globefund": [
						{	"title": "My Fundlist", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.process_fr?fr_mode=MYFUNDLIST\u0026FR_PARAM1=+\u0026iaction=Go", "cN": "gf_fundlist" },
						{	"title": "My Portfolio", "url": WEBSITE_FINANCE_PORTFOLIO+"/gishome/plsql/port_gis.homepage", "cN": "gf_portfolio" },
						{	"title": "Top Movers", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.rep_sel", "cN": "gf_movers" },
						{	"title": "Fund Selector", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.fund_srh", "cN": "gf_selector" },
						{	"title": "Fund News", "url": WEBSITE_CO_GLOBEFUND+"/servlet/HTMLTemplate?tf=globefund/v5/hub/layouts/search/type.html\u0026category=news\u0026cf=globefund/static.cfg\u0026query=\u0026start_row=1", "cN": "gf_news" },
						{	"title": "Fund Changes", "url": WEBSITE_CO_GLOBEFUND+"/v5/content/noteworthy/", "cN": "gf_change" },
						{	"title": "Fund Charts", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.chart_select", "cN": "gf_chart" },
						{	"title": "Fund Filter", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.fund_filter?pi_type=B", "cN": "gf_filter" },
						{	"title": "Fund Profile", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.fundpro_select", "cN": "gf_quote" },
						{	"title": "5-Star Ratings", "url": WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.show_5star_rep", "cN": "gf_fivestar" },
						{	"title": "Monthly Fund Review", "url": WEBSITE_CO_GLOBEFUND+"/v5/content/monthly/", "cN": "" },
						{	"title": "Help/Contact Us", "url": WEBSITE_CO_GLOBEFUND+"/v5/content/help/", "cN": "gi_help" },
						{	"title": "Special Report", "url": null, "cN": null },
						{	"title": "15-Year Review", "url": WEBSITE_CO_GLOBEFUND+"/v5/content/review/", "cN": "" }
					],
					"managing": [
						{	"title": "Morning Manager", "url": WEBSITE_TGAM+"/blogs/wschachter", "cN": "" },
						{	"title": "Appointment Notices", "url": WEBSITE_TGAM+"/AppNotices/", "cN": "" },
						{	"title": "Career Advice", "url": "http://globecareeers.workopolis.com/Default.aspx?action=RCAdvisors&theme=cc", "cN": "" },
						{	"title": "Career Advice Archive", "url": "http://globecareers.workopolis.com/Default.aspx?action=ArcSubjectGroups&theme=cc", "cN": "" },
						{	"title": "Jobs By Industry", "url": "http://globecareers.workopolis.com/Default.aspx?action=FastTrackList&theme=cc", "cN": "" },
						{	"title": "Special Reports", "url": null, "cN": null },
						{	"title": "Start Up Blog", "url": WEBSITE_TGAM+"/blogs/babyblog", "cN": "" },
						{	"title": "Start Your Own", "url": WEBSITE_TGAM+"/startyourown ", "cN": "" },
						{	"title": "Best Small Companies", "url": WEBSITE_ROB+"/servlet/story/RTGAM.20060425.gtrosb1best/BNStory/specialSmallBusiness/", "cN": "" }
					],
					"smallbusiness": [
						{	"title": "Incubator", "url": WEBSITE_ROB+"/incubator", "cN": "" },
						{	"title": "Small Business Mag", "url": WEBSITE_ROB+"/rosbmagazine ", "cN": "" }
					],
					"globeinvestorgold": [
						{	"title": "Introduction", "url": "javascript:void _open_popup_window(900,700,'" +gn_gigPromo+"/intro.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Free Trial", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/trial.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "News and Analysis", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/news.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Financial Information", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/financials.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Globe Portfolio", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/globe_portfolio.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Research Tools", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/research.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Technical Analysis", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/techanal.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Real-time Quotes", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/rtquotes.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Streaming Quotes", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/tracker.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Live BNN", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/bnn.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Price and News Alerts", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/gold_alerts.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" },
						{	"title": "Mobile Access", "url": "javascript:void _open_popup_window(900,700,'"+gn_gigPromo+"/mobile.html','gigPromo','GlobeinvestorGOLD','0','0')", "cN": "" }			
					]
				}
		},
		lifeSubSubNav = {
			"menu":
				{
					"travel": [
						{	"title": "Destinations", "url": WEBSITE_TGAM+spd+"/v5/templates/hub?hub=Travel\u0026subhub=destinations", "cN": "destinations" },
						{	"title": "Activities", "url": WEBSITE_TGAM+spd+"/v5/templates/hub?hub=Travel\u0026subhub=activities", "cN": "activities" }
					]
				}
		},
		marketplaceSubSubNav = {
			"menu":
				{
					"realestate": [
						{	"title": "My Favourites", "url": WEBSITE_TGAM+spd+"/v5/templates/favourites?hub=RealEstate", "cN": "myfavourites" },
						{	"title": "Done Deals", "url": WEBSITE_TGAM+"/generated/realestate/donedeals.html", "cN": "donedeals" },
						{	"title": "On Site", "url": WEBSITE_TGAM+"/generated/realestate/onsite.html", "cN": "onsite" },
						{	"title": "GTA Map", "url": WEBSITE_TGAM+spd+"/v5/templates/map?hub=RealEstate", "cN": "gtamap" },
						{	"title": "Mortgage Rates", "url": WEBSITE_TGAM+spd+"/v5/templates/mortgagerates?hub=RealEstate", "cN": "mortgagerates" },
						{	"title": "Down Payments", "url": WEBSITE_TGAM+spd+"/v5/templates/afford?hub=RealEstate", "cN": "downpayments" },
						{	"title": "Qualifier", "url": WEBSITE_TGAM+"/v5/content/calculator-realestate/REcalculators?calculator=CAMortgageQualifier", "cN": "qualifier" },
						{	"title": "Comparisons", "url": WEBSITE_TGAM+"/v5/content/calculator-realestate/REcalculators?calculator=CACompareMortgage", "cN": "comparisons" },
						{	"title": "Payoff Calculator", "url": WEBSITE_TGAM+"/v5/content/calculator-realestate/REcalculators?calculator=CAMortgagePayoff", "cN": "payoff" },
						{	"title": "Loan Calculator", "url": WEBSITE_TGAM+"/v5/content/calculator-realestate/REcalculators?calculator=CAMortgageLoan", "cN": "loan" },
						{	"title": "Refinance Savings", "url": WEBSITE_TGAM+"/v5/content/calculator-realestate/REcalculators?calculator=CAShouldIRefi", "cN": "refinance" }
					],
					"globeauto": [
						{ "title": "My Garage", "url": WEBSITE_USEDCARS+"/my_garage/list_items.pl", "cN": ""},
						{ "title": "Compare Cars", "url": WEBSITE_USEDCARS+"/compare/compare.pl", "cN": ""},
						{ "title": "Car Guide", "url": WEBSITE_USEDCARS+"/search/car_guide.pl", "cN": ""},
						{ "title": "For Sale", "url": WEBSITE_USEDCARS+"/search/cars_for_sale.pl", "cN": ""},
						{ "title": "Dealerships", "url": WEBSITE_USEDCARS+"/dealer_profile/search.pl", "cN": ""},
						{ "title": "Weekly Newsletter", "url": WEBSITE_CARS+"/servlet/Page/document/v5/templates/globeauto?content=newsletter", "cN": ""},
						{ "title": "Cars $25K-$45K", "url": WEBSITE_USEDCARS+"/search/results_specs.pl?search_type=1&price_low=25000&price_high=45000&body_styles=Convertible||Coupe||Sedan||Wagon||Hatch||Minivan||Suv||Pickup&fuel_perf=3&feature1=0&feature2=0&province=0&city=0&sort_type=price&sort_order=asc", "cN": ""},
						{ "title": "Cars $45K-$75K", "url": WEBSITE_USEDCARS+"/search/results_specs.pl?search_type=1&price_low=45000&price_high=75000&body_styles=Convertible||Coupe||Sedan||Wagon||Hatch||Minivan||Suv||Pickup&fuel_perf=3&feature1=0&feature2=0&province=0&city=0&sort_type=price&sort_order=asc", "cN": "mygarage"},
						{ "title": "Cars $75K+", "url": WEBSITE_USEDCARS+"/search/results_specs.pl?search_type=1&price_low=75000&price_high=100000&body_styles=Convertible||Coupe||Sedan||Wagon||Hatch||Minivan||Suv||Pickup&fuel_perf=3&feature1=0&feature2=0&province=0&city=0&sort_type=price&sort_order=asc", "cN": ""},
						{ "title": "Hybrid Cars", "url": WEBSITE_USEDCARS+"/search/results_specs.pl?search_type=2&price_low=0000&price_high=100000&body_styles=Convertible||Coupe||Sedan||Wagon||Hatch||Pickup||Minivan||Suv&feature1=0&feature2=0&province=0&city=0&make=0&model=0&fuel_economy=City||5||20&results_first=Spec||1994||2006&hp_low=70&hp_high=300&safety_features=&transmission=AU||MA&drive_type=FWD||RWD||AWD||4WD&fuel_type=H&sort_type=price&sort_order=asc", "cN": ""},
						{ "title": "Fuel Efficient Cars", "url": WEBSITE_USEDCARS+"/search/results_specs.pl?search_type=2&price_low=0000&price_high=100000&body_styles=Convertible||Coupe||Sedan||Wagon||Hatch||Pickup||Minivan||Suv&feature1=0&feature2=0&province=0&city=0&make=0&model=ckup||Minivan||ckup||Minivan||0&fuel_economy=City||1||8&results_first=Spec||1994||2006&hp_l||Minivan||ow=70&hp_high=300&safety_features=&transmission=AU||MA&drive_type=FWD||RWD||AWD||4WD&fuel_type=U||P||D||H&sort_type=economy_city&sort_order=desc&quick_e|con=1", "cN": ""}
					]
				}
		},
		sportsSubSubNav = {
			"menu":
				{
					"hockey": [
						{	"title": "Scoreboards", "url": "http://stats.sports.theglobeandmail.com/nhl/scoreboard.asp", "cN": "scoreboards" },
						{	"title": "Standings", "url": "http://stats.sports.theglobeandmail.com/nhl/league.asp?type=conf_stand", "cN": "standings" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/nhl/index.asp", "cN": "statistics" },
						{	"title": "Players", "url": "http://stats.sports.theglobeandmail.com/nhl/players.asp", "cN": "players" },
						{	"title": "Players News", "url": "http://stats.sports.theglobeandmail.com/nhl/notes.asp", "cN": "playersnews" },
						{	"title": "Injuries", "url": "http://stats.sports.theglobeandmail.com/nhl/recentinj.asp", "cN": "injuries" },
						{	"title": "TEAMS", "url": null, "cN": null },
						{	"title": "Canadiens", "url": WEBSITE_SPORTS+"/hockey/canadiens", "cN": "canadiens" },
						{	"title": "Canucks", "url": WEBSITE_SPORTS+"/hockey/canucks", "cN": "canucks" },
						{	"title": "Flames", "url": WEBSITE_SPORTS+"/hockey/flames", "cN": "flames" },
						{	"title": "Maple Leafs", "url": WEBSITE_SPORTS+"/hockey/mapleleafs", "cN": "mapleleafs" },
						{	"title": "Oilers", "url": WEBSITE_SPORTS+"/hockey/oilers", "cN": "oilers" },
						{	"title": "Senators", "url": WEBSITE_SPORTS+"/hockey/senators", "cN": "senators" },
						{	"title": "All Teams", "url": "http://stats.sports.theglobeandmail.com/nhl/teams.asp", "cN": "allteams" },
						{	"title": "FEATURES", "url": null, "cN": null },
						{	"title": "Fantasy Hockey", "url": "http://fantasy.globesports.com/globe&mail/hockeygmr07/index.cgi", "cN": "fantasyhockey" },
						{	"title": "Jr Hockey Radio", "url": "http://www.juniorhockeyradio.com", "cN": "jrhockeyradio" }
					],
					"baseball": [
						{	"title": "Scoreboards", "url": "http://stats.sports.theglobeandmail.com/mlb/scoreboard.asp", "cN": "scoreboards" },
						{	"title": "Standings", "url": "http://stats.sports.theglobeandmail.com/mlb/stats.asp?file=standings", "cN": "standings" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/mlb/index.asp", "cN": "statistics" },
						{	"title": "Players", "url": "http://stats.sports.theglobeandmail.com/mlb/players.asp", "cN": "players" },
						{	"title": "Players News", "url": "http://stats.sports.theglobeandmail.com/mlb/news.asp", "cN": "playersnews" },
						{	"title": "Injuries", "url": "http://stats.sports.theglobeandmail.com/mlb/stats.asp?file=recentinj", "cN": "injuries" },
						{	"title": "Transactions", "url": "http://stats.sports.theglobeandmail.com/mlb/stats.asp?file=recenttrans", "cN": "transactions" },
						{	"title": "TEAMS", "url": null, "cN": null },
						{	"title": "Blue Jays", "url": WEBSITE_SPORTS+"/baseball/bluejays", "cN": "bluejays" },
						{	"title": "All Teams", "url": "http://stats.sports.theglobeandmail.com/mlb/teams.asp", "cN": "allteams" }
					],
					"basketball": [
						{	"title": "Scoreboards", "url": "http://stats.sports.theglobeandmail.com/nba/scoreboard.asp", "cN": "scoreboards" },
						{	"title": "Standings", "url": "http://stats.sports.theglobeandmail.com/nba/league.asp?type=stand", "cN": "standings" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/nba/index.asp", "cN": "statistics" },
						{	"title": "Players", "url": "http://stats.sports.theglobeandmail.com/nba/players.asp", "cN": "players" },
						{	"title": "Players News", "url": "http://stats.sports.theglobeandmail.com/nba/notes.asp", "cN": "playersnews" },
						{	"title": "TEAMS", "url": null, "cN": null },
						{	"title": "Raptors", "url": WEBSITE_SPORTS+"/basketball/raptors", "cN": "raptors" },
						{	"title": "All Teams", "url": "http://stats.sports.theglobeandmail.com/nba/teams.asp", "cN": "allteams" }
					],
					"football": [
						{	"title": "CFL Scoreboards", "url": "http://stats.sports.theglobeandmail.com/cfl/today.asp", "cN": "cflscoreboards" },
						{	"title": "CFL Standings", "url": "http://stats.sports.theglobeandmail.com/cfl/totalstandings.asp", "cN": "cflstandings" },
						{	"title": "CFL Leaders", "url": "http://stats.sports.theglobeandmail.com/cfl/leaders.asp", "cN": "cflleaders" },
						{	"title": "CFL Team Leaders", "url": "http://stats.sports.theglobeandmail.com/cfl/tmleaders.asp", "cN": "cflteamleaders" },
						{	"title": "TEAMS", "url": null, "cN": null },
						{	"title": "Alouettes", "url": WEBSITE_SPORTS+"/football/alouettes", "cN": "alouettes" },
						{	"title": "Argonauts", "url": WEBSITE_SPORTS+"/football/argonauts", "cN": "argonauts" },
						{	"title": "Blue Bombers", "url": WEBSITE_SPORTS+"/football/bluebombers", "cN": "bluebombers" },
						{	"title": "Eskimos", "url": WEBSITE_SPORTS+"/football/eskimos", "cN": "eskimos" },
						{	"title": "Lions", "url": WEBSITE_SPORTS+"/football/lions", "cN": "lions" },
						{	"title": "Roughriders", "url": WEBSITE_SPORTS+"/football/roughriders", "cN": "roughriders" },
						{	"title": "Stampeders", "url": WEBSITE_SPORTS+"/football/stampeders", "cN": "stampeders" },
						{	"title": "Tiger-Cats", "url": WEBSITE_SPORTS+"/football/tigercats", "cN": "tigercats" },
						{	"title": "NFL", "url": null, "cN": null },
						{	"title": "NFL Scoreboard", "url": "http://stats.sports.theglobeandmail.com/fb/current_week.asp", "cN": "nflscoreboard" },
						{	"title": "NFL Standings", "url": "http://stats.sports.theglobeandmail.com/fb/totalstandings.asp", "cN": "nflstandings" },
						{	"title": "NFL Statistics", "url": "http://stats.sports.theglobeandmail.com/fb/index.asp", "cN": "nflstatistics" },
						{	"title": "NFL Teams", "url": "http://stats.sports.theglobeandmail.com/fb/teams.asp", "cN": "allnflteams" }
					],
					"golf": [
						{	"title": "PGA", "url": null, "cN": null },
						{	"title": "Leaderboard", "url": "http://stats.sports.theglobeandmail.com/golf/final.asp?tour=PGA", "cN": "pgaleaderboard" },
						{	"title": "Schedule", "url": "http://stats.sports.theglobeandmail.com/golf/schedule.asp?tour=PGA", "cN": "pgaschedule" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/golf/averages.asp?tour=PGA", "cN": "pgastatistics" },
						{	"title": "LPGA", "url": null, "cN": null },
						{	"title": "Leaderboard", "url": "http://stats.sports.theglobeandmail.com/golf/final.asp?tour=LPGA", "cN": "lpgaleaderboard" },
						{	"title": "Schedule", "url": "http://stats.sports.theglobeandmail.com/golf/schedule.asp?tour=LPGA", "cN": "lpgaschedule" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/golf/averages.asp?tour=LPGA", "cN": "lpgastatistics" },					
						{	"title": "NATIONWIDE", "url": null, "cN": null },						
						{	"title": "Leaderboard", "url": "http://stats.sports.theglobeandmail.com/golf/final.asp?tour=NWID", "cN": "nationwideleaderboard" },
						{	"title": "Schedule", "url": "http://stats.sports.theglobeandmail.com/golf/schedule.asp?tour=NWID", "cN": "nationwideschedule" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/golf/averages.asp?tour=NWID", "cN": "nationwidestatistics" },					
						{	"title": "EURO", "url": null, "cN": null },						
						{	"title": "Leaderboard", "url": "http://stats.sports.theglobeandmail.com/golf/final.asp?tour=EURO", "cN": "euroleaderboard" },
						{	"title": "Schedule", "url": "http://stats.sports.theglobeandmail.com/golf/schedule.asp?tour=EURO", "cN": "euroschedule" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/golf/averages.asp?tour=EURO", "cN": "eurostatistics" },					
						{	"title": "CHAMP", "url": null, "cN": null },						
						{	"title": "Leaderboard", "url": "http://stats.sports.theglobeandmail.com/golf/final.asp?tour=CHMP", "cN": "champleaderboard" },
						{	"title": "Schedule", "url": "http://stats.sports.theglobeandmail.com/golf/schedule.asp?tour=CHMP", "cN": "champschedule" },
						{	"title": "Statistics", "url": "http://stats.sports.theglobeandmail.com/golf/averages.asp?tour=CHMP", "cN": "champstatistics" }
					],
					"soccer": [
						{	"title": "MLS", "url": null, "cN": null },
						{	"title": "MLS Scoreboards", "url": "http://stats.sports.theglobeandmail.com/mls/scoreboard_week.asp", "cN": "mlsscoreboards" },
						{	"title": "MLS Schedule", "url": "http://stats.sports.theglobeandmail.com/mls/schedules.asp", "cN": "mlsschedule" },
						{	"title": "MLS Standings", "url": "http://stats.sports.theglobeandmail.com/mls/standings.asp", "cN": "mlsstandings" },
						{	"title": "MLS Teams", "url": "http://stats.sports.theglobeandmail.com/mls/teams.asp", "cN": "mlsteams" },
						{	"title": "MLS Leaders", "url": "http://stats.sports.theglobeandmail.com/mls/player_leaders.asp", "cN": "mlsleaders" },
						{	"title": "OTHER SCOREBOARDS", "url": null, "cN": null },
						{	"title": "English Premiership", "url": "http://stats.sports.theglobeandmail.com/epl/scoreboard_week.asp", "cN": "englishpremiership" },
						{	"title": "German Bundesliga", "url": "http://stats.sports.theglobeandmail.com/bund/scoreboard_week.asp", "cN": "germanbundesliga" },
						{	"title": "France Ligue 1", "url": "http://stats.sports.theglobeandmail.com/fran/scoreboard_week.asp", "cN": "franceligue1" },
						{	"title": "Dutch Eredivisie", "url": "http://stats.sports.theglobeandmail.com/holl/scoreboard_week.asp", "cN": "dutcheredivisie" },
						{	"title": "Spanish La Liga", "url": "http://stats.sports.theglobeandmail.com/liga/scoreboard_week.asp", "cN": "spanishlaliga" },
						{	"title": "Italian Serie A", "url": "http://stats.sports.theglobeandmail.com/seri/scoreboard_week.asp", "cN": "italianseriea" }
					]
				}
		}
	} else {
		setTimeout(setMenu,60);
	}
}
function currentPage(menuObj){
	var nav;
	var bdy = d.getElementsByTagName("BODY")[0];
	var body_cn = d.getElementsByTagName("BODY")[0].className;
	if (!body_cn || body_cn==null || body_cn=="undefined") {
		PageInfo.hubClass = "generic"; // nothing highlighted
	} else {
		if (is_marketplace_hub(bdy)) {
			return;
		}
		body_cn = body_cn.split(" ");	
		for(x=0;body_cn.length>x;x++){
			nav =  d.getElementsByClassName(body_cn[x],menuObj);
			if(nav.length>0){
				if(x==1 && PageInfo.hubClass==null){
					PageInfo.hubClass = body_cn[x];
				} else if(x==2 && PageInfo.subhubClass==null) {
					PageInfo.subhubClass = body_cn[x];
				}
			}
		}
	}
}
function is_marketplace_hub(elm) {
	var mktplace_hubs = ['globeauto', 'realestate', 'careers', 'personals'];
	mktplace_hubs.each(function(hub) {
		if(Element.hasClassName(elm, hub)) {
			PageInfo.hubClass = "marketplace";
			PageInfo.subhubClass = hub;
			return true;
		} else {
			if (location.href.indexOf("workopolis") != -1) {
				PageInfo.hubClass = "marketplace";
				PageInfo.subhubClass = "globecareers";
				return true;
			} else if ((location.href.indexOf("classifieds") || location.href.indexOf("classads")) != -1) {
				PageInfo.hubClass = "marketplace";
				PageInfo.subhubClass = "classifieds";
				return true;
			} else if (location.href.indexOf("personals") != -1) {
				PageInfo.hubClass = "marketplace";
				PageInfo.subhubClass = "personals";
				return true;
			} else if (location.href.indexOf("globeauto") != -1) {
				PageInfo.hubClass = "marketplace";
				PageInfo.subhubClass = "globeauto";
				return true;
			}
		}
	});
	return false;	
}
function activateMenu(menuObj){
	var nav = Element.getElementsBySelector(menuObj,"ul.nav li");
	if (PageInfo.hubClass) {
		if (PageInfo.hubClass.toLowerCase() == "business") {
			createSubSubMenus(menuObj,"business",robSubSubNav);
		}	else if (PageInfo.hubClass.toLowerCase() == "life") {
			createSubSubMenus(menuObj,"life",lifeSubSubNav);
		}	else if (PageInfo.hubClass.toLowerCase() == "sports") {
			createSubSubMenus(menuObj,"sports",sportsSubSubNav);
		}	else if (PageInfo.hubClass.toLowerCase() == "marketplace") {
			createSubSubMenus(menuObj,"marketplace",marketplaceSubSubNav);
		}	else if (PageInfo.hubClass.toLowerCase() == "realestate") {
			createSubSubMenus(menuObj,"marketplace",marketplaceSubSubNav);
		}
	}
	for(x=0;nav.length>x;x++){
		Element.cleanWhitespace(nav[x].parentNode);
		Element.cleanWhitespace(nav[x]);
		if(nav[x].hasClassName(PageInfo.hubClass) || nav[x].hasClassName(PageInfo.subhubClass)){ 
			nav[x].addClassName("dynActive");
			nav[x].addClassName("dynCurrent");
		}
	}
}
function createSubSubMenus(menuObj,hubclass,obj) {
	if(typeof obj != "object" || obj==""){ 
		setMenu(); 
		if (PageInfo.hubClass.toLowerCase() == "business") {
			obj = robSubSubNav;
		}	else if (PageInfo.hubClass.toLowerCase() == "life") {
			obj = lifeSubSubNav;
		}	else if (PageInfo.hubClass.toLowerCase() == "sports") {
			obj = sportsSubSubNav;
		}	else if (PageInfo.hubClass.toLowerCase() == "marketplace") {
			obj = marketplaceSubSubNav;
		} else if (PageInfo.hubClass.toLowerCase() == "realestate") {
			obj = marketplaceSubSubNav;
		}
	}
	var list,item,alink,nObj,txt;
	var nav = d.getElementsByClassName(hubclass,$("globalNav"))[0].getElementsByTagName("UL")[0].childNodes;
	for(y=0;nav.length>y;y++){
		if(nav[y].nodeType==1){
			item_cN = nav[y].className.replace(/\sdyn([A-Z][a-z]+)/g,"");
			list = createElement("ul","","nav");
			if(obj.menu[item_cN]){
				for(x=0;obj.menu[item_cN].length>x;x++){
					nObj = obj.menu[item_cN][x];
					txt = d.createTextNode(nObj.title);
					item = createElement("li","",nObj.cN);
					if(nObj.url!=null){
						alink = createElement("a","",nObj.cN,nObj.url);
						alink.appendChild(txt);
						item.appendChild(alink);
					} else {
						item.appendChild(txt);
					}
					list.appendChild(item);
				}
			} else {
				continue;
			}
			nav[y].appendChild(list);
			createIframe(nav[y],list);
			addEvent(nav[y],"mouseover",showThirdMenu);
			addEvent(nav[y],"mouseout",showThirdMenu);
		}
	}
	/* GM - 2007-10-02 */
	/* appends an iframe to dropdowns -- essentially keeps the dropdown menu from disapperaing behind a select, applet, flash etc */
	function createIframe(nav,list){/* creates a mask for IE6 and selects*/
		var iframe = createElement('iframe');
		iframe.frameborder = 0;
		iframe.style.width = Element.getWidth(list)+"px";
		iframe.style.height = Element.getHeight(list)+"px";
		Element.hide(iframe);
		nav.appendChild(iframe);	
	}
}
function showThirdMenu(e){
	e = (window.event) ? window.event : e;
	e.cancelBubble = true;
	if (e.stopPropagation) { e.stopPropagation(); }
	if(e.type=="mouseover"){
		clearTimeout(PageInfo.setCurrentTimeOut);
		this.parentNode.parentNode.addClassName("dynCurrentActive");
		if (!this.hasClassName("dynActive"))	 {
			this.addClassName("dynActive");
		}
		this.getElementsByTagName("UL")[0].style.left = getElPos(this)[0]-getElPos(this.parentNode)[0]+"px";
		if(this.getElementsByTagName("IFRAME").length>0){
			this.getElementsByTagName("IFRAME")[0].style.left = getElPos(this)[0]-getElPos(this.parentNode)[0]+"px";
			Element.show(this.getElementsByTagName("IFRAME")[0]);
		}
	} else if(e.type=="mouseout"){
		var reltrg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
		if(Element.descendantOf(reltrg,this)) { 
			return; 
		}		
		if(this.parentNode.hasClassName("nav")){
			var nav_items = this.parentNode.getElementsByTagName("LI");
			for(x=0;nav_items.length>x;x++){
				if(this.parentNode==nav_items[x].parentNode && nav_items[x].getElementsByTagName("UL").length>0){
					nav_items[x].removeClassName("dynActive");
					nav_items[x].getElementsByTagName("UL")[0].style.left = "-937em";		
					if(nav_items[x].getElementsByTagName("IFRAME").length>0){		
						Element.hide(nav_items[x].getElementsByTagName("IFRAME")[0]);
					}	
				}
			}
			var reltrg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
			if(typeof reltrg !="undefined" && !Element.descendantOf(reltrg,this.parentNode)){
				nObj = this.parentNode;
				PageInfo.resetMenuTimeOut = setTimeout("resetMenu(nObj)",600);
				PageInfo.setCurrentTimeOut = setTimeout(setCurrent,600);
			}		
		}
	}
}
function setCurrent(){
	$("globalNav").removeClassName("inactive");
	resetMenu($("globalNav"));
}
function resetMenu(nObj){
	var nav_items = $("globalNav").getElementsByTagName("LI");
	for(x=0;nav_items.length>x;x++){
		if(nObj!=nav_items[x] && nav_items[x].className.indexOf("dynActive")!=-1){
			nav_items[x].removeClassName("dynActive");
			nav_items[x].removeClassName("dynCurrentActive");
		} 
	}
}




/* NB: search functionality */

function globalSearch(){
	if($("searchSimple")){
		var f = $("searchSimple");
		if(!f.control || typeof f.control[1] == "undefined"){ return; }
		var bObj = d.getElementsByTagName("BODY")[0];
		
		if($(bObj).hasClassName("business")){
			f.control[1].checked=true;	
			
			if($(bObj).hasClassName("globefund")){
				searchSwitch(f,"searchFN");
			} else {
				searchSwitch(f,"searchSQ");
			}
		}
		addEvent(f,"submit",function(){ 
			for(x=0;this["control"].length>x;x++){
				this["control"][x].disabled = true;
			}
		});
		for(x=0;f["control"].length>x;x++){
			if(f["control"][x].checked){ searchSwitch(f,f["control"][x].value); }
			addEvent(f["control"][x],"click",function(){ searchSwitch($("searchSimple"),this.value); });
			f["control"][x].disabled = false;
		}
	} else {
		setTimeout(globalSearch,60);
	}
}

function searchSwitch(f,v){ 
	var f_ctrl;
	if (v=="searchSQ") {
		if(location.host.indexOf("invest")==-1){
			f_ctrl = [WEBSITE_FINANCE+"/invest/investSQL/gx.symbol_rep_ads",true,"pi_symblist"];
			if(!f.pi_sponsor){
				var i = createElement("INPUT","","","","","","","","hidden");
				i.name = "pi_sponsor";
				i.value = "BMO";
				$("searchSimple").appendChild(i);
			}
		} else {
			f_ctrl = [WEBSITE_FINANCE+"/invest/investSQL/gx.symbol_rep",true,"pi_symblist"];
		}
	} else if(v=="searchFN") {
		f_ctrl = [WEBSITE_FINANCE_FUND+"/gishome/plsql/gis.process_fr",true,"fr_param1"];
		addEvent($("searchText"),"focus",function(){
			if(this.value=="Enter Fund Name"){ this.value = ""; }
		});
		var i = createElement("INPUT","","","","","","","","hidden");
		i.name = "fr_mode";
		i.value = "FUNDNAME";
		$("searchSimple").appendChild(i);
		if(f.control){ f.control[1].checked=true;	}
		
	} else if(v=="B") {
		if(f.control){ f.control[2].checked=true;	}
		
	} else if(v=="P") {
		if(f.control){ f.control[3].checked=true;	}	
		
		
		
		
		
	} else {
		f_ctrl = [WEBSITE_TGAM+"/servlet/Page/document/v5/templates/hub",false,"searchText"];
		if(f.control){ f.control[0].checked=true;	}
	}
	f.action = f_ctrl[0];
	f.hub.disabled = f_ctrl[1];
	f.searchType.disabled = f_ctrl[1];
	$("searchText").name = f_ctrl[2];
	addEvent(f,"submit",function(){
		if(f.control){
			$("searchSimple").control[0].disabled = true;
			$("searchSimple").control[0].disabled = true;
		}
	});
}
addEvent(window,"unload",function(){ if(PageInfo){ PageInfo = null;} });
var b_globalNav = false; 
function globalNav(menuObj){
  if (menuObj ==  $('header')&& b_globalNav) { return };
	currentPage(menuObj);
	activateMenu(menuObj);
	if (d.getElementsByTagName('BODY')[0].className.indexOf('feature-topic') == -1) {
		if($("newsTicker")){ writeTicker(WEBSITE_IMAGES+"/generated/rss/BN/FB-Front.xml","newsTicker","#FFFFFF","#999999","#000000"); }
	}
  if (menuObj == $('header')) {b_globalNav = true;}
}
/* on load */
if (typeof Event.onReady == 'function') {   //pages where tp-merged is called before tgam-merged
	Event.onReady(function() {
		globalNav($('header'));
		globalSearch();	
	});
} else { // legacy pages or pages where merge files aren't present
	function delayNav(){
		if(d.getElementById("content") && d.getElementById("header")){
			if(!d.getElementById("globalNav")){ return; }
			else {
				globalNav(d.getElementById("header"));
				clearTimeout(dlyN);
			}
		} else { 
			var dlyN = setTimeout("delayNav()",60); 
		}
	} var dlyN = delayNav();
	function delaySearch(){
		if(d.getElementById("searchSimple")){
			globalSearch();
			clearTimeout(dlyS);
		} else { 
			var dlyS = setTimeout("delaySearch()",60); 
		}
	} var dlyS = delaySearch();
}

