/* [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','2201',jdecode('Home'),jdecode(''), jdecode('%2F2201.html'), 'true',[],'',''],
	['PAGE','2378',jdecode('Service'),jdecode(''), jdecode('%2F2378%2Findex.html'), 'true',[ 
		['PAGE','2399',jdecode('Reservations'),jdecode(''), jdecode('%2F2378%2F2399.html'), 'true',[],'','']
	],'',''],
	['PAGE','2273',jdecode('Price'),jdecode(''), jdecode('%2F2273%2Findex.html'), 'true',[ 
		['PAGE','2294',jdecode('El+Paso+%2F+Midland+rates'),jdecode(''), jdecode('%2F2273%2F2294.html'), 'true',[],'',''],
		['PAGE','2315',jdecode('Marfa+Airport+rates'),jdecode(''), jdecode('%2F2273%2F2315.html'), 'true',[],'',''],
		['PAGE','2336',jdecode('In+Town+rates'),jdecode(''), jdecode('%2F2273%2F2336.html'), 'true',[],'','']
	],'',''],
	['PAGE','2483',jdecode('About+us'),jdecode(''), jdecode('%2F2483%2Findex.html'), 'true',[ 
		['PAGE','2504',jdecode('Our+team'),jdecode(''), jdecode('%2F2483%2F2504.html'), 'true',[],'',''],
		['PAGE','2525',jdecode('To+find+us'),jdecode(''), jdecode('%2F2483%2F2525.html'), 'true',[],'','']
	],'',''],
	['PAGE','2420',jdecode('News'),jdecode(''), jdecode('%2F2420.html'), 'true',[],'',''],
	['PAGE','2441',jdecode('Links'),jdecode(''), jdecode('%2F2441.html'), 'true',[],'',''],
	['PAGE','2462',jdecode('Contact'),jdecode(''), jdecode('%2F2462.html'), 'true',[],'',''],
	['PAGE','2546',jdecode('Local+Weather'),jdecode(''), jdecode('%2F2546.html'), 'true',[],'',''],
	['PAGE','2901',jdecode('Guestbook'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','2922',jdecode('Pictures'),jdecode(''), jdecode('%2F2922.html'), 'true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Sedan';
theSitetree.paletteFamily='5C8252';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10747';
theSitetree.graphicsetId='11105';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'fatcow',
  product: 'WSCSYSSSSLY0XRNU'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sedan',
				paletteFamily: 	'5C8252',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10747',
				graphicsetId: 	'11105',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5C8252',
				e_color: 		'5C8252',
				f_color: 		'5C8252',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7080']=webappMappings['7080-903']={
webappId:    '7080',
documentId:  '2546',
internalId:  '903',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-2901aendu0inf5nf']={
webappId:    '1002',
documentId:  '2901',
internalId:  '2901aendu0inf5nf',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-f37f5950fd473ecd9ec56e9d2d666992']={
webappId:    '7060',
documentId:  '2922',
internalId:  'f37f5950fd473ecd9ec56e9d2d666992',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20110518-173504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2378',
internalId:  '',
customField: '20110518-174527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20110518-174928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2294',
internalId:  '',
customField: '20110428-195745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20110428-223750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2336',
internalId:  '',
customField: '20110428-224347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2399',
internalId:  '',
customField: '20110515-164825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2483',
internalId:  '',
customField: '20110512-135013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2504',
internalId:  '',
customField: '20110528-190606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2525',
internalId:  '',
customField: '20110528-191431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2420',
internalId:  '',
customField: '20110512-135841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2441',
internalId:  '',
customField: '20110517-203055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2462',
internalId:  '',
customField: '20110521-180018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2546',
internalId:  '',
customField: '20110517-203139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20110515-163456'
};
webappMappings['7008']=webappMappings['7008-35606']={
webappId:    '7008',
documentId:  '2399',
internalId:  '35606',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2922',
internalId:  '',
customField: '20110515-165006'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INF5NF';
var companyName   = 'MARFA+FLYER';
var htmlTitle	  = 'Marfa+Flyer';
var metaKeywords  = 'marfa+marfa+marfa+chinati+ballroom+judd+flavin+padres+padres%27s+el+cosmico+big+bend+prada+sentinal+paisano+texas+presido+highland+mcdonald+obervatory+krts+lights+public+radio+chamber+of+commerce+CineMarfa+Prada+film+festival';
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();
};

