var TB_bgColor = "#0A6CCE"
var TB_menuColor = "#0A6CCE"
var TB_fontColor = "white"
var TB_moColor = "#FF0000"

toolbar_link ="http://www.microsoft.com/net/";
toolbar_source = "http://www.microsoft.com/isapi/gomscom.asp?target=/hk/images/ms_dot_net.gif";
toolbar_alt = "Microsoft.Net";

var ToolBar_Supported = ToolBar_Supported ;
if (ToolBar_Supported != null && ToolBar_Supported == true)
{
	//To Turn on/off Frame support, set Frame_Supported = true/false.
	Frame_Supported = false;

	// Customize default ICP menu color - bgColor, fontColor, mouseoverColor
	setDefaultICPMenuColor(TB_menuColor, TB_fontColor, TB_moColor);

	// Customize toolbar background color
	setToolbarBGColor(TB_bgColor);

	// display ICP Banner
	//setICPBanner("/hk/newlibrary/homepage/images/bnr_all.gif","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/","microsoft.com Hong Kong") ;

	//***** Add ICP menus *****
	//Home
	addICPMenu("HomeMenu", "Home", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/");

	//What's On?
	addICPMenu("EventsMenu", "What's On?", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/events/");
	addICPSubMenu("EventsMenu", "Events & Seminars","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/events/");
	addICPSubMenu("EventsMenu","Promotions","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/promotion/");

	//About Us
	addICPMenu("MicrosoftMenu", "About Us", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/mscorp/");
	addICPSubMenu("MicrosoftMenu","Company Overview","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/mscorp/");
	addICPSubMenu("MicrosoftMenu","Press News","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/corpinfo/");
	addICPSubMenu("MicrosoftMenu","Investor Relations","http://www.microsoft.com/isapi/gomscom.asp?target=/msft/","_blank");

	//Subscribe
	addICPMenu("SubscribeMenu", "Subscribe", "","http://www.microsoft.com/isapi/goregwiz.asp?target=/regsys/pic.asp?sec=0&lcid=15369","_blank");
	addICPSubMenu("SubscribeMenu","Newsletters","http://www.microsoft.com/isapi/goregwiz.asp?target=/regsys/pic.asp?sec=0&lcid=15369","_blank");
	addICPSubMenu("SubscribeMenu","Free Email Account","http://www.msn.com.hk","_blank");
	addICPSubMenu("SubscribeMenu","Messenger Service","http://messenger.msn.com.hk/","_blank");
	addICPSubMenu("SubscribeMenu","Manage Your Profile","http://www.microsoft.com/isapi/goregwiz.asp?target=/regsys/pic.asp?lcid=15369","_blank");
	addICPSubMenu("SubscribeMenu","Privacy, Security & Safety","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/privacy");

	// Downloads
	addICPMenu("DownloadsMenu","Downloads", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/download/");
	addICPSubMenu("DownloadsMenu","Local download center","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/download/");
	addICPSubMenu("DownloadsMenu","Windows Update","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/download/windows.htm");
	addICPSubMenu("DownloadsMenu","Office Update","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/download/office.htm");

	//Site Map
	addICPMenu("SitemapMenu", "Site Map", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/sitemap.htm");
	addICPSubMenu("SitemapMenu","Site Map","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/sitemap.htm");
	addICPSubMenu("SitemapMenu","Site Guide","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/help.htm");

	//Contact Us
	addICPMenu("ContactUsMenu", "Contact Us", "","http://www.microsoft.com/isapi/gomscom.asp?target=/hk/customerService/");

	//MSN Hong Kong
	//addICPMenu("msnHK", "MSN Hong Kong", "","http://www.msn.com.hk/","_blank");

	//setMSBanner("mslogo.gif","http://www.microsoft.com/hk/","Microsoft HK");

	//setAds("http://www.microsoft.com/isapi/gomscom.asp?target=/hk/images/ms_dot_net.gif","http://www.microsoft.com/net","Microsoft.net");
}

function drawTBDownLevel(TB_fontColor)
{
	urlStr = self.location.href;

	HTMLStr = ""
	HTMLStr = HTMLStr + ""
	HTMLStr = HTMLStr + "<!-- Start: ToolBar for down-level browsers-->"
	HTMLStr = HTMLStr + "<DIV ID='TBDownLevelDiv'>"
	HTMLStr = HTMLStr + "<TABLE WIDTH='100%' CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR='" + TB_bgColor + "'>"
	HTMLStr = HTMLStr + "<TR>"
	HTMLStr = HTMLStr + "<TD VALIGN='TOP' HEIGHT=60 width='100%' ROWSPAN=2><A HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/' TARGET='_top'><IMG SRC='images/banner.gif' WIDTH=290 HEIGHT=60 ALT='microsoft.com/hk Home' BORDER=0></A></TD>"
	HTMLStr = HTMLStr + "<TD VALIGN='TOP' HEIGHT=20 ALIGN='RIGHT' ROWSPAN=2><IMG SRC='/library/toolbar/images/curve.gif' WIDTH=18 HEIGHT=20 ALT='' BORDER=0></TD>"
	HTMLStr = HTMLStr + "<TD BGCOLOR='#000000' HEIGHT=20 VALIGN='MIDDLE' ALIGN='RIGHT' nowrap>"
	HTMLStr = HTMLStr + "<FONT COLOR='" + TB_fontColor + "' FACE='Verdana, Arial' SIZE=1><B>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/catalog/default.asp?subid=22' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>&nbsp;</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/catalog/default.asp?subid=22' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>All Products</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='#FFFFFF'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/support/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Support</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='#FFFFFF'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gosearch.asp?target=/us/default.asp' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Search</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='#FFFFFF'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>microsoft.com Home</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;</B></FONT>"
	HTMLStr = HTMLStr + "</TD>"
	HTMLStr = HTMLStr + "</TR>"
	HTMLStr = HTMLStr + "<TR>"
	if (urlStr.indexOf('_c') == -1) {
		HTMLStr = HTMLStr + "<TD VALIGN='TOP' HEIGHT=40 NOWRAP><img src='images/logo_hk.gif' border='0'><img src='images/trans.gif' width='202' height='1' border='0'></TD>"
	} else {
		HTMLStr = HTMLStr + "<TD VALIGN='TOP' HEIGHT=40 NOWRAP><img src='images/logo_hk_c.gif' border='0'><img src='images/trans.gif' width='202' height='1' border='0'></TD>"
	}
	HTMLStr = HTMLStr + "</TR>"
	HTMLStr = HTMLStr + "<TR>"
	HTMLStr = HTMLStr + "<!-- Start: Local menus -->"
	HTMLStr = HTMLStr + "<TD BGCOLOR='" + TB_menuColor + "' HEIGHT=20 VALIGN='MIDDLE' nowrap COLSPAN=3>"
	HTMLStr = HTMLStr + "<FONT COLOR='" + TB_fontColor + "' FACE='Verdana, Arial' SIZE=1><B>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Home</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/events/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>What's On?</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/mscorp/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>About Us</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/goregwiz.asp?target=/regsys/pic.asp?sec=0&lcid=15369' TARGET='_blank'><FONT COLOR='" + TB_fontColor + "'>Subscribe</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/download/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Downloads</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/sitemap.htm' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Site Map</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.microsoft.com/isapi/gomscom.asp?target=/hk/customerService/' TARGET='_top'><FONT COLOR='" + TB_fontColor + "'>Contact Us</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "<A STYLE='color:" + TB_fontColor + ";text-decoration:none;' HREF='http://www.msn.com.hk/' TARGET='_blank'><FONT COLOR='" + TB_fontColor + "'>MSN Hong Kong</FONT></A>"
	HTMLStr = HTMLStr + "&nbsp;&nbsp;<FONT COLOR='" + TB_fontColor + "'>|</FONT>&nbsp;&nbsp;"
	HTMLStr = HTMLStr + "</B></FONT></TD>"
	HTMLStr = HTMLStr + "<!-- End: Local menus -->"
	HTMLStr = HTMLStr + "</TR>"
	HTMLStr = HTMLStr + "</TABLE>"
	HTMLStr = HTMLStr + "</DIV>"
	HTMLStr = HTMLStr + "<!-- End: ToolBar For old browsers-->"

	document.write(HTMLStr)
}


// 2001-02-09 added for product_pricing

// var bName = navigator.appName;
// var bVer = navigator.appVersion;

// if ((bName == "Microsoft Internet Explorer") && (bVer.indexOf("4") != -1))
// 	browser = "ie4";
// if ((bName == "Netscape") && (bVer.indexOf("4") != -1))
// 	browser = "n4";

function newWin(newURL,winName,setting) {
//	if (browser == "ie4") {
		subWin = window.open(newURL, winName, "width=546,height=373,scrollbars=1" + setting);
//	}
//	if (browser == "n4") {
//		subWin = window.open(newURL, winName, "width=520,height=373,scrollbars=0" + setting);
//	}
}
