/* [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','1901',jdecode('Home'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','5701',jdecode('Our+Story'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','2015',jdecode('Our+Rates'),jdecode(''), jdecode('%2F2015.html'), 'true',[],'',''],
	['PAGE','77812',jdecode('AAA+Rates'),jdecode(''), jdecode('%2F77812.html'), 'true',[],'',''],
	['PAGE','1973',jdecode('Directions'),jdecode(''), jdecode('%2F1973.html'), 'true',[],'',''],
	['PAGE','13101',jdecode('News'),jdecode(''), jdecode('%2F13101.html'), 'true',[],'',''],
	['PAGE','10601',jdecode('Airline+Employees'),jdecode(''), jdecode('%2F10601.html'), 'true',[],'',''],
	['PAGE','14301',jdecode('Travel+Agents'),jdecode(''), jdecode('%2F14301.html'), 'true',[],'',''],
	['PAGE','55601',jdecode('Contact+Us'),jdecode(''), jdecode('%2F55601.html'), 'true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Nucleus';
theSitetree.paletteFamily='FDE26B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33304';
theSitetree.graphicsetId='14180';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FDE26B';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRNC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Nucleus',
				paletteFamily: 	'FDE26B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33304',
				graphicsetId: 	'14180',
				contentColor: 	'000000',
				contentBGColor: 'FDE26B',
				a_color: 		'EBCC45',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20110730-170710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77812',
internalId:  '',
customField: '20110730-133905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20110730-133655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20110104-232407'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20110730-134729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20110104-230120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20110108-124633'
};
webappMappings['1501']=webappMappings['1501-9448339']={
webappId:    '1501',
documentId:  '1901',
internalId:  '9448339',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-22312']={
webappId:    '7008',
documentId:  '55601',
internalId:  '22312',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20110108-122856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20110104-234746'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN2SY7';
var companyName   = 'Airport+SECURITY+Parking';
var htmlTitle	  = 'airport-security-parking.com++++++++Your+parking+headquarters+for+Fast%2C+Courtious%2C+and+Friendly+staff+for+your+piece+of+mind.';
var metaKeywords  = 'airport%2C+security%2C+parking%2C+security+parking%2C+airport+parking%2C+vehicle+storage%2C+long+term+strage%2C+auto+storage%2C+http%3A%2F%2Fwww.airport-security-parking.com%2C+Airport+Security+Parking+%2C+1106+Halm+Rd.%2C+San+Antonio%2C+TX.+%2C78216%2C++PH%23+%28210%29342-8728%2C+Est.+June+1970+%2CFor+%2C38%2C+years%2C+we%2C+have+%2Cprovided+%2CParking+%2Cand%2C+Transportation+%2CServices+%2Cfor+%2CSan+Antonio%2C+International+Airport%2C+as+%2Cwell+%2Cas+%2CLocal+Hotels%2C+Car+Rental+Agencies%2C+and+%2CCasino+trips%2C+to+Louisiana%2C+and+to+the+%2CKickapoo+Indian+Reservation%2C+Airport+Security+Parking+.+is+%2Cyour+%2Cpremier+%2Cparking+%2Cfacility%2C+for+%2Cyour%2C+travel+needs%2C+Feel+%2Cfree+%2Cto+%2Ccall+%2Cus%2C+if+%2Cyou+%2Chave%2C+service%2C+quality%2C+price%2C+cheaper+than+the+airport%2C+any+%2Cquestions+%2Cor+%2Cconcerns+%2Cabout+your+stay+with+us.+We%E2%80%99re+here+to+make+your+travel+experience%2C+as+%2Cpleasant%2C+as+%2Cpossible%2CThank+you+%2Cfor%2C+keeping%2C+us%2C+the+%2CNumber+One+%2Coff+airport+lot+%2Cin+San+Antonio%2C+parking%2C+airport%2C+airport+parking%2C+parking+cars%2C+parking+vehicles%2C+boats%2C+RVs%2C+motorhomes%2C+Rigs%2C+Cab+Over%2C+friendly%2C+secure%2C+on+time%2C+less+hassel%2C+courtious%2C+local+parking%2C+san+antonio+parking%2C+out+of+town+parking%2C+over+night+parking%2C+SUV%2C+Lotus%2C+Cadillac%2C+Porche%2C+Mercedes%2C++Mercedes+Benz%2CBenz%2C+luxury+cars%2C+car+park%2C+park+car%2C+safe%2C+secure%2C+safty%2C+parking+rates%2CCOPYRIGHT+2008+Airport+SECURITY+Parking.com';
var metaContents  = 'Airport+Security+Parking+was+established+over+forty+years+ago%2C+and+has+been+the+Premier+Parking+Facility+and+Transportation+service+for+San+Antonio+International+Airport+.+We+pride+ourselves+in+having+fast%2C+courteous+and+friendly+service.+Our+regular+customers+particularly+value+the+personalized+service+we+provide.+Our+business+is+located+at+1106+Halm+Blvd.+in+San+Antonio%2CTexas+servicing+all+of+South+Texas.+Please+let+us+know+what+your+needs+and+questions+are%2C+we+will+be+more+than+happy+to+help.In+the+meantime+you+can+reach+us+at+210-342-8728.+We+are+looking+forward+to+hearing+from+you.+You+can+also+contact+us+at+our+e-mail+address%3A+hickscathy%40sbcglobal.net';
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();
};

