/* [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','1401',jdecode('Home'),jdecode(''), jdecode('%2F1401.html'), 'true',[],'',''],
	['PAGE','1851',jdecode('Contact'),jdecode(''), jdecode('%2F1851.html'), 'true',[],'',''],
	['PAGE','1788',jdecode('Employers'),jdecode(''), jdecode('%2F1788%2Findex.html'), 'true',[ 
		['PAGE','1809',jdecode('To+Obtain+Employees'),jdecode(''), jdecode('%2F1788%2F1809.html'), 'true',[],'',''],
		['PAGE','1830',jdecode('FAQ'),jdecode(''), jdecode('%2F1788%2F1830.html'), 'true',[],'',''],
		['PAGE','209945',jdecode('Testimonials+'),jdecode(''), jdecode('%2F1788%2F209945.html'), 'true',[],'','']
	],'',''],
	['PAGE','1452',jdecode('Applicants'),jdecode(''), jdecode('%2F1452%2Findex.html'), 'true',[ 
		['PAGE','1473',jdecode('Application+'),jdecode(''), jdecode('%2F1452%2F1473.html'), 'true',[],'',''],
		['PAGE','24001',jdecode('Adobe+Reader'),jdecode(''), jdecode('%2F1452%2F24001.html'), 'true',[],'',''],
		['PAGE','1578',jdecode('Common+Questions'),jdecode(''), jdecode('%2F1452%2F1578.html'), 'true',[],'','']
	],'',''],
	['PAGE','1599',jdecode('Jobs'),jdecode(''), jdecode('%2F1599%2Findex.html'), 'true',[ 
		['PAGE','8801',jdecode('Part-Time%2FTemp+'),jdecode(''), jdecode('%2F1599%2F8801.html'), 'true',[],'',''],
		['PAGE','7501',jdecode('Downtown%2FCentral+'),jdecode(''), jdecode('%2F1599%2F7501.html'), 'true',[],'',''],
		['PAGE','1620',jdecode('North'),jdecode(''), jdecode('%2F1599%2F1620.html'), 'true',[],'',''],
		['PAGE','1641',jdecode('NorthWest'),jdecode(''), jdecode('%2F1599%2F1641.html'), 'true',[],'',''],
		['PAGE','1662',jdecode('West'),jdecode(''), jdecode('%2F1599%2F1662.html'), 'true',[],'',''],
		['PAGE','1683',jdecode('SouthWest'),jdecode(''), jdecode('%2F1599%2F1683.html'), 'true',[],'',''],
		['PAGE','1704',jdecode('South'),jdecode(''), jdecode('%2F1599%2F1704.html'), 'true',[],'',''],
		['PAGE','1725',jdecode('SouthEast'),jdecode(''), jdecode('%2F1599%2F1725.html'), 'true',[],'',''],
		['PAGE','1746',jdecode('East'),jdecode(''), jdecode('%2F1599%2F1746.html'), 'true',[],'',''],
		['PAGE','1767',jdecode('NorthEast'),jdecode(''), jdecode('%2F1599%2F1767.html'), 'true',[],'','']
	],'',''],
	['PAGE','17301',jdecode('Employees'),jdecode(''), jdecode('%2F17301%2Findex.html'), 'true',[ 
		['PAGE','17322',jdecode('Hourly+Timesheet'),jdecode(''), jdecode('%2F17301%2F17322.html'), 'true',[],'',''],
		['PAGE','19601',jdecode('Salary+Timesheet'),jdecode(''), jdecode('%2F17301%2F19601.html'), 'true',[],'','']
	],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				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-288']={
webappId:    '7008',
documentId:  '1809',
internalId:  '288',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20120127-141038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20111114-112318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1473',
internalId:  '',
customField: '20111114-142300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20111114-103850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1578',
internalId:  '',
customField: '20111114-113331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1599',
internalId:  '',
customField: '20110818-105933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20120201-123040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20120201-122138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1641',
internalId:  '',
customField: '20120201-121726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1662',
internalId:  '',
customField: '20120201-123153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1683',
internalId:  '',
customField: '20120201-123230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1704',
internalId:  '',
customField: '20120105-162121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1725',
internalId:  '',
customField: '20120105-162214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1746',
internalId:  '',
customField: '20120201-123328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1767',
internalId:  '',
customField: '20111208-161325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20111214-123605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1788',
internalId:  '',
customField: '20110930-104449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1809',
internalId:  '',
customField: '20110818-105816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1830',
internalId:  '',
customField: '20111206-114643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20110818-110247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17322',
internalId:  '',
customField: '20111104-153914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20110922-142239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1851',
internalId:  '',
customField: '20120105-165212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209945',
internalId:  '',
customField: '20111111-111820'
};
webappMappings['7005']=webappMappings['7005-2051']={
webappId:    '7005',
documentId:  '1401',
internalId:  '2051',
customField: 'language:en;country:US;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZY80';
var companyName   = 'LPC+Personnel%2C+Inc.';
var htmlTitle	  = 'Staffing%2C+Employment%2C+LPC+the+Connection';
var metaKeywords  = 'staffing%2C+temp+agency%2C+temp+agencies%2C+employment+agencies%2C+staffing+service%2C+woman+owned+staffing%2C+agencies+for+employment%2C+hiring%2C+find+a+job%2C+hiring+jobs%2C+job+placement+service%2C+temporary+agencies%2C+Houston%2C+Texas%2C+Jobs%2C+temporary%2C+contract%2C+permanent%2C+77007%2C+lpc+personnel%2C+employers%2C+resume%2C+position%2C+7136809898%2C+713-680-9898%2C+staffing+in+Houston%2C+temp+agency+in+Houston%2C+temp+agencies+in+Houston%2C+about+staffing%2C+personnel+staffing%2C+employment+staffing%2C+staffing+employment%2C+agency+staffing';
var metaContents  = 'LPC+Personnel+is+a+locally+owned+and+operated+full-service+staffing+agency+in++Houston%2C+Texas.+We+offer+temporary+and+permanent+positions+in+a+variety+of+fields.+++++';
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();
};

