/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('About+Us'),jdecode(''),'/452.html','true',[],''],
	['PAGE','76140',jdecode('Search'),jdecode(''),'/76140.html','true',[],''],
	['PAGE','473',jdecode('Hydraulic+Products'),jdecode(''),'/473.html','true',[],''],
	['PAGE','24501',jdecode('+++Directional+Control+Valves'),jdecode(''),'/24501.html','true',[],''],
	['PAGE','25801',jdecode('+++Modular+Control+Valves'),jdecode(''),'/25801.html','true',[],''],
	['PAGE','27401',jdecode('+++Pressure+%26+Flow+Control'),jdecode(''),'/27401.html','true',[],''],
	['PAGE','28601',jdecode('+++Vane+Pumps'),jdecode(''),'/28601.html','true',[],''],
	['PAGE','29001',jdecode('+++Vane+Cartridge+Kits'),jdecode(''),'/29001.html','true',[],''],
	['PAGE','76614',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/76614.html','true',[],''],
	['PAGE','32401',jdecode('Technical+Information'),jdecode(''),'/32401.html','true',[],''],
	['PAGE','55501',jdecode('News'),jdecode(''),'/55501.html','true',[],''],
	['PAGE','9801',jdecode('Distributors'),jdecode(''),'/9801.html','true',[],''],
	['PAGE','9401',jdecode('Certifications'),jdecode(''),'/9401.html','true',[],''],
	['PAGE','11901',jdecode('Request+Information'),jdecode(''),'/11901.html','true',[],''],
	['PAGE','494',jdecode('Contact+Us'),jdecode(''),'/494.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1742';
theSitetree.keyvisualName='ebusiness2.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1742',
				keyvisualName: 	'ebusiness2.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20081125-163029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20081218-112054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20081218-110316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76140',
internalId:  '',
customField: '20080818-155423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20081218-110427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20090227-155827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20081218-122549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20081218-111351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20081218-111542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20081218-111622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20081218-111850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20090227-164904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20081218-112134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20081218-112254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20081218-110646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76614',
internalId:  '',
customField: '20081125-163140'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INX2A4';
var companyName   = 'Northman+Fluid+Power';
var htmlTitle	  = 'Thank+you+for+visiting+Northman+Fluid+Power';
var metaKeywords  = 'Industrial+Mobile+Valves+Directional+Control+Modular+Pressure+solenoid+manual+flow++reducing%2C+throttle%2C+check%2C+relief%2C+fixed+variable+vane+pumps%2C+Nachi+Yuken+Metaris+Vickers+V10+V20+Cartridge+kits';
var metaContents  = 'ISO+9001+certified+manufacturer+of+fluid+power+products+including+hydraulic+valves%2C+pumps%2C+motors++accessories+for+industrial++mobile+applications.+Hydraulic+valves+are+available+as+solenoid%2C+directional%2C+modular%2C+pressure%2C+flow%2C++directional+control+valves.+Hydraulic+modular+valves+are+available+as+modular+relief%2C+reducing%2C+throttle++check%2C+solenoid++check+valves%2C++relief+valves.+Hydraulic+control+valves+are+available+as+pressure%2C+flow%2C++directional+controls.+Hydraulic+pumps+include+low++high+pressure+vane+pumps.+High+pressure+vane+pump+accessories+include+cartridge%2C+seal%2C++flex+plate%2C++vane+kits%2C+cam+rings%2C+shaft+seals%2C+bearings%2C++rotors.+Fluid+product+accessories+include+pressure+switch%2C+cartridge+pressure+relief%2C+suction+strainers%2C+gauge+cocks%2C+filtration+carts%2C+reservoir+level+indicators%2C+oil+heat+exchangers%2C++pressure+gages.+Same+day+shipping+for+items+in+stock.+CSA++CE+certified.+Conforms+to+Automatic+Flexible+Manufacturing+System.';
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();
};
