

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;
}
/////////////////////////////////////////////////////////////////////////////
var g_navNode_Root = new NavNode('3269','Connect\x20With\x20Us','javascript:cnslink(0)',null);
g_navNode_3=g_navNode_Root.addNode('3307','Customer\x20Connections','javascript:cnslink(1)');
g_navNode_3_0=g_navNode_3.addNode('6551','WISDM\x20Access\x20Overview','javascript:cnslink(2)');
g_navNode_3_2=g_navNode_3.addNode('3322','eMeeting\x20Sametime\x20Servers','javascript:cnslink(3)');
g_navNode_4=g_navNode_Root.addNode('3308','Employee\x20Connections','javascript:cnslink(4)');
g_navNode_4_0=g_navNode_4.addNode('3325','Hughes\x20Aircraft\x20Credit\x20Union','javascript:cnslink(5)');
g_navNode_4_1=g_navNode_4.addNode('3326','RTN\x20Credit\x20Union','javascript:cnslink(6)');
g_navNode_4_2=g_navNode_4.addNode('3327','Repatriation','javascript:cnslink(7)');
g_navNode_4_3=g_navNode_4.addNode('5650','Raystaff\x20New\x20Employee\x20Orientation','javascript:cnslink(8)');
g_navNode_4_4=g_navNode_4.addNode('5700','Incident\x20Management','javascript:cnslink(9)');
g_navNode_4_5=g_navNode_4.addNode('5742','Email\x20Delivery\x20Notice','javascript:cnslink(10)');
g_navNode_4_6=g_navNode_4.addNode('5904','RTSC\x20Labor\x20Reporting\x20Training\x20Course','javascript:cnslink(11)');
g_navNode_4_7=g_navNode_4.addNode('6168','Information\x20Security\x20Awareness\x20Required','javascript:cnslink(12)');
g_navNode_4_8=g_navNode_4.addNode('6228','Application\x20Only\x20Available\x20to\x20US-based\x20Employees','javascript:cnslink(13)');
g_navNode_4_9=g_navNode_4.addNode('6534','ITAR\x20Certification\x20Required','javascript:cnslink(14)');
g_navNode_4_10=g_navNode_4.addNode('6537','eMeeting\x20Registration\x20Required','javascript:cnslink(15)');
g_navNode_5=g_navNode_Root.addNode('3309','Raytheon\x20Company\x20Store','javascript:cnslink(16)');
g_navNode_6=g_navNode_Root.addNode('3310','Supplier\x20Connections','javascript:cnslink(17)');
g_navNode_6_0=g_navNode_6.addNode('3331','Supplier\x20Registration','javascript:cnslink(18)');
g_navNode_6_1=g_navNode_6.addNode('3332','Electronic\x20Commerce\x20at\x20Raytheon','javascript:cnslink(19)');
g_navNode_6_1_0=g_navNode_6_1.addNode('3336','E-Commerce\x20Glossary','javascript:cnslink(20)');
g_navNode_6_1_1=g_navNode_6_1.addNode('3337','E-Commerce\x20FAQ','javascript:cnslink(21)');
g_navNode_6_1_2=g_navNode_6_1.addNode('3338','What\x20is\x20E-Commerce','javascript:cnslink(22)');
g_navNode_6_1_3=g_navNode_6_1.addNode('3339','How\x20Does\x20E-Commerce\x20Work','javascript:cnslink(23)');
g_navNode_6_1_4=g_navNode_6_1.addNode('3340','E-Commerce\x20Environment','javascript:cnslink(24)');
g_navNode_6_1_5=g_navNode_6_1.addNode('3341','Methods\x20of\x20Using\x20E-Commerce','javascript:cnslink(25)');
g_navNode_6_1_5_0=g_navNode_6_1_5.addNode('3344','What\x20is\x20EDI','javascript:cnslink(26)');
g_navNode_6_1_5_0_0=g_navNode_6_1_5_0.addNode('3348','Value\x20Added\x20Networks','javascript:cnslink(27)');
g_navNode_6_1_5_0_1=g_navNode_6_1_5_0.addNode('3349','EDI\x20Software\x20Information','javascript:cnslink(28)');
g_navNode_6_1_5_1=g_navNode_6_1_5.addNode('3345','What\x20is\x20Web-Based\x20EDI','javascript:cnslink(29)');
g_navNode_6_1_5_1_0=g_navNode_6_1_5_1.addNode('3350','Requirements','javascript:cnslink(30)');
g_navNode_6_1_5_1_1=g_navNode_6_1_5_1.addNode('3351','Cost\x20Comparison','javascript:cnslink(31)');
g_navNode_6_1_5_2=g_navNode_6_1_5.addNode('3346','Uses\x20of\x20File\x20Transfer\x20Protocol','javascript:cnslink(32)');
g_navNode_6_1_5_3=g_navNode_6_1_5.addNode('3347','What\x20is\x20XML','javascript:cnslink(33)');
g_navNode_6_1_6=g_navNode_6_1.addNode('3342','E-Commerce\x20Technical\x20Documents','javascript:cnslink(34)');
g_navNode_6_1_6_0=g_navNode_6_1_6.addNode('3352','Trading\x20Partner\x20Agreement','javascript:cnslink(35)');
g_navNode_6_1_7=g_navNode_6_1.addNode('3343','Become\x20a\x20Raytheon\x20Supplier','javascript:cnslink(36)');
g_navNode_6_2=g_navNode_6.addNode('3334','Raytheon\x20Terms\x20and\x20Conditions','javascript:cnslink(37)');
g_navNode_6_3=g_navNode_6.addNode('3335','Raytheon\x20Supplier\x20Diversity','javascript:cnslink(38)');
g_navNode_6_3_0=g_navNode_6_3.addNode('3353','Potential\x20Supplier\x20Registration','javascript:cnslink(39)');
g_navNode_6_3_1=g_navNode_6_3.addNode('3354','Related\x20Links','javascript:cnslink(40)');
g_navNode_6_3_2=g_navNode_6_3.addNode('3355','E-Learning\x20Portal','javascript:cnslink(41)');
g_navNode_6_3_2_0=g_navNode_6_3_2.addNode('3356','Library','javascript:cnslink(42)');
g_navNode_6_3_2_1=g_navNode_6_3_2.addNode('3357','FAQ\'s','javascript:cnslink(43)');
g_navNode_6_4=g_navNode_6.addNode('6591','Business\x20Specific\x20Documents','javascript:cnslink(44)');
g_navNode_6_4_0=g_navNode_6_4.addNode('6752','Integrated\x20Defense\x20Systems\x20\x28IDS\x29','javascript:cnslink(45)');
g_navNode_6_4_0_0=g_navNode_6_4_0.addNode('6935','Design\x20for\x20Six\x20Sigma\x20Resources','javascript:cnslink(46)');
g_navNode_6_4_0_0_0=g_navNode_6_4_0_0.addNode('6943','Educational\x20Tools','javascript:cnslink(47)');
g_navNode_6_4_0_0_1=g_navNode_6_4_0_0.addNode('6944','DFA\x20-\x20DFM\x20Tools','javascript:cnslink(48)');
g_navNode_6_4_0_0_2=g_navNode_6_4_0_0.addNode('6945','FMEA\x20Tools','javascript:cnslink(49)');
g_navNode_6_4_0_0_3=g_navNode_6_4_0_0.addNode('6946','MSA\x20-\x20MSC\x20Tools\x20','javascript:cnslink(50)');
g_navNode_6_5=g_navNode_6.addNode('6832','Speciality\x20Metals\x20Reference\x20Documents','javascript:cnslink(51)');
g_navNode_7=g_navNode_Root.addNode('5061','IDIQ\x20Contract\x20Vehicles','javascript:cnslink(52)');
g_navNode_8=g_navNode_Root.addNode('5445','ECE\x20iCenter','javascript:cnslink(53)');
// introduced by connection server
var g_cnsnodes = new Array();
g_cnsnodes[0] = '/index.html';
g_cnsnodes[1] = '/customer/index.html';
g_cnsnodes[2] = '/customer/wisdm/index.html';
g_cnsnodes[3] = '/customer/emeeting/index.html';
g_cnsnodes[4] = '/employee/index.html';
g_cnsnodes[5] = '/employee/hughes/index.html';
g_cnsnodes[6] = '/employee/credit/index.html';
g_cnsnodes[7] = '/employee/repatriation/index.html';
g_cnsnodes[8] = '/employee/raystaff/index.html';
g_cnsnodes[9] = '/employee/incident_management/index.html';
g_cnsnodes[10] = '/employee/email/index.html';
g_cnsnodes[11] = '/employee/rtsc_training/index.html';
g_cnsnodes[12] = '/employee/sec_aware/index.html';
g_cnsnodes[13] = '/employee/us_only/index.html';
g_cnsnodes[14] = '/employee/itar_cert/index.html';
g_cnsnodes[15] = '/employee/emtg_reg/index.html';
g_cnsnodes[16] = '/store/index.html';
g_cnsnodes[17] = '/supplier/index.html';
g_cnsnodes[18] = '/supplier/registration/index.html';
g_cnsnodes[19] = '/supplier/ecommerce/index.html';
g_cnsnodes[20] = '/supplier/ecommerce/glossary/index.html';
g_cnsnodes[21] = '/supplier/ecommerce/faq/index.html';
g_cnsnodes[22] = '/supplier/ecommerce/whatis/index.html';
g_cnsnodes[23] = '/supplier/ecommerce/how/index.html';
g_cnsnodes[24] = '/supplier/ecommerce/environment/index.html';
g_cnsnodes[25] = '/supplier/ecommerce/methods/index.html';
g_cnsnodes[26] = '/supplier/ecommerce/methods/edi/index.html';
g_cnsnodes[27] = '/supplier/ecommerce/methods/edi/value/index.html';
g_cnsnodes[28] = '/supplier/ecommerce/methods/edi/software/index.html';
g_cnsnodes[29] = '/supplier/ecommerce/methods/web/index.html';
g_cnsnodes[30] = '/supplier/ecommerce/methods/web/requirements/index.html';
g_cnsnodes[31] = '/supplier/ecommerce/methods/web/cost/index.html';
g_cnsnodes[32] = '/supplier/ecommerce/methods/ftp/index.html';
g_cnsnodes[33] = '/supplier/ecommerce/methods/xml/index.html';
g_cnsnodes[34] = '/supplier/ecommerce/techdocs/index.html';
g_cnsnodes[35] = '/supplier/ecommerce/techdocs/agreement/index.html';
g_cnsnodes[36] = '/supplier/ecommerce/become/index.html';
g_cnsnodes[37] = '/supplier/terms/index.html';
g_cnsnodes[38] = '/supplier/diversity/index.html';
g_cnsnodes[39] = '/supplier/diversity/potential/index.html';
g_cnsnodes[40] = '/supplier/diversity/links/index.html';
g_cnsnodes[41] = '/supplier/diversity/portal/index.html';
g_cnsnodes[42] = '/supplier/diversity/portal/library/index.html';
g_cnsnodes[43] = '/supplier/diversity/portal/faq/index.html';
g_cnsnodes[44] = '/supplier/procure/index.html';
g_cnsnodes[45] = '/supplier/procure/ids/index.html';
g_cnsnodes[46] = '/supplier/procure/ids/design/index.html';
g_cnsnodes[47] = '/supplier/procure/ids/design/education/index.html';
g_cnsnodes[48] = '/supplier/procure/ids/design/dfa/index.html';
g_cnsnodes[49] = '/supplier/procure/ids/design/FMEA_Tools/index.html';
g_cnsnodes[50] = '/supplier/procure/ids/design/msa/index.html';
g_cnsnodes[51] = '/supplier/smrd/index.html';
g_cnsnodes[52] = '/idiq/index.html';
g_cnsnodes[53] = '/icenter/index.html';
function cnslink(pageid) {
var newUrl = '';
newUrl += g_prefixToStaticRoot;
newUrl += g_cnsnodes[pageid];
window.location = newUrl;
}
