

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('2636','Businesses','javascript:cnslink(0)',null);
g_navNode_1=g_navNode_Root.addNode('3203','Integrated\x20Defense\x20Systems','javascript:cnslink(1)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2frids\x2fabout');
g_navNode_1_0=g_navNode_1.addNode('3378','About\x20IDS','javascript:cnslink(2)');
g_navNode_1_0_0=g_navNode_1_0.addNode('3577','Leadership\x20Team','javascript:cnslink(3)');
g_navNode_1_0_1=g_navNode_1_0.addNode('3582','IDS\x20Overview','javascript:cnslink(4)');
g_navNode_1_1=g_navNode_1.addNode('3379','Business\x20Areas\x20and\x20Mission\x20Assurance','javascript:cnslink(5)');
g_navNode_1_2=g_navNode_1.addNode('3382','Products\x20\x26\x20Services','javascript:cnslink(6)');
g_navNode_2=g_navNode_Root.addNode('3104','Intelligence\x20and\x20Information\x20Systems','javascript:cnslink(7)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2friis');
g_navNode_3=g_navNode_Root.addNode('3110','Missile\x20Systems','javascript:cnslink(8)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2frms');
g_navNode_4=g_navNode_Root.addNode('4990','Network\x20Centric\x20Systems','javascript:cnslink(9)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fncs\x2f');
g_navNode_5=g_navNode_Root.addNode('2901','Raytheon\x20Technical\x20Services\x20Company\x20LLC','javascript:cnslink(10)','secondaryUrlVariableField==region1','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2frts\x2f');
g_navNode_6=g_navNode_Root.addNode('5137','Space\x20and\x20Airborne\x20Systems','javascript:cnslink(11)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2frsas\x2f');
g_navNode_7=g_navNode_Root.addNode('5816','Raytheon\x20Professional\x20Services\x20LLC\x20-\x20Training\x20Outsourcing','javascript:cnslink(12)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2f');
g_navNode_7_0=g_navNode_7.addNode('5818','Our\x20Capabilities','javascript:cnslink(13)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2four_capabilities\x2f');
g_navNode_7_0_0=g_navNode_7_0.addNode('5819','Performance\x20Consulting\x20Services','javascript:cnslink(14)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2four_capabilities\x2fpc\x2f');
g_navNode_7_1=g_navNode_7.addNode('5820','Ten\x20Reasons\x20Clients\x20Choose\x20RPS','javascript:cnslink(15)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2ften_reasons\x2f','hideNav==FALSE');
g_navNode_7_1_0=g_navNode_7_1.addNode('5821','Our\x20History','javascript:cnslink(16)');
g_navNode_7_2=g_navNode_7.addNode('5822','The\x20Value\x20We\x20Deliver','javascript:cnslink(17)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2fvalue\x2f','hideNav==FALSE');
g_navNode_7_3=g_navNode_7.addNode('5823','News','javascript:cnslink(18)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2fnews\x2f');
g_navNode_7_3_0=g_navNode_7_3.addNode('6761','2006\x20News','javascript:cnslink(19)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2fnews\x2farchive\x2f');
g_navNode_7_4=g_navNode_7.addNode('5824','Case\x20Studies','javascript:cnslink(20)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2fcase_studies\x2f','hideNav==FALSE');
g_navNode_7_5=g_navNode_7.addNode('5825','Training\x20Samples','javascript:cnslink(21)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2ftraining_samples\x2f');
g_navNode_7_6=g_navNode_7.addNode('5826','Industry\x20Recognition','javascript:cnslink(22)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2findustry_recognition\x2f','hideNav==FALSE');
g_navNode_7_7=g_navNode_7.addNode('5827','Locations','javascript:cnslink(23)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2flocations\x2f');
g_navNode_7_8=g_navNode_7.addNode('5828','Request\x20More\x20Information','javascript:cnslink(24)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2frequest_more\x2f');
g_navNode_7_11=g_navNode_7.addNode('6539','European\x20Sites','javascript:cnslink(25)','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fother\x2frps\x2fregions\x2femea\x2f');
g_navNode_8=g_navNode_Root.addNode('5449','Global\x20Presence','javascript:cnslink(26)','showNav==FALSE','redirectURL==http\x3a\x2f\x2fwww.raytheon.com\x2fbusinesses\x2fglobal\x2f','hideNav==FALSE');
// introduced by connection server
var g_cnsnodes = new Array();
g_cnsnodes[0] = '/index.html';
g_cnsnodes[1] = '/rids/index.html';
g_cnsnodes[2] = '/rids/about/index.html';
g_cnsnodes[3] = '/rids/about/leadership/index.html';
g_cnsnodes[4] = '/rids/about/overview/index.html';
g_cnsnodes[5] = '/rids/businesses/index.html';
g_cnsnodes[6] = '/rids/products/index.html';
g_cnsnodes[7] = '/iis/index.html';
g_cnsnodes[8] = '/ms/index.html';
g_cnsnodes[9] = '/rncs/index.html';
g_cnsnodes[10] = '/rtsc/index.html';
g_cnsnodes[11] = '/sas/index.html';
g_cnsnodes[12] = '/rps/index.html';
g_cnsnodes[13] = '/rps/our_capabilities/index.html';
g_cnsnodes[14] = '/rps/our_capabilities/pc/index.html';
g_cnsnodes[15] = '/rps/ten_reasons/index.html';
g_cnsnodes[16] = '/rps/ten_reasons/our_history/index.html';
g_cnsnodes[17] = '/rps/value/index.html';
g_cnsnodes[18] = '/rps/news/index.html';
g_cnsnodes[19] = '/rps/news/2006news/index.html';
g_cnsnodes[20] = '/rps/case_studies/index.html';
g_cnsnodes[21] = '/rps/training_samples/index.html';
g_cnsnodes[22] = '/rps/industry_recognition/index.html';
g_cnsnodes[23] = '/rps/locations/index.html';
g_cnsnodes[24] = '/rps/request_more/index.html';
g_cnsnodes[25] = '/rps/regions/index.html';
g_cnsnodes[26] = '/global_presence/index.html';
function cnslink(pageid) {
var newUrl = '';
newUrl += g_prefixToStaticRoot;
newUrl += g_cnsnodes[pageid];
window.location = newUrl;
}
