/* [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','5501',jdecode('Home'),jdecode(''),'/5501.html','true',[],'',''],
	['PAGE','5552',jdecode('About+Us'),jdecode(''),'/5552.html','true',[],'',''],
	['PAGE','81601',jdecode('Live+Help'),jdecode(''),'/81601.html','false',[],'',''],
	['PAGE','80422',jdecode('Request+Quote'),jdecode(''),'/80422.html','false',[],'',''],
	['PAGE','118934',jdecode('Oral+Interpretation'),jdecode(''),'/118934.html','true',[],'',''],
	['PAGE','81201',jdecode('Document+Translation'),jdecode(''),'/81201.html','true',[],'',''],
	['PAGE','98933',jdecode('Feedback+Referrals'),jdecode(''),'/98933.html','false',[],'',''],
	['PAGE','5573',jdecode('Contact+Us'),jdecode(''),'/5573.html','true',[],'',''],
	['PAGE','146334',jdecode('New+page'),jdecode(''),'/146334.html','false',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Axis';
theSitetree.paletteFamily='C2C99B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10467';
theSitetree.graphicsetId='10917';
theSitetree.contentColor='003366';
theSitetree.contentBGColor='DBDFC0';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Axis',
				paletteFamily: 	'C2C99B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10467',
				graphicsetId: 	'10917',
				contentColor: 	'003366',
				contentBGColor: 'DBDFC0',
				a_color: 		'EFF2DD',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'606638',
				e_color: 		'606638',
				f_color: 		'606638',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100510-123030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5552',
internalId:  '',
customField: '20100510-123157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5573',
internalId:  '',
customField: '20110718-211730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146334',
internalId:  '',
customField: '20100406-111232'
};
webappMappings['1501']=webappMappings['1501-6031971']={
webappId:    '1501',
documentId:  '5501',
internalId:  '6031971',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81601',
internalId:  '',
customField: '20091109-154442'
};
webappMappings['7008']=webappMappings['7008-5233']={
webappId:    '7008',
documentId:  '80422',
internalId:  '5233',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98933',
internalId:  '',
customField: '20100329-142300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80422',
internalId:  '',
customField: '20100331-195151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81201',
internalId:  '',
customField: '20100510-123335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118934',
internalId:  '',
customField: '20100510-123414'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLXC7';
var companyName   = 'EFCS+Legal+Language+Services+';
var htmlTitle	  = 'Immigration+Services';
var metaKeywords  = 'Translation%2C+Translationservice%2C+DocumentTranslation%2C+Interpreter%2C+Translator%2C+Translate%2C+LegalTranslation%2C+Frenchtranslator%2C+creoletranslator%2C+haitian-creoletranslation%2C+haitian-creoletranslator%2C+spanishtranslator%2C+spanish-frenchtranslator%2C+legaltranslator%2C+translationofimmigrationdocuments%2C+certifiedtranslation%2C+oralinterpretation%2C+phoneinterpretation%2C+in-personinterpretation%2C+legalinterpreter%2C+certifiedinterpreter%2C+courtinterpreter%2C+vitalrecordstranslation%2C+schoolrecordstranslation%2C+bookstranslation%2C+contractstranslation%2C+manualstranslation%2C+translationbirth+certificates%2C+certifiedtranslator%2C+languageservices';
var metaContents  = 'Translation%2C+Document+Translation%2C+Certified+Translation%2C+Interpretation+in+person%2C+Interpretation+by+phone+or+Video+Interpretation%2C+Haitian-Creole+Translation%2C+Haitian-Creole+Interpreter%2C+Haitian-Creole+Translator%2C+Accurate+Translation%2C+Book+Translation%2C+Legal+Translation%2C+French+Translation%2C+Document+Translation%2C+Court+Interpreter%2C+Immigration+Interpreter%2C+Immigration+Translator%2C+Immigration+Lawyer+Referral%2C+Personal+Injury+Lawyer+Referral%2C+Traduzione+dal+Ingleze';
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();
};

