



var g_httpCgiUrl = "/stellent/idcplg?IdcService=SS_GET_PAGE&";

/////////////////////////////////////////////////////////////////////////////
// Function : NavNode (constructor)
// Comments :
/////////////////////////////////////////////////////////////////////////////
function NavNode(id, label, href, parent)
{
	this.m_parent = null;
	this.m_level = 0;

	if (parent)
	{
		this.m_parent = parent;
		this.m_level = parent.m_level+1;
	}

	this.m_id = id;

	// assume that m_label will most often be used directly as HTML
	this.m_rawlabel = label;

	label = label.replace(/&/g, '&amp;');
	label = label.replace(/</g, '&lt;');
	label = label.replace(/>/g, '&gt;');
	label = label.replace(/"/g, '&quot;');

	this.m_label = label;

	this.m_href = href;
	this.m_subNodes = new Array();

	var argValues = NavNode.arguments;
	var argCount = NavNode.arguments.length;

	for (i = 4 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("this.cp_" + attrName + " = '" + attrValue + "';");
	}

	NavNode.prototype.addNode = addNode;
	NavNode.prototype.isSelected = isSelected;
}

/////////////////////////////////////////////////////////////////////////////
// Function : addNode
// Comments :
/////////////////////////////////////////////////////////////////////////////
function addNode(id, label, href)
{
	var newIndex = this.m_subNodes.length;
	var newNode = new NavNode(id, label, href, this);

	var argValues = addNode.arguments;
	var argCount = addNode.arguments.length;

	for (i = 3 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("newNode.cp_" + attrName + " = '" + attrValue + "';");
	}

	this.m_subNodes[newIndex] = newNode;
	return newNode;
}

/////////////////////////////////////////////////////////////////////////////
// Function : isSelected
// Comments :
/////////////////////////////////////////////////////////////////////////////
function isSelected()
{
    var pos = window.location.href.lastIndexOf("/");
    var docname = window.location.href.substring(pos+1, window.location.href.length);

    pos = this.m_href.lastIndexOf("/");
    var myname = this.m_href.substring(pos+1, this.m_href.length);

    if (docname == myname)
		return true;
	else
		return false;
}

/////////////////////////////////////////////////////////////////////////////
// Function : isTrue
// Comments :
/////////////////////////////////////////////////////////////////////////////
function isTrue( boolStr )
{
	if( boolStr.length > 0 )
	{
		var boolChar = boolStr.substring(0,1).toUpperCase();
		if( ( boolChar == '1' ) || ( boolChar == 'T' ) )
		{
			return true;
		}
	}

	return false;
}

/////////////////////////////////////////////////////////////////////////////
// Function : customSectionPropertyExists
// Comments :
/////////////////////////////////////////////////////////////////////////////
function customSectionPropertyExists(csp)
{
	return (typeof csp != _U && csp != null);
}

/////////////////////////////////////////////////////////////////////////////
// Function : getCustomSectionProperty
// Comments :
/////////////////////////////////////////////////////////////////////////////
function getCustomSectionProperty(csp)
{
	if (customSectionPropertyExists(csp))
	{
		return csp;
	}
	else
	{
		return "";
	}
}

/////////////////////////////////////////////////////////////////////////////
// Function : link
// Comments :
/////////////////////////////////////////////////////////////////////////////
function link(dDocName,ssTargetNodeId)
{
	if ((dDocName.search("http://") != -1) || (dDocName.search("https://") != -1))
		window.open(dDocName);
	else
	{
		var newUrl = "";
		newUrl += g_httpCgiUrl;
		newUrl += "ssDocName=" + dDocName;

		var currentUrl = "" + window.location;

		// Continue propagation of the "SSContributor" parameter
		if( SSContributor )
		{
			var paramName = "SSContributor=";
			var pos = currentUrl.indexOf( paramName );
			if( pos != -1 )
			{
				var subStr = currentUrl.substring( pos+paramName.length, pos+paramName.length+1 );
				if( isTrue( subStr ) )
				{
					newUrl += "&" + paramName + "true";
				}
			}
		}

		// Continue propagation of the "previewId" parameter
		var previewId = "previewId=";
		var posStart = currentUrl.indexOf( previewId );
		if( posStart != -1 )
		{
			var posEnd = currentUrl.indexOf("&", posStart);
			var value = "";
			if (posEnd == -1)
			{
				value = currentUrl.substring(posStart+previewId.length, currentUrl.length);
			}
			else
			{
				value = currentUrl.substring(posStart+previewId.length, posEnd);
			}
			newUrl += "&" + previewId + value;
		}

		// We now always add the node that the link is on as part of the URl also.
		if( g_ssSourceNodeId != _U && g_ssSourceNodeId != null )
			newUrl += "&ssSourceNodeId=" + g_ssSourceNodeId;

		// If we have a specific target nodeId then add that to the URL also
		if( ssTargetNodeId != _U && ssTargetNodeId != null )
			newUrl += "&ssTargetNodeId=" + ssTargetNodeId;

		// Navigate to the new url
		window.location = newUrl;
	}
}

/////////////////////////////////////////////////////////////////////////////
// Function : nodelink
// Comments :
/////////////////////////////////////////////////////////////////////////////
function nodelink(nodeId)
{
	var newUrl = "";
	newUrl += g_httpCgiUrl;
	newUrl += "nodeId=" + nodeId;

	var currentUrl = "" + window.location;

	// Continue propagation of the "SSContributor" parameter
	if( SSContributor )
	{
		var paramName = "SSContributor=";
		var pos = currentUrl.indexOf( paramName );
		if( pos != -1 )
		{
			var subStr = currentUrl.substring( pos+paramName.length, pos+paramName.length+1 );
			if( isTrue( subStr ) )
			{
				newUrl += "&" + paramName + "true";
			}
		}
	}

	// Continue propagation of the "previewId" parameter
	var previewId = "previewId=";
	var posStart = currentUrl.indexOf( previewId );
	if( posStart != -1 )
	{
		var posEnd = currentUrl.indexOf("&", posStart);
		var value = "";
		if (posEnd == -1)
		{
			value = currentUrl.substring(posStart+previewId.length, currentUrl.length);
		}
		else
		{
			value = currentUrl.substring(posStart+previewId.length, posEnd);
		}
		newUrl += "&" + previewId + value;
	}

	// We now always add the node that the link is on as part of the URl also.
	if( g_ssSourceNodeId != _U && g_ssSourceNodeId != null )
		newUrl += "&ssSourceNodeId=" + g_ssSourceNodeId;

	// Navigate to the new url
	window.location = newUrl;
}
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Function : popup_link
// Comments : 
/////////////////////////////////////////////////////////////////////////////
function popup_link(dDocName,target,ssTargetNodeId)
{
	if ((dDocName.search("http://") != -1) || (dDocName.search("https://") != -1))
		window.open(dDocName, target);
	else
	{
		var newUrl = "";
		newUrl += g_httpCgiUrl;
		newUrl += "ssDocName=" + dDocName;

		var currentUrl = "" + window.location;

		// Continue propagation of the "SSContributor" parameter
		if( SSContributor )
		{
			var paramName = "SSContributor=";
			var pos = currentUrl.indexOf( paramName );
			if( pos != -1 )
			{
				var subStr = currentUrl.substring( pos+paramName.length, pos+paramName.length+1 );
				if( isTrue( subStr ) )
				{
					newUrl += "&" + paramName + "true";
				}
			}
		}

		// Continue propagation of the "previewId" parameter
		var previewId = "previewId=";
		var posStart = currentUrl.indexOf( previewId );
		if( posStart != -1 )
		{
			var posEnd = currentUrl.indexOf("&", posStart);
			var value = "";
			if (posEnd == -1)
			{
				value = currentUrl.substring(posStart+previewId.length, currentUrl.length);
			}
			else
			{
				value = currentUrl.substring(posStart+previewId.length, posEnd);
			}
			newUrl += "&" + previewId + value;
		}

		// We now always add the node that the link is on as part of the URl also.
		if( g_ssSourceNodeId != _U && g_ssSourceNodeId != null )
			newUrl += "&ssSourceNodeId=" + g_ssSourceNodeId;

		// If we have a specific target nodeId then add that to the URL also
		if( ssTargetNodeId != _U && ssTargetNodeId != null )
			newUrl += "&ssTargetNodeId=" + ssTargetNodeId;

		// Navigate to the new url
		window.open(newUrl, target);
	}
}

/////////////////////////////////////////////////////////////////////////////
// Function : popup_nodelink
// Comments :
/////////////////////////////////////////////////////////////////////////////
function popup_nodelink(nodeId,target)
{
	var newUrl = "";
	newUrl += g_httpCgiUrl;
	newUrl += "nodeId=" + nodeId;

	var currentUrl = "" + window.location;

	// Continue propagation of the "SSContributor" parameter
	if( SSContributor )
	{
		var paramName = "SSContributor=";
		var pos = currentUrl.indexOf( paramName );
		if( pos != -1 )
		{
			var subStr = currentUrl.substring( pos+paramName.length, pos+paramName.length+1 );
			if( isTrue( subStr ) )
			{
				newUrl += "&" + paramName + "true";
			}
		}
	}

	// Continue propagation of the "previewId" parameter
	var previewId = "previewId=";
	var posStart = currentUrl.indexOf( previewId );
	if( posStart != -1 )
	{
		var posEnd = currentUrl.indexOf("&", posStart);
		var value = "";
		if (posEnd == -1)
		{
			value = currentUrl.substring(posStart+previewId.length, currentUrl.length);
		}
		else
		{
			value = currentUrl.substring(posStart+previewId.length, posEnd);
		}
		newUrl += "&" + previewId + value;
	}

	// We now always add the node that the link is on as part of the URl also.
	if( g_ssSourceNodeId != _U && g_ssSourceNodeId != null )
		newUrl += "&ssSourceNodeId=" + g_ssSourceNodeId;

	// Navigate to the new url
	window.open(newUrl, target);
}

var g_navNode_Root = new NavNode('9376','Domain\x20Name\x20Customer\x20Support','javascript:cnslink(0)',null);
g_navNode_0=g_navNode_Root.addNode('9378','COM\x20NET','javascript:cnslink(1)');
g_navNode_0_0=g_navNode_0.addNode('9400','Transfer\x20Dispute\x20Resolution','javascript:cnslink(2)');
g_navNode_0_1=g_navNode_0.addNode('9401','System\x20Performance\x20and\x20Availability','javascript:cnslink(3)','secondaryUrlVariableField==region1');
g_navNode_0_2=g_navNode_0.addNode('9402','Frequently\x20Asked\x20Questions','javascript:cnslink(4)','secondaryUrlVariableField==region1');
g_navNode_0_3=g_navNode_0.addNode('9403','Internationalized\x20Domain\x20Names','javascript:cnslink(5)','secondaryUrlVariableField==region1');
g_navNode_0_4=g_navNode_0.addNode('9404','Technical\x20and\x20Administrative\x20Details','javascript:cnslink(6)','secondaryUrlVariableField==region1');
g_navNode_0_5=g_navNode_0.addNode('9405','Advisories\x20and\x20Announcements','javascript:cnslink(7)','secondaryUrlVariableField==region1');
g_navNode_3=g_navNode_Root.addNode('9505','ccTLD','javascript:cnslink(8)');
g_navNode_3_0=g_navNode_3.addNode('9407','Advisories\x20and\x20Announcements','javascript:cnslink(9)','secondaryUrlVariableField==region1');
g_navNode_3_1=g_navNode_3.addNode('9408','Frequently\x20Asked\x20Questions','javascript:cnslink(10)','secondaryUrlVariableField==region1');
g_navNode_3_2=g_navNode_3.addNode('9409','Resources','javascript:cnslink(11)');
g_navNode_5=g_navNode_Root.addNode('10301','test-frag-lev-1','javascript:cnslink(12)');
g_navNode_5_0=g_navNode_5.addNode('10302','test-frag-lev-2-A','javascript:cnslink(13)');
g_navNode_5_0_0=g_navNode_5_0.addNode('10304','test-frag-lev-3-A','javascript:cnslink(14)');
g_navNode_5_0_1=g_navNode_5_0.addNode('10305','test-frag-lev-3-B','javascript:cnslink(15)');
g_navNode_5_1=g_navNode_5.addNode('10303','test-frag-lev-2-B','javascript:cnslink(16)');
g_navNode_5_1_0=g_navNode_5_1.addNode('10306','test-frag-lev-3-A','javascript:cnslink(17)');
g_navNode_5_1_1=g_navNode_5_1.addNode('10307','test-frag-lev-3-B','javascript:cnslink(18)');
// introduced by connection server
var g_cnsnodes = new Array();
g_cnsnodes[0] = '/index.html';
g_cnsnodes[1] = '/comnet/index.html';
g_cnsnodes[2] = '/comnet/transfer/index.html';
g_cnsnodes[3] = '/comnet/sla/index.html';
g_cnsnodes[4] = '/comnet/faq/index.html';
g_cnsnodes[5] = '/comnet/idn/index.html';
g_cnsnodes[6] = '/comnet/resources/index.html';
g_cnsnodes[7] = '/comnet/advisories/index.html';
g_cnsnodes[8] = '/cctld/index.html';
g_cnsnodes[9] = '/cctld/advisories/index.html';
g_cnsnodes[10] = '/cctld/faq/index.html';
g_cnsnodes[11] = '/cctld/resources/index.html';
g_cnsnodes[12] = '/test-frag-lev-1/index.html';
g_cnsnodes[13] = '/test-frag-lev-1/test-frag-lev-2-A/index.html';
g_cnsnodes[14] = '/test-frag-lev-1/test-frag-lev-2-A/test-frag-lev-3-A/index.html';
g_cnsnodes[15] = '/test-frag-lev-1/test-frag-lev-2-A/test-frag-lev-3-B/index.html';
g_cnsnodes[16] = '/test-frag-lev-1/test-frag-lev-2-B/index.html';
g_cnsnodes[17] = '/test-frag-lev-1/test-frag-lev-2-B/test-frag-lev-3-A/index.html';
g_cnsnodes[18] = '/test-frag-lev-1/test-frag-lev-2-B/test-frag-lev-3-B/index.html';
function cnslink(pageid) {
var newUrl = '';
newUrl += g_prefixToStaticRoot;
newUrl += g_cnsnodes[pageid];
window.location = newUrl;
}