/* [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','1701',jdecode('Home'),jdecode(''),'/1701.html','true',[],'',''],
	['PAGE','1752',jdecode('About+us'),jdecode(''),'/1752.html','true',[],'',''],
	['PAGE','1815',jdecode('NEW+RV%26%23x27%3BS'),jdecode(''),'/1815.html','true',[],'',''],
	['PAGE','2401',jdecode('USED+RV%26%23x27%3BS'),jdecode(''),'/2401.html','true',[],'',''],
	['PAGE','2422',jdecode('CLEARANCE+RV%26%23x27%3BS'),jdecode(''),'/2422.html','true',[],'',''],
	['PAGE','11401',jdecode('PARTS+%26+ACCESSORIES'),jdecode(''),'/11401.html','true',[],'',''],
	['PAGE','11601',jdecode('EXTENDED+WARRANTIES'),jdecode(''),'/11601.html','true',[],'',''],
	['PAGE','10901',jdecode('RV+Financing'),jdecode(''),'/10901.html','true',[],'',''],
	['PAGE','10701',jdecode('Service'),jdecode(''),'/10701.html','true',[],'',''],
	['PAGE','1773',jdecode('Contact'),jdecode(''),'/1773.html','true',[],'',''],
	['PAGE','11901',jdecode('How+to+find+us'),jdecode(''),'/11901.html','true',[],'',''],
	['PAGE','12501',jdecode('New1'),jdecode(''),'/12501.html','false',[],'',''],
	['PAGE','13701',jdecode('New2'),jdecode(''),'/13701.html','false',[],'',''],
	['PAGE','14601',jdecode('New3'),jdecode(''),'/14601.html','false',[],'',''],
	['PAGE','15201',jdecode('New4'),jdecode(''),'/15201.html','false',[],'',''],
	['PAGE','15222',jdecode('New5'),jdecode(''),'/15222.html','false',[],'',''],
	['PAGE','16701',jdecode('New6'),jdecode(''),'/16701.html','false',[],'',''],
	['PAGE','17501',jdecode('New7'),jdecode(''),'/17501.html','false',[],'',''],
	['PAGE','18301',jdecode('used1'),jdecode(''),'/18301.html','false',[],'',''],
	['PAGE','18322',jdecode('used2'),jdecode(''),'/18322.html','false',[],'',''],
	['PAGE','18343',jdecode('used3'),jdecode(''),'/18343.html','false',[],'',''],
	['PAGE','18364',jdecode('used4'),jdecode(''),'/18364.html','false',[],'',''],
	['PAGE','18385',jdecode('used5'),jdecode(''),'/18385.html','false',[],'',''],
	['PAGE','18406',jdecode('used6'),jdecode(''),'/18406.html','false',[],'',''],
	['PAGE','27701',jdecode('New8'),jdecode(''),'/27701.html','false',[],'',''],
	['PAGE','32112',jdecode('New+page'),jdecode(''),'/32112.html','false',[],'',''],
	['PAGE','46400',jdecode('sierra+335qbq'),jdecode(''),'/46400.html','false',[],'',''],
	['PAGE','35912',jdecode('f%2Ft+2'),jdecode(''),'/35912.html','false',[],'',''],
	['PAGE','35933',jdecode('f%2Ft+1'),jdecode(''),'/35933.html','false',[],'',''],
	['PAGE','35954',jdecode('f%2Ft+3'),jdecode(''),'/35954.html','false',[],'',''],
	['PAGE','35975',jdecode('f%2Ft+4'),jdecode(''),'/35975.html','false',[],'',''],
	['PAGE','37612',jdecode('wc+2'),jdecode(''),'/37612.html','false',[],'',''],
	['PAGE','37633',jdecode('wc+3'),jdecode(''),'/37633.html','false',[],'',''],
	['PAGE','37654',jdecode('wc+4'),jdecode(''),'/37654.html','false',[],'',''],
	['PAGE','37675',jdecode('wc+5'),jdecode(''),'/37675.html','false',[],'',''],
	['PAGE','37696',jdecode('eagle+5th+1'),jdecode(''),'/37696.html','false',[],'',''],
	['PAGE','38512',jdecode('rwt+1'),jdecode(''),'/38512.html','false',[],'',''],
	['PAGE','38533',jdecode('rwf+1'),jdecode(''),'/38533.html','false',[],'',''],
	['PAGE','38554',jdecode('rwt+2'),jdecode(''),'/38554.html','false',[],'',''],
	['PAGE','50250',jdecode('blue+rige+1'),jdecode(''),'/50250.html','false',[],'',''],
	['PAGE','52060',jdecode('1650JAY+FEATHER'),jdecode(''),'/52060.html','false',[],'',''],
	['PAGE','52660',jdecode('199+jay+feather+sport'),jdecode(''),'/52660.html','false',[],'',''],
	['PAGE','53260',jdecode('jay+flight+28+bh'),jdecode(''),'/53260.html','false',[],'',''],
	['PAGE','53660',jdecode('jay+flight++g2+29+rls'),jdecode(''),'/53660.html','false',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Undulate';
theSitetree.paletteFamily='413D42';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33118';
theSitetree.graphicsetId='14071';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='413D42';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Undulate',
				paletteFamily: 	'413D42',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33118',
				graphicsetId: 	'14071',
				contentColor: 	'FFFFFF',
				contentBGColor: '413D42',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20100120-132107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20090625-004313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20090624-225209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090625-002908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1815',
internalId:  '',
customField: '20100206-130321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20100127-180741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2422',
internalId:  '',
customField: '20100118-185634'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20090625-004610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20090707-165559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20090624-232328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20090624-235740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20090819-161212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20090720-134934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20090702-193735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20090702-202842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15222',
internalId:  '',
customField: '20090702-233519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20100205-193033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20090720-194840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20090707-051513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18322',
internalId:  '',
customField: '20100127-181236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18343',
internalId:  '',
customField: '20091024-133616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18364',
internalId:  '',
customField: '20090707-053223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18385',
internalId:  '',
customField: '20090707-053850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18406',
internalId:  '',
customField: '20091024-142549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20100204-172121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32112',
internalId:  '',
customField: '20090730-200324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35933',
internalId:  '',
customField: '20090819-135458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35912',
internalId:  '',
customField: '20090819-135625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35954',
internalId:  '',
customField: '20090819-141824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35975',
internalId:  '',
customField: '20090819-142031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37633',
internalId:  '',
customField: '20090819-170634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37654',
internalId:  '',
customField: '20090819-172254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37675',
internalId:  '',
customField: '20090819-172609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37612',
internalId:  '',
customField: '20090819-172745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37696',
internalId:  '',
customField: '20090819-173504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38554',
internalId:  '',
customField: '20090819-175609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38512',
internalId:  '',
customField: '20090819-180339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38533',
internalId:  '',
customField: '20090819-174540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46400',
internalId:  '',
customField: '20100118-190511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50250',
internalId:  '',
customField: '20100204-174336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52060',
internalId:  '',
customField: '20100205-175603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53260',
internalId:  '',
customField: '20100205-200128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52660',
internalId:  '',
customField: '20100205-191554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53660',
internalId:  '',
customField: '20100206-125505'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHQBN';
var companyName   = 'ET+QUALITY+RV+INC.';
var htmlTitle	  = '';
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();
};
