/////////////////////////////////////
//Navigation Menu Generator
//
//Grab the URL from the browser URL bar.
//Evalutate it, if Stellent box, use object with js:nodelinks
//Else, use js:cnslinks with static URL array
//
/////////////////////////////////////
//var win_host = "http://www.verisign.com/"; 
var win_host = window.location.href;
// Production URLs
if (win_host.indexOf("/stellent/idcplg?IdcService=SS_GET_PAGE&") == -1) {
var g_navNode_Root1 = new NavNode('59','US\x20Home','javascript:cnslink(0)',null);
g_navNode_0=g_navNode_Root1.addNode('183','產品與服務','/products-services/');
	g_navNode_0_0=g_navNode_0.addNode('','SSL\x20憑證','/ssl/');
	g_navNode_0_1=g_navNode_0.addNode('','身份識別與驗證','//www.verisign.com.au/authentication/');
//	g_navNode_0_2=g_navNode_0.addNode('','Domain\x20Name\x20Services','javascript:cnslink(4)');
	g_navNode_0_3=g_navNode_0.addNode('','程式碼簽章','/code-signing/');
//	g_navNode_0_4=g_navNode_0.addNode('','Internet\x20Defense\x20Network','javascript:cnslink(6)');	
//	g_navNode_0_5=g_navNode_0.addNode('','Enterprise\x20Security\x20Services','javascript:cnslink(7)');
//	g_navNode_0_6=g_navNode_0.addNode('','Content\x20and\x20Messaging\x20Services','javascript:cnslink(8)');
//	g_navNode_0_7=g_navNode_0.addNode('','Communication\x20Services','javascript:cnslink(9)');
var g_cnsnodes = new Array();
g_cnsnodes[0] = '/index.html';
g_cnsnodes[1] = '/products-services/';
g_cnsnodes[2] = '/ssl/';
g_cnsnodes[3] = '//www.verisign.com.au/authentication/';
g_cnsnodes[4] = '/information-services/naming-services/';
g_cnsnodes[5] = '/code-signing/';
g_cnsnodes[6] = 'http://www.verisign.com//internet-defense-network/index.html';
g_cnsnodes[7] = '/enterprise-security/index.html';
g_cnsnodes[8] = '/products-services/content-messaging/index.html';
g_cnsnodes[9] = '/products-services/communications-services/index.html';
} else {
// CMS SERVER ARRAY
var g_navNode_Root1 = new NavNode('59','US\x20Home','javascript:nodelink(59)',null);
g_navNode_0=g_navNode_Root1.addNode('183','Products\x20&\x20Services','javascript:nodelink(183)');
	g_navNode_0_0=g_navNode_0.addNode('','SSL\x20Certificates','javascript:nodelink(296)');
	g_navNode_0_1=g_navNode_0.addNode('','Identity\x20and\x20Authentication\x20Services','javascript:nodelink(10302)');
//	g_navNode_0_2=g_navNode_0.addNode('','Domain\x20Name\x20Services','javascript:nodelink(267)');
	g_navNode_0_3=g_navNode_0.addNode('','Code\x20Signing','javascript:nodelink(298)');
//	g_navNode_0_4=g_navNode_0.addNode('','Internet\x20Defense\x20Network','javascript:nodelink(10523)');
//	g_navNode_0_5=g_navNode_0.addNode('','Enterprise\x20Security\x20Services','javascript:nodelink(10387)');
//	g_navNode_0_6=g_navNode_0.addNode('','Content\x20and\x20Messaging\x20Services','javascript:nodelink(315)');
//	g_navNode_0_7=g_navNode_0.addNode('','Communication\x20Services','javascript:nodelink(312)');
}
function cnslink(pageid) {
var newUrl = '';
newUrl += g_prefixToStaticRoot;
newUrl += g_cnsnodes[pageid];
window.location = newUrl;
}		
