/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','2901',jdecode('Home'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','6401',jdecode('PRODUCTS'),jdecode(''), jdecode('%2F6401%2Findex.html'), 'true',[ 
		['PAGE','7301',jdecode('Amplifiers'),jdecode(''), jdecode('%2F6401%2F7301.html'), 'true',[],'',''],
		['PAGE','7501',jdecode('Counters'),jdecode(''), jdecode('%2F6401%2F7501.html'), 'true',[],'',''],
		['PAGE','7522',jdecode('Data+Acquisition'),jdecode(''), jdecode('%2F6401%2F7522.html'), 'true',[],'',''],
		['PAGE','7085',jdecode('LCR%2C+Component+and+Semiconductor+Analyzers'),jdecode(''), jdecode('%2F6401%2F7085.html'), 'true',[],'',''],
		['PAGE','7064',jdecode('Logic+Analyzers'),jdecode(''), jdecode('%2F6401%2F7064.html'), 'true',[],'',''],
		['PAGE','6801',jdecode('Meters'),jdecode(''), jdecode('%2F6401%2F6801.html'), 'true',[],'',''],
		['PAGE','6922',jdecode('Network+Analyzers'),jdecode(''), jdecode('%2F6401%2F6922.html'), 'true',[],'',''],
		['PAGE','7343',jdecode('Optical'),jdecode(''), jdecode('%2F6401%2F7343.html'), 'true',[],'',''],
		['PAGE','7001',jdecode('Oscilloscopes'),jdecode(''), jdecode('%2F6401%2F7001.html'), 'true',[],'',''],
		['PAGE','7901',jdecode('Power+Sensors+%26+Meters'),jdecode(''), jdecode('%2F6401%2F7901.html'), 'true',[],'',''],
		['PAGE','7043',jdecode('Power+Supplies'),jdecode(''), jdecode('%2F6401%2F7043.html'), 'true',[],'',''],
		['PAGE','7322',jdecode('RF+%26+Micowave+Accessories'),jdecode(''), jdecode('%2F6401%2F7322.html'), 'true',[],'',''],
		['PAGE','6901',jdecode('Spectrum+Analyzers'),jdecode(''), jdecode('%2F6401%2F6901.html'), 'true',[],'',''],
		['PAGE','7022',jdecode('Signal+Generators'),jdecode(''), jdecode('%2F6401%2F7022.html'), 'true',[],'',''],
		['PAGE','7201',jdecode('Telecom+Test+Equipment'),jdecode(''), jdecode('%2F6401%2F7201.html'), 'true',[],'',''],
		['PAGE','7222',jdecode('Test+Equipment+Accessories'),jdecode(''), jdecode('%2F6401%2F7222.html'), 'true',[],'','']
	],'',''],
	['PAGE','6601',jdecode('MANUFACTURERS'),jdecode(''), jdecode('%2F6601%2Findex.html'), 'true',[ 
		['PAGE','7543',jdecode('Agilent+%2F+HP'),jdecode(''), jdecode('%2F6601%2F7543.html'), 'true',[],'',''],
		['PAGE','7564',jdecode('Anritsu'),jdecode(''), jdecode('%2F6601%2F7564.html'), 'true',[],'',''],
		['PAGE','7585',jdecode('Fluke'),jdecode(''), jdecode('%2F6601%2F7585.html'), 'true',[],'',''],
		['PAGE','7606',jdecode('Keithley'),jdecode(''), jdecode('%2F6601%2F7606.html'), 'true',[],'',''],
		['PAGE','7669',jdecode('LeCroy'),jdecode(''), jdecode('%2F6601%2F7669.html'), 'true',[],'',''],
		['PAGE','7627',jdecode('SRS+Stanford+Research'),jdecode(''), jdecode('%2F6601%2F7627.html'), 'true',[],'',''],
		['PAGE','7648',jdecode('Tektronix'),jdecode(''), jdecode('%2F6601%2F7648.html'), 'true',[],'','']
	],'',''],
	['PAGE','2973',jdecode('SERVICES'),jdecode(''), jdecode('%2F2973%2Findex.html'), 'true',[ 
		['PAGE','8001',jdecode('Sales'),jdecode(''), jdecode('%2F2973%2F8001.html'), 'true',[],'',''],
		['PAGE','8022',jdecode('Rentals'),jdecode(''), jdecode('%2F2973%2F8022.html'), 'true',[],'',''],
		['PAGE','8043',jdecode('Repair'),jdecode(''), jdecode('%2F2973%2F8043.html'), 'true',[],'',''],
		['PAGE','8064',jdecode('Calibration'),jdecode(''), jdecode('%2F2973%2F8064.html'), 'true',[],'','']
	],'',''],
	['PAGE','6422',jdecode('SPECIALS'),jdecode(''), jdecode('%2F6422.html'), 'true',[],'',''],
	['PAGE','2994',jdecode('Contact'),jdecode(''), jdecode('%2F2994.html'), 'true',[],'',''],
	['PAGE','2952',jdecode('About+us'),jdecode(''), jdecode('%2F2952.html'), 'true',[],'',''],
	['PAGE','3015',jdecode('News'),jdecode(''), jdecode('%2F3015.html'), 'true',[],'',''],
	['PAGE','3036',jdecode('Employment'),jdecode(''), jdecode('%2F3036%2Findex.html'), 'true',[ 
		['PAGE','8201',jdecode('Inside+Sales'),jdecode(''), jdecode('%2F3036%2F8201.html'), 'true',[],'',''],
		['PAGE','8222',jdecode('Outside+Sales'),jdecode(''), jdecode('%2F3036%2F8222.html'), 'true',[],'',''],
		['PAGE','8243',jdecode('Electronic+Repair+%2F+Calibration+Technician'),jdecode(''), jdecode('%2F3036%2F8243.html'), 'true',[],'','']
	],'',''],
	['PAGE','6443',jdecode('Business+FAQ%26%23x27%3Bs'),jdecode(''), jdecode('%2F6443.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='80B3EC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32048';
theSitetree.graphicsetId='13871';
theSitetree.contentColor='484848';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grace',
				paletteFamily: 	'80B3EC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32048',
				graphicsetId: 	'13871',
				contentColor: 	'484848',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20110901-171651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20110901-153240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20110901-154554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3036',
internalId:  '',
customField: '20110401-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8243',
internalId:  '',
customField: '20110901-171332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20110901-171351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8222',
internalId:  '',
customField: '20110901-171120'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20110901-160040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7522',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7085',
internalId:  '',
customField: '20110901-155340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7064',
internalId:  '',
customField: '20110901-155340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6922',
internalId:  '',
customField: '20110901-154820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7343',
internalId:  '',
customField: '20110901-160040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20110901-155340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20110901-160745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7043',
internalId:  '',
customField: '20110901-155340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20110901-160040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20110901-154820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20110901-155340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20110901-155627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20110901-155627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20110901-153405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7543',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7564',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7585',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7606',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7669',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7627',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7648',
internalId:  '',
customField: '20110901-160709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2973',
internalId:  '',
customField: '20110401-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20110901-161404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8022',
internalId:  '',
customField: '20110901-161404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8043',
internalId:  '',
customField: '20110901-161404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8064',
internalId:  '',
customField: '20110901-161404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20110901-153240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2994',
internalId:  '',
customField: '20110401-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2952',
internalId:  '',
customField: '20110401-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3015',
internalId:  '',
customField: '20110401-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20110901-153240'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH7SZ';
var companyName   = 'Pacific+Test+Equipment+Corp.';
var htmlTitle	  = 'Pacific+Test+Equipment+';
var metaKeywords  = '';
var metaContents  = '';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

