/* [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','5101',jdecode('Home'),jdecode(''), jdecode('%2F5101.html'), 'true',[],'',''],
	['PAGE','14901',jdecode('Company+Profile'),jdecode(''), jdecode('%2F14901.html'), 'true',[],'',''],
	['PAGE','20451',jdecode('Products+%26+Services'),jdecode(''), jdecode('%2F20451%2Findex.html'), 'true',[ 
		['PAGE','5152',jdecode('Quick-Strip+System'),jdecode(''), jdecode('%2F20451%2F5152.html'), 'true',[],'',''],
		['PAGE','20472',jdecode('Quick-Strip+Beams+%26+Brackets'),jdecode(''), jdecode('%2F20451%2F20472.html'), 'true',[],'',''],
		['PAGE','20493',jdecode('Decking+%26+Decking+fillers'),jdecode(''), jdecode('%2F20451%2F20493.html'), 'true',[],'',''],
		['PAGE','22851',jdecode('Fibre+Glass+Coffers'),jdecode(''), jdecode('%2F20451%2F22851.html'), 'true',[],'',''],
		['PAGE','22872',jdecode('Box+Floor+Centres'),jdecode(''), jdecode('%2F20451%2F22872.html'), 'true',[],'',''],
		['PAGE','22893',jdecode('Wallform+Panels'),jdecode(''), jdecode('%2F20451%2F22893.html'), 'true',[],'',''],
		['PAGE','22914',jdecode('Tie+Systems'),jdecode(''), jdecode('%2F20451%2F22914.html'), 'true',[],'',''],
		['PAGE','22935',jdecode('Econoform+Panels'),jdecode(''), jdecode('%2F20451%2F22935.html'), 'true',[],'',''],
		['PAGE','22956',jdecode('Flexform+System'),jdecode(''), jdecode('%2F20451%2F22956.html'), 'true',[],'',''],
		['PAGE','22977',jdecode('Props%2C+Columns+%26+Clamps'),jdecode(''), jdecode('%2F20451%2F22977.html'), 'true',[],'','']
	],'',''],
	['PAGE','23019',jdecode('Peri'),jdecode(''), jdecode('%2F23019%2Findex.html'), 'true',[ 
		['PAGE','23040',jdecode('Domino+System'),jdecode(''), jdecode('%2F23019%2F23040.html'), 'true',[],'',''],
		['PAGE','23061',jdecode('Multi-Flex'),jdecode(''), jdecode('%2F23019%2F23061.html'), 'true',[],'','']
	],'',''],
	['PAGE','14943',jdecode('The+Team'),jdecode(''), jdecode('%2F14943.html'), 'true',[],'',''],
	['PAGE','16201',jdecode('Nuform+Gauteng'),jdecode(''), jdecode('%2F16201.html'), 'true',[],'',''],
	['PAGE','23082',jdecode('Impumelelo'),jdecode(''), jdecode('%2F23082.html'), 'true',[],'',''],
	['PAGE','14964',jdecode('Safety+Info'),jdecode(''), jdecode('%2F14964.html'), 'true',[],'',''],
	['PAGE','14922',jdecode('News+Blog'),jdecode(''), jdecode('%2F14922.html'), 'true',[],'',''],
	['PAGE','16601',jdecode('Jobs+Gallery'),jdecode(''), jdecode('%2F16601.html'), 'true',[],'',''],
	['PAGE','5173',jdecode('Links'),jdecode(''), jdecode('%2F5173.html'), 'true',[],'',''],
	['PAGE','92162',jdecode('Contacts'),jdecode(''), jdecode('%2F92162.html'), 'true',[],'',''],
	['PAGE','15201',jdecode('Email+Us'),jdecode(''), jdecode('%2F15201.html'), 'true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11361';
theSitetree.keyvisualName='kv_11361.jpg';
theSitetree.fontsetId='31943';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='426388';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hetzner',
  product: 'WSCSYSSSSLY0XKDS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'426388',
				keyvisualId: 	'11361',
				keyvisualName: 	'kv_11361.jpg',
				fontsetId: 		'31943',
				graphicsetId: 	'13786',
				contentColor: 	'000000',
				contentBGColor: '426388',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20120214-114333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20100721-161518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5173',
internalId:  '',
customField: '20110914-132213'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['7050']=webappMappings['7050-725']={
webappId:    '7050',
documentId:  '14922',
internalId:  '725',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3451']={
webappId:    '7008',
documentId:  '15201',
internalId:  '3451',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20100805-145122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14943',
internalId:  '',
customField: '20120210-130315'
};
webappMappings['7060']=webappMappings['7060-cb2f01c976ab8029e5826b176833d816']={
webappId:    '7060',
documentId:  '16601',
internalId:  'cb2f01c976ab8029e5826b176833d816',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20100806-071944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14922',
internalId:  '',
customField: '20100923-145020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20120210-125948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14964',
internalId:  '',
customField: '20100806-072249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20100722-105106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20451',
internalId:  '',
customField: '20100730-084321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20472',
internalId:  '',
customField: '20100721-162039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23019',
internalId:  '',
customField: '20100726-111916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23040',
internalId:  '',
customField: '20100721-164036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23082',
internalId:  '',
customField: '20120130-161152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22851',
internalId:  '',
customField: '20100721-143017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22956',
internalId:  '',
customField: '20100721-163735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20493',
internalId:  '',
customField: '20100722-150532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22935',
internalId:  '',
customField: '20100721-163405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22914',
internalId:  '',
customField: '20100721-162840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22872',
internalId:  '',
customField: '20100722-150637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22893',
internalId:  '',
customField: '20100721-162418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22977',
internalId:  '',
customField: '20100721-150903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23061',
internalId:  '',
customField: '20100721-164327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92162',
internalId:  '',
customField: '20120210-130127'
};
var webAppHostname = 'sitebuilder.host-h.net:80';
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10IN2JI7';
var companyName   = 'N+U+F+O+R+M+++F+O+R+M+W+O+R+K+++%26++S+C+A+F+F+O+L+D+I+N+G';
var htmlTitle	  = 'Strength+through+service%21';
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();
};

