/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','12701',jdecode('Search'),jdecode(''),'/12701.html','true',[],'',''],
	['PAGE','3001',jdecode('About+us'),jdecode(''),'/3001/index.html','true',[ 
		['PAGE','3022',jdecode('Repair+shop'),jdecode(''),'/3001/3022.html','true',[],'',''],
		['PAGE','3043',jdecode('Our+team'),jdecode(''),'/3001/3043.html','true',[],'',''],
		['PAGE','3064',jdecode('How+to+find+us'),jdecode(''),'/3001/3064.html','true',[],'',''],
		['PAGE','12001',jdecode('Testimonials'),jdecode(''),'/3001/12001.html','true',[],'','']
	],'',''],
	['PAGE','3085',jdecode('Services'),jdecode(''),'/3085/index.html','true',[ 
		['PAGE','12501',jdecode('Prices'),jdecode(''),'/3085/12501.html','true',[],'','']
	],'',''],
	['PAGE','3169',jdecode('Current+offers'),jdecode(''),'/3169.html','true',[],'',''],
	['PAGE','3106',jdecode('Engines'),jdecode(''),'/3106/index.html','true',[ 
		['PAGE','15701',jdecode('Engine+Pricing'),jdecode(''),'/3106/15701.html','true',[],'','']
	],'',''],
	['PAGE','3148',jdecode('Accessories'),jdecode(''),'/3148.html','true',[],'',''],
	['PAGE','3127',jdecode('Photo+Gallery'),jdecode(''),'/3127.html','true',[],'',''],
	['PAGE','3190',jdecode('Contact'),jdecode(''),'/3190.html','true',[],'',''],
	['PAGE','3211',jdecode('Ask+the+Subaru+Guru'),jdecode(''),'/3211.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='000099';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12755';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'000099',
				keyvisualId: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12755',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100830-210202'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-2991d8a7822319323f28d76782525b98']={
webappId:    '7060',
documentId:  '3106',
internalId:  '2991d8a7822319323f28d76782525b98',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-05dc6b15035c914f4430a92ad39d8b78']={
webappId:    '7060',
documentId:  '3127',
internalId:  '05dc6b15035c914f4430a92ad39d8b78',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-18036']={
webappId:    '7008',
documentId:  '3211',
internalId:  '18036',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20100830-210308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20100625-102314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3043',
internalId:  '',
customField: '20100625-102314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3064',
internalId:  '',
customField: '20100625-134220'
};
webappMappings['7060']=webappMappings['7060-a888d7c8984599945a560135bd6f9f56']={
webappId:    '7060',
documentId:  '3043',
internalId:  'a888d7c8984599945a560135bd6f9f56',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3085',
internalId:  '',
customField: '20100830-194634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3106',
internalId:  '',
customField: '20100819-181952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3190',
internalId:  '',
customField: '20100625-151237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3211',
internalId:  '',
customField: '20100830-202030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20100625-152308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3169',
internalId:  '',
customField: '20100830-194143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3148',
internalId:  '',
customField: '20100625-102317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20100830-194529'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '12701',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20100830-194941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3127',
internalId:  '',
customField: '20100625-102316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20100901-190736'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CLNP';
var companyName   = 'EAST+VALLEY+AUTO+REBUILD';
var htmlTitle	  = 'East+Valley+Auto+Rebuild+----+HOME+OF+THE+SUBARU+GURU';
var metaKeywords  = 'Subaru+Guru+Subaru+parts+repair+subaru+engines+subaru+service+subaru+tune+up+subaru+restoration+rebuild+subaru+guru+body+work+engine+brakes+clutch+oil+service+transmission+air+conditioning+tires+wheels+interior+parts+';
var metaContents  = 'East+Valley+Auto+Rebuild+Home+of+the+Subaru+Guru+in+Kent+WA+offering+auto+repair%2C+specializing+in+Subarus%2C+subaru+restoration%2C+subaru+engines+for+sale%2C+subaru+brakes%2C+subaru+tune+ups%2C+subaru+clutches%2C+subaru+engines%2C+subaur+oil+service%2C+transmissions+and+also+work+on+all+other+makes+and+models.';
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();
};
