/* [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','7920',jdecode('Home'),jdecode(''), jdecode('%2F7920.html'), 'true',[],'',''],
	['PAGE','7971',jdecode('Fleet'),jdecode(''), jdecode('%2F7971.html'), 'true',[],'',''],
	['PAGE','9520',jdecode('Services'),jdecode(''), jdecode('%2F9520%2Findex.html'), 'true',[ 
		['PAGE','8076',jdecode('Airport+Transportation'),jdecode(''), jdecode('%2F9520%2F8076.html'), 'true',[],'',''],
		['PAGE','7992',jdecode('Weddings'),jdecode(''), jdecode('%2F9520%2F7992.html'), 'true',[],'',''],
		['PAGE','8013',jdecode('Proms'),jdecode(''), jdecode('%2F9520%2F8013.html'), 'true',[],'',''],
		['PAGE','8034',jdecode('Night+Out'),jdecode(''), jdecode('%2F9520%2F8034.html'), 'true',[],'',''],
		['PAGE','8055',jdecode('Precious+Cargo'),jdecode(''), jdecode('%2F9520%2F8055.html'), 'true',[],'','']
	],'',''],
	['PAGE','8320',jdecode('Logan+Airport'),jdecode(''), jdecode('%2F8320.html'), 'true',[],'',''],
	['PAGE','8097',jdecode('Corporate+'),jdecode(''), jdecode('%2F8097.html'), 'true',[],'',''],
	['PAGE','8118',jdecode('Price+Quote'),jdecode(''), jdecode('%2F8118.html'), 'true',[],'',''],
	['PAGE','12120',jdecode('News+and+Events'),jdecode(''), jdecode('%2F12120.html'), 'true',[],'',''],
	['PAGE','8139',jdecode('Contact+Us'),jdecode(''), jdecode('%2F8139.html'), 'true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='cutout';
theSitetree.paletteFamily='F0F1D8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10611';
theSitetree.graphicsetId='10473';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'cutout',
				paletteFamily: 	'F0F1D8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10611',
				graphicsetId: 	'10473',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-22690']={
webappId:    '7008',
documentId:  '8118',
internalId:  '22690',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7920',
internalId:  '',
customField: '20120208-181931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7992',
internalId:  '',
customField: '20110303-130005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8013',
internalId:  '',
customField: '20110222-174816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8076',
internalId:  '',
customField: '20110303-125606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8320',
internalId:  '',
customField: '20110218-180430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7971',
internalId:  '',
customField: '20110216-180648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8034',
internalId:  '',
customField: '20110218-180934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8055',
internalId:  '',
customField: '20110218-181007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8097',
internalId:  '',
customField: '20110303-125021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8118',
internalId:  '',
customField: '20110223-101521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8139',
internalId:  '',
customField: '20120208-175646'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7920',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9520',
internalId:  '',
customField: '20110222-154443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12120',
internalId:  '',
customField: '20110623-120924'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I71VFQ';
var companyName   = 'American+Classic+Limousine%2C+Inc.';
var htmlTitle	  = 'ACL+-+Boston+area+limousine+service+offering+transportation+to+Logan+Airport%2C+Weddings%2C+Proms+and+more';
var metaKeywords  = 'boston%2C+massachusetts%2C+limo%2C+limos%2C+limousine%2C+limousines%2C+livery%2C+transportation%2C+airport%2C+logan%2C+corporate%2C+event%2C+events%2C+wed%2C+wedding%2C+weddings%2C+prom%2C+proms%2C+night+out%2C+concert%2C+transfer%2C+shuttle%2C+bus%2C+sedan%2C+sedans%2C+van%2C+vans%2C+coach%2C++';
var metaContents  = 'American+Classic+Limousine%2C+Inc+servicing+the+Boston+area.++Offers+its+customers+comfort%2C+cleanliness+and+competitive+pricing+with+a+wide+variety+of+services+and+vehicles.++The+fleet+of+well+maintained+vehicles+is+driven+by+a+team+of+professional+chauffeurs+to+get+you+were+you+need+to+go+on+time.++Whether+you+are+going+to+dinner%2C+a+Red+Sox+Game%2C+Patriots+game+or+other+event+there+is+plenty+of+room+for+your+whole+party+with+choices+that+include+Lincoln+Series+L+sedans%2C+%28white+or+black%29+Lincoln+Limousines%2C+SUV%E2%80%99s%2C+vans+and+buses.++Don%E2%80%99t+forget+we+also+offer+packages+for+weddings%2C+proms+and+concerts.++If+you+are+going+on+vacation+don%E2%80%99t+take+your+car+to+Logan.++Have+us+take+you+door+to+door.++We+will+go+as+close+as+Massport+allows+and+in+most+cases+it+is+about+the+same+amount+of+money+as+Massport+is+going+to+charge+you+to+park.++We+didn%E2%80%99t+forget+about+business+customers+with+our+array+of+corporate+services+designed+specifically+for+them.++';
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();
};

