/* [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','11701',jdecode('Home'),jdecode(''), jdecode('%2F11701.html'), 'true',[],'',''],
	['PAGE','11752',jdecode('About+us'),jdecode(''), jdecode('%2F11752%2Findex.html'), 'true',[ 
		['PAGE','15001',jdecode('Financial+searches'),jdecode(''), jdecode('%2F11752%2F15001.html'), 'true',[],'',''],
		['PAGE','15201',jdecode('Aftermarket+searches'),jdecode(''), jdecode('%2F11752%2F15201.html'), 'true',[],'',''],
		['PAGE','15022',jdecode('Dealership+searches'),jdecode(''), jdecode('%2F11752%2F15022.html'), 'true',[],'','']
	],'',''],
	['PAGE','13401',jdecode('Employee%26%23x27%3Bs+Page'),jdecode(''), jdecode('%2F13401%2Findex.html'), 'true',[ 
		['PAGE','14401',jdecode('Beating+your+competition'),jdecode(''), jdecode('%2F13401%2F14401.html'), 'true',[],'',''],
		['PAGE','14501',jdecode('Prepare+for+interview+'),jdecode(''), jdecode('%2F13401%2F14501.html'), 'true',[],'',''],
		['PAGE','14522',jdecode('Successful+negotiations'),jdecode(''), jdecode('%2F13401%2F14522.html'), 'true',[],'',''],
		['PAGE','14601',jdecode('Resignation+Letter'),jdecode(''), jdecode('%2F13401%2F14601.html'), 'true',[],'',''],
		['PAGE','14622',jdecode('Counter-Offer+Trap'),jdecode(''), jdecode('%2F13401%2F14622.html'), 'true',[],'','']
	],'',''],
	['PAGE','13422',jdecode('Employer%26%23x27%3Bs+Page'),jdecode(''), jdecode('%2F13422%2Findex.html'), 'true',[ 
		['PAGE','14643',jdecode('How+we+work'),jdecode(''), jdecode('%2F13422%2F14643.html'), 'true',[],'',''],
		['PAGE','14901',jdecode('Fees+and++terms'),jdecode(''), jdecode('%2F13422%2F14901.html'), 'true',[],'','']
	],'',''],
	['PAGE','18601',jdecode('Published+Articles'),jdecode(''), jdecode('%2F18601%2Findex.html'), 'true',[ 
		['PAGE','14664',jdecode('Interviewing+Effectively'),jdecode(''), jdecode('%2F18601%2F14664.html'), 'true',[],'',''],
		['PAGE','14685',jdecode('Personality+does+matter%21'),jdecode(''), jdecode('%2F18601%2F14685.html'), 'true',[],'',''],
		['PAGE','14706',jdecode('Be+fair+-+hit+them+hard%21'),jdecode(''), jdecode('%2F18601%2F14706.html'), 'true',[],'',''],
		['PAGE','14727',jdecode('Sales+people+-+Born+or+Made%3F'),jdecode(''), jdecode('%2F18601%2F14727.html'), 'true',[],'',''],
		['PAGE','19501',jdecode('Expanding+Territory+'),jdecode(''), jdecode('%2F18601%2F19501.html'), 'true',[],'',''],
		['PAGE','19522',jdecode('Terminations'),jdecode(''), jdecode('%2F18601%2F19522.html'), 'true',[],'','']
	],'',''],
	['ITEM','35112',jdecode('%22Hot+Jobs%22'),jdecode(''), jdecode('http%3A%2F%2Fsearchpro1.hiringhook.com%2FJobSeeker%2FSearchResults.aspx%3Frunsearch%3D1%26featured%3D1%26defaultsearch%3D1'), 'true',[],'',''],
	['PAGE','11836',jdecode('Contact+Us'),jdecode(''), jdecode('%2F11836.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='3F70CF';
theSitetree.keyvisualId='7928';
theSitetree.keyvisualName='kv_7928.jpg';
theSitetree.fontsetId='16910';
theSitetree.graphicsetId='12323';
theSitetree.contentColor='163D88';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Trend',
				paletteFamily: 	'3F70CF',
				keyvisualId: 	'7928',
				keyvisualName: 	'kv_7928.jpg',
				fontsetId: 		'16910',
				graphicsetId: 	'12323',
				contentColor: 	'163D88',
				contentBGColor: 'FFFFFF',
				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:  '11701',
internalId:  '',
customField: '20090408-113917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11752',
internalId:  '',
customField: '20090414-111142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20090414-111318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20090408-112014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13422',
internalId:  '',
customField: '20090414-114549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20090414-111223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20090414-111252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20090408-111758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20090409-104905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14522',
internalId:  '',
customField: '20090414-114415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20090414-114453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14643',
internalId:  '',
customField: '20090414-114609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20090408-112410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090408-112612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20090414-114652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14664',
internalId:  '',
customField: '20090414-114714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14685',
internalId:  '',
customField: '20090414-114742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14727',
internalId:  '',
customField: '20090414-115100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14706',
internalId:  '',
customField: '20090408-112903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20090414-115129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19522',
internalId:  '',
customField: '20090414-115155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11836',
internalId:  '',
customField: '20090414-115412'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-13221371']={
webappId:    '1501',
documentId:  '11701',
internalId:  '13221371',
customField: '1501'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHWZS';
var companyName   = 'Automotive+Personnel%2C+LLC';
var htmlTitle	  = 'Automotive+Personnel%2C+LLC';
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();
};

