/* [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','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','1852',jdecode('Our+Team'),jdecode(''),'/1852/index.html','true',[ 
		['PAGE','1873',jdecode('About+us'),jdecode(''),'/1852/1873.html','true',[],'']
	],''],
	['PAGE','13548',jdecode('Why+Us'),jdecode(''),'/13548.html','true',[],''],
	['PAGE','2083',jdecode('Insurance+Claims'),jdecode(''),'/2083.html','true',[],''],
	['PAGE','13464',jdecode('Self-pay'),jdecode(''),'/13464.html','true',[],''],
	['PAGE','7301',jdecode('Services+We+Provide'),jdecode(''),'/7301/index.html','true',[ 
		['PAGE','7322',jdecode('Used+vehicles'),jdecode(''),'/7301/7322.html','true',[],''],
		['PAGE','13401',jdecode('Collision+Repair'),jdecode(''),'/7301/13401.html','true',[],''],
		['PAGE','32301',jdecode('+Photo+Gallery+%28Repairs%29'),jdecode(''),'/7301/32301.html','true',[],''],
		['PAGE','7364',jdecode('Buying+Vehicles'),jdecode(''),'/7301/7364.html','true',[],''],
		['PAGE','13422',jdecode('Professional+Auto+Detail'),jdecode(''),'/7301/13422.html','true',[],''],
		['PAGE','13443',jdecode('Restorations'),jdecode(''),'/7301/13443.html','true',[],''],
		['PAGE','13527',jdecode('Painting'),jdecode(''),'/7301/13527.html','true',[],''],
		['PAGE','13506',jdecode('Fleet'),jdecode(''),'/7301/13506.html','true',[],''],
		['PAGE','13569',jdecode('Bumper+Repair'),jdecode(''),'/7301/13569.html','true',[],'']
	],''],
	['PAGE','1957',jdecode('Custom+Paintng'),jdecode(''),'/1957/index.html','true',[ 
		['PAGE','1978',jdecode('Airbrushing'),jdecode(''),'/1957/1978.html','true',[],''],
		['PAGE','1999',jdecode('Realfire+%26+Flames'),jdecode(''),'/1957/1999.html','true',[],''],
		['PAGE','2020',jdecode('Graphics'),jdecode(''),'/1957/2020.html','true',[],'']
	],''],
	['PAGE','13590',jdecode('Repair+Facility'),jdecode(''),'/13590.html','true',[],''],
	['PAGE','7406',jdecode('Special+Offers'),jdecode(''),'/7406.html','true',[],''],
	['PAGE','13485',jdecode('The+Best+Price'),jdecode(''),'/13485.html','true',[],''],
	['PAGE','7385',jdecode('Hours'),jdecode(''),'/7385.html','true',[],''],
	['PAGE','1894',jdecode('Contact'),jdecode(''),'/1894/index.html','true',[ 
		['PAGE','1915',jdecode('Locations'),jdecode(''),'/1894/1915.html','true',[],'']
	],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003390',
				b_color: 		'000000',
				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['7008']=webappMappings['7008-5172']={
webappId:    '7008',
documentId:  '1894',
internalId:  '5172',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2708817']={
webappId:    '1501',
documentId:  '1801',
internalId:  '2708817',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-5fbf414807069334cca41491ecc27f27']={
webappId:    '7060',
documentId:  '32301',
internalId:  '5fbf414807069334cca41491ecc27f27',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20071026-165449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20070203-123446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20071026-180925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13548',
internalId:  '',
customField: '20071026-165540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2083',
internalId:  '',
customField: '20071026-180243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13464',
internalId:  '',
customField: '20071026-172200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20070214-152923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20070203-191020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20070203-204111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20070205-023106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7364',
internalId:  '',
customField: '20070202-133907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13422',
internalId:  '',
customField: '20070214-153334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13443',
internalId:  '',
customField: '20070203-201902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13527',
internalId:  '',
customField: '20070205-013449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13506',
internalId:  '',
customField: '20070203-203126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13569',
internalId:  '',
customField: '20070204-210324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1957',
internalId:  '',
customField: '20070203-145848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20070214-154137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1999',
internalId:  '',
customField: '20070214-153541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2020',
internalId:  '',
customField: '20070214-154023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13590',
internalId:  '',
customField: '20070203-144923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7406',
internalId:  '',
customField: '20071026-172727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13485',
internalId:  '',
customField: '20071026-172458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7385',
internalId:  '',
customField: '20070203-204958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20071026-172324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1915',
internalId:  '',
customField: '20070214-160222'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INE2T6';
var companyName   = 'Diamond+Quality+Auto+Body';
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();
};
