/* [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 theSitetree=[ 
	['PAGE','49529',jdecode('Home'),jdecode(''),'/49529.html','true',[],''],
	['PAGE','23501',jdecode('Fleet'),jdecode(''),'/23501/index.html','true',[ 
		['PAGE','20201',jdecode('Sedans'),jdecode(''),'/23501/20201.html','false',[],''],
		['PAGE','23543',jdecode('Vans'),jdecode(''),'/23501/23543.html','false',[],''],
		['PAGE','32801',jdecode('+6+Pass+Limos'),jdecode(''),'/23501/32801.html','false',[],''],
		['PAGE','23522',jdecode('8+Pass+Limos'),jdecode(''),'/23501/23522.html','false',[],''],
		['PAGE','32822',jdecode('+10+Pass+Limos'),jdecode(''),'/23501/32822.html','false',[],''],
		['PAGE','48101',jdecode('Navigator'),jdecode(''),'/23501/48101.html','false',[],'']
	],''],
	['PAGE','9952',jdecode('Services'),jdecode(''),'/9952.html','true',[],''],
	['PAGE','9994',jdecode('Packages'),jdecode(''),'/9994.html','true',[],''],
	['PAGE','25601',jdecode('Quote+Requests'),jdecode(''),'/25601/index.html','true',[ 
		['PAGE','26801',jdecode('Airport+Transfers'),jdecode(''),'/25601/26801.html','true',[],''],
		['PAGE','10036',jdecode('Weddings+'),jdecode(''),'/25601/10036.html','true',[],''],
		['PAGE','25622',jdecode('Proms'),jdecode(''),'/25601/25622.html','true',[],''],
		['PAGE','30001',jdecode('Point+to+Point'),jdecode(''),'/25601/30001.html','true',[],'']
	],''],
	['PAGE','21401',jdecode('Testimonials'),jdecode(''),'/21401.html','true',[],''],
	['PAGE','10015',jdecode('About+Us'),jdecode(''),'/10015.html','true',[],''],
	['PAGE','22201',jdecode('Contact+Us'),jdecode(''),'/22201.html','true',[],''],
	['PAGE','27201',jdecode('Local+Weather'),jdecode(''),'/27201.html','true',[],''],
	['PAGE','10057',jdecode('search+engine'),jdecode(''),'/10057.html','false',[],''],
	['PAGE','58099',jdecode('Marlborough'),jdecode(''),'/58099.html','false',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='88A6B5';
theSitetree.keyvisualId='11284';
theSitetree.keyvisualName='kv_11284.jpg';
theSitetree.fontsetId='32116';
theSitetree.graphicsetId='13936';
theSitetree.contentColor='3C3D3C';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Vita02',
				paletteFamily: 	'88A6B5',
				keyvisualId: 	'11284',
				keyvisualName: 	'kv_11284.jpg',
				fontsetId: 		'32116',
				graphicsetId: 	'13936',
				contentColor: 	'3C3D3C',
				contentBGColor: 'F6FBFE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-13911']={
webappId:    '7008',
documentId:  '10036',
internalId:  '13911',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20100217-144655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9952',
internalId:  '',
customField: '20100130-114529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10036',
internalId:  '',
customField: '20090319-101715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100130-114246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20100212-125840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9994',
internalId:  '',
customField: '20100130-114832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10015',
internalId:  '',
customField: '20100128-120149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10057',
internalId:  '',
customField: '20090223-113809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20090319-101241'
};
webappMappings['7008']=webappMappings['7008-14535']={
webappId:    '7008',
documentId:  '22201',
internalId:  '14535',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '49529',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23522',
internalId:  '',
customField: '20100212-125940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23543',
internalId:  '',
customField: '20100212-125904'
};
webappMappings['7008']=webappMappings['7008-14697']={
webappId:    '7008',
documentId:  '25622',
internalId:  '14697',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20100130-114430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25622',
internalId:  '',
customField: '20090408-112846'
};
webappMappings['7008']=webappMappings['7008-14714']={
webappId:    '7008',
documentId:  '26801',
internalId:  '14714',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20090319-101805'
};
webappMappings['7080']=webappMappings['7080-445']={
webappId:    '7080',
documentId:  '27201',
internalId:  '445',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20090317-120531'
};
webappMappings['7008']=webappMappings['7008-14802']={
webappId:    '7008',
documentId:  '30001',
internalId:  '14802',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20100227-113509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20090330-103844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20100212-125919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32822',
internalId:  '',
customField: '20100212-130002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49529',
internalId:  '',
customField: '20100309-143932'
};
webappMappings['1501']=webappMappings['1501-16387754']={
webappId:    '1501',
documentId:  '49529',
internalId:  '16387754',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58099',
internalId:  '',
customField: '20100218-100749'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN316Z';
var companyName   = 'All+Seasons+Limousine';
var htmlTitle	  = 'Massachusetts+Limousine+Service';
var metaKeywords  = 'prom%2C+limousine%2C+limo%2C+Stow%2C+Leominster+%2C+Abington%2C+Accord%2C+Acton%2C+Allston%2C+Amesbury%2C+Andover%2C+Arlington%2C+Arlington+Heights%2C+Ashland%2C+Auburndale%2C+Avon%2C+Boston%2C+Babson+Park%2C+Bedford%2C+Bellingham%2C+Belmont%2C+%2C+Billerica%2C+Bolton%2C+Boston%2C+Boxborough%2C+Boxford%2C+Braintree%2C+Brant+Rock%2C+Brighton%2C+%2C+Brookline%2C+Brookline+Village%2C+Bryantville%2C+Burlington%2C+Byfield%2C+Cambridge%2C+Canton%2C+Carlisle%2C+Carver%2C+Charlestown%2C+Chelmsford%2C+Chelsea%2C+Chestnut+Hill%2C+Concord%2C+Danvers%2C+Dedham%2C+Dover%2C+Dracut%2C%2C+Foxboro%2C+Framingham%2C+fitchburg%2CFranklin%2C++Hanscom+AFB%2C+Hanson%2C+Haverhill%2C+Hingham%2C+Holbrook%2C+Holliston%2C+Hopedale%2C+Hopkinton%2C+Hudson%2C+Lawrence%2C+Lexington%2C+Lincoln%2C+Lowell%2C+Lynn%2C+Lynnfield%2C+Malden%2C+Manchester%2C+%2C+Mansfield%2C+Marlborough%2C+Marshfield%2C+Marshfield+Hills%2C+Mattapan%2C+Maynard%2C+Medfield%2C+Medford%2C+Medway%2C+Melrose%2C+Mendon%2C+Merrimac%2C+Methuen%2C+Middleboro%2C+Middleton%2C+Milford%2C+Millis%2C+Milton%2C+Milton+Village%2C+Minot%2C+Monponsett%2C+Nahant%2C+Natick%2C+Needham%2C+Needham+Heights%2C+New+Town%2C+Newbury%2C+Newburyport%2C+Newton%2C+Newton+Center%2C+Newton+Highlands%2C+Newton+Lower+Falls%2C+Newton+Upper+Falls%2C+Newtonville%2C+Nonantum%2C+Norfolk%2C+North+Andover%2C+North+Billerica%2C+r%2C+North+Chelmsford%2C+North+Pembroke%2C+North+Reading%2C+North+Scituate%2C+Prides+Crossing%2C+%2C+Reading%2C+Somerville%2Cn%2C+South+Walpole%2C+Southborough%2C+Stoneham%2C+Stoughton%2C+Stow%2C+Sudbury%2C+Swampscott%2C+Tewksbury%2C+Topsfield%2C+Tyngsboro%2C+Village+of+Nagog+Woods%2C+Waban%2C+Wakefield%2C+Walpole%2C+Waltham%2C+Watertown%2C+Waverley%2C+Wayland%2C+Wellesley%2C+Wellesley+Hills%2C+Wenham%2C+West+Boxford%2C+West+Bridgewater%2C+West+Medford%2C+West+Newbury%2C+West+Newton%2C+West+Roxbury%2C+Westford%2C+Weston%2C+Westwood%2C+Weymouth%2C+White+Horse+Beach%2C+Whitman%2C+Wilmington%2C+Winchester%2C+Winthrop%2C+Woburn%2C+Woodville%2C+Wrentham.+Limo%2C+limousine+TOWN+CAR%2C+AIRPORT%2C+TRAIN+station%2C+Prom%2C+Night+out%2C+birthday%2C+party%2C+night+out%2C+Boxboro+limousine%2C+Boxborough+limousine%2C+Boxboro+airport%2C+Boxborough+transportation%2C+Acton+limos%2C+Acton+limousine+services%2C+Acton+limousine+rentals%2C+Acton+Limousine%2C+Acton+limousines%2C+Acton+Limo%2C+Acton+limo+service%2C+Acton+limousine+service%2C+Acton+stretch+limo%2C+Acton+stretch+limousine%2C+Acton+transportation+%2C+Acton+transportation+service%2C+Acton+corporate+limo%2C+Acton+corporate+transportation+%2C+Acton+town+car+limousine%2C+Acton+wedding+limo%2C+Acton+party+limo%2C+Acton+rent+limo%2C+Acton+luxury+car+rental%2C+Acton+luxury+car+services%2C+BOXBORO%2C+BOXBOROUGH%2C+limo%2C+Limousine%2C+Wedding%2C+Night+out%2C+bacholor%2C+bachlorette%2C+Leominster%2C+ayer%2C+devens%2C+littleton%2C+stow%2C+Westford%2C+Nagog%2C+Nashoba%2C+massachusetts';
var metaContents  = 'All+Seasons+Limousine++978-263-8888+1-800-400-1900+Massachusetts+transportation+for+Airport%2C+wedding%2C+prom%2C+night+on+the+town.';
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();
};
