/* [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','601',jdecode('Home'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','652',jdecode('About+us'),jdecode(''), jdecode('%2F652.html'), 'true',[],'',''],
	['PAGE','673',jdecode('Our+service'),jdecode(''), jdecode('%2F673.html'), 'true',[],'',''],
	['PAGE','694',jdecode('Our+products'),jdecode(''), jdecode('%2F694.html'), 'true',[],'',''],
	['PAGE','736',jdecode('Contact'),jdecode(''), jdecode('%2F736.html'), 'true',[],'',''],
	['PAGE','715',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F715.html'), 'true',[],'',''],
	['PAGE','757',jdecode('Why+do+fork+seals+leak%3F'),jdecode(''), jdecode('%2F757.html'), 'true',[],'',''],
	['PAGE','23601',jdecode('Fitting+your+forks+to+your+bike'),jdecode(''), jdecode('%2F23601.html'), 'true',[],'',''],
	['PAGE','24001',jdecode('Setting+your+sag'),jdecode(''), jdecode('%2F24001.html'), 'true',[],'',''],
	['PAGE','778',jdecode('ProRider+Karl+Power'),jdecode(''), jdecode('%2F778.html'), 'true',[],'',''],
	['PAGE','27301',jdecode('ProRider+Jake+Wightman'),jdecode(''), jdecode('%2F27301.html'), 'true',[],'',''],
	['PAGE','799',jdecode('Events'),jdecode(''), jdecode('%2F799.html'), 'true',[],'',''],
	['PAGE','22701',jdecode('Ride+Reports'),jdecode(''), jdecode('%2F22701.html'), 'true',[],'',''],
	['PAGE','820',jdecode('Links'),jdecode(''), jdecode('%2F820.html'), 'true',[],'',''],
	['PAGE','20301',jdecode('Journal'),jdecode(''), jdecode('%2F20301.html'), 'true',[],'',''],
	['PAGE','14106',jdecode('Guestbook%2Freferences'),jdecode(''), jdecode('%2F14106%2Findex.html'), 'true',[ 
		['PAGE','14101',jdecode('Read+Guestbook%2Freferences'),jdecode(''), jdecode('%2F14106%2F14101.html'), 'false',[],'','']
	],'',''],
	['PAGE','25901',jdecode('Shop'),jdecode(''), jdecode('%2F25901.html'), 'true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='3D4B78';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='423';
theSitetree.graphicsetId='468';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D4B78';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'mitdnz',
  product: 'WSCSYSSSSLYTC22A'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Logg',
				paletteFamily: 	'3D4B78',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'423',
				graphicsetId: 	'468',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D4B78',
				a_color: 		'3D4B78',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3119832']={
webappId:    '1501',
documentId:  '601',
internalId:  '3119832',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-14106avec10in30cl']={
webappId:    '1002',
documentId:  '14106',
internalId:  '14106avec10in30cl',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20111019-020415'
};
webappMappings['7050']=webappMappings['7050-7729']={
webappId:    '7050',
documentId:  '20301',
internalId:  '7729',
customField: 'language:en;country:US;'
};
webappMappings['4001']=webappMappings['4001-5181998']={
webappId:    '4001',
documentId:  '25901',
internalId:  '5181998',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20111019-015935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20111019-020602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20111019-020246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20111019-020719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20111019-020930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20111019-021334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20080418-045409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20080418-045905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20080418-050543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20081202-052015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20080419-045051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20080419-034423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20080419-033629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20111019-015028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14106',
internalId:  '',
customField: '20070226-055522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20070226-055522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20080419-032120'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN30CL';
var companyName   = 'ProRide+Suspension+Service';
var htmlTitle	  = 'proride.co.nz';
var metaKeywords  = 'ProRide%2C+Proride%2C+Pro+Ride%2C+Race+Tech%2C+Synergy+Seals%2C+Suspension+Service%2C+fork+seals%2C+Gold+Valves%2C+fork+springs%2C+KTM%2C+Yamaha%2C+Honda%2C+Kawasaki%2C+Suzuki%2C+Gasgas%2C+Ohlins%2C+PDS%2C+Moto+X%2C+off+road%2C+enduro%2C+Karl+Power%2C+GNCC%2C+Husaberg%2C+WP%2C+showa%2C+Kayaba%2C+KYB%2C+trail+riding%2C+Motocross%2C+mud%2C+sand%2C+hard+pack%2C+jumps%2C+whoops%2C+kickers%2C+braking+bumps%2C+tree+roots%2C+rocks%2C+hill+climb%2C+downhill%2C+shock+spring%2C+nitrogen%2C+compression+damping%2C+rebound+damping%2C+high+speed+compression%2C+low+speed+compression%2C+shock+shaft%2C+Motorex+suspension+fluid%2C+Synergy+Seals%2C';
var metaContents  = 'ProRide+Suspension+is+Aucklands+Race+Tech+Service+Centre+specialising+in+off+road+motorcycle+suspension.+From+springs+to+Gold+Valves%2C+we+can+optimise+your+motorcycle+suspension.';
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();
};

