/* [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','2601',jdecode('Home'),jdecode(''),'/2601/index.html','true',[ 
		['PAGE','21201',jdecode('About+Us'),jdecode(''),'/2601/21201.html','true',[],'',''],
		['PAGE','24101',jdecode('Merchants'),jdecode(''),'/2601/24101.html','true',[],'',''],
		['PAGE','24201',jdecode('Local+Artists'),jdecode(''),'/2601/24201.html','true',[],'',''],
		['PAGE','22001',jdecode('Second+Saturday'),jdecode(''),'/2601/22001.html','true',[],'',''],
		['PAGE','22401',jdecode('Festivals%2FArt+Shows'),jdecode(''),'/2601/22401.html','true',[],'',''],
		['PAGE','21401',jdecode('How+to+Find+Us'),jdecode(''),'/2601/21401.html','true',[],'',''],
		['PAGE','24801',jdecode('VACATION+RENTAL'),jdecode(''),'/2601/24801.html','true',[],'','']
	],'',''],
	['PAGE','5201',jdecode('MERCHANDISE'),jdecode(''),'/5201/index.html','true',[ 
		['PAGE','11401',jdecode('Furniture'),jdecode(''),'/5201/11401.html','true',[],'',''],
		['PAGE','11422',jdecode('Home+Decor'),jdecode(''),'/5201/11422.html','true',[],'',''],
		['PAGE','11443',jdecode('Linens'),jdecode(''),'/5201/11443.html','true',[],'',''],
		['PAGE','11464',jdecode('China'),jdecode(''),'/5201/11464.html','true',[],'',''],
		['PAGE','11485',jdecode('Jewelry'),jdecode(''),'/5201/11485.html','true',[],'',''],
		['PAGE','11506',jdecode('Books'),jdecode(''),'/5201/11506.html','true',[],'',''],
		['PAGE','11527',jdecode('Tools'),jdecode(''),'/5201/11527.html','true',[],'',''],
		['PAGE','11548',jdecode('Patio%2FGarden'),jdecode(''),'/5201/11548.html','true',[],'',''],
		['PAGE','11569',jdecode('Art'),jdecode(''),'/5201/11569.html','true',[],'',''],
		['PAGE','11590',jdecode('Collectibles'),jdecode(''),'/5201/11590.html','true',[],'','']
	],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Mappe';
theSitetree.paletteFamily='BA9763';
theSitetree.keyvisualId='1938';
theSitetree.keyvisualName='garten.jpg';
theSitetree.fontsetId='322';
theSitetree.graphicsetId='381';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='BA9763';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mappe',
				paletteFamily: 	'BA9763',
				keyvisualId: 	'1938',
				keyvisualName: 	'garten.jpg',
				fontsetId: 		'322',
				graphicsetId: 	'381',
				contentColor: 	'000000',
				contentBGColor: 'BA9763',
				a_color: 		'BA9763',
				b_color: 		'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20100214-170535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20100131-143711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20100131-164646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11422',
internalId:  '',
customField: '20100207-162651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20100304-143548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100131-145037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100207-162506'
};
webappMappings['7060']=webappMappings['7060-3651ad204792b88365269fb24b00f82f']={
webappId:    '7060',
documentId:  '11401',
internalId:  '3651ad204792b88365269fb24b00f82f',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-bc9ccd7ba3a9b6655d93962c59ec0c0a']={
webappId:    '7060',
documentId:  '11422',
internalId:  'bc9ccd7ba3a9b6655d93962c59ec0c0a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0d64785cdeeb930c91a0577a38977115']={
webappId:    '7060',
documentId:  '11443',
internalId:  '0d64785cdeeb930c91a0577a38977115',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-b8dd85f6eb6a5a6919f6bfc4765a6c65']={
webappId:    '7060',
documentId:  '11464',
internalId:  'b8dd85f6eb6a5a6919f6bfc4765a6c65',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-4ed0fc6e6d1c49689d73682600662139']={
webappId:    '7060',
documentId:  '11485',
internalId:  '4ed0fc6e6d1c49689d73682600662139',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-01900de277e86d2583b33edd8737b8fa']={
webappId:    '7060',
documentId:  '11506',
internalId:  '01900de277e86d2583b33edd8737b8fa',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-bfc3913d45e0c755a120a17ba1bbca72']={
webappId:    '7060',
documentId:  '11527',
internalId:  'bfc3913d45e0c755a120a17ba1bbca72',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-5f1cf10687e946b2f28d4e4e4e55a356']={
webappId:    '7060',
documentId:  '11548',
internalId:  '5f1cf10687e946b2f28d4e4e4e55a356',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-6a78afa9d8b63d6dda25d9563ae67ab6']={
webappId:    '7060',
documentId:  '11569',
internalId:  '6a78afa9d8b63d6dda25d9563ae67ab6',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100127-175410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11443',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11464',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11485',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11506',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11527',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11548',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11569',
internalId:  '',
customField: '20100207-162713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11590',
internalId:  '',
customField: '20100127-151539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20100131-150555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20100131-143753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20100131-141815'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CJGX';
var companyName   = 'Antique+Maison%2C+LLC+';
var htmlTitle	  = '';
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();
};
