/* [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','2301',jdecode('DeSoto+Cab+'),jdecode(''), jdecode('%2F2301.html'), 'true',[],'',''],
	['PAGE','2352',jdecode('DeSoto+Cab+About+Us'),jdecode(''), jdecode('%2F2352.html'), 'true',[],'',''],
	['PAGE','2373',jdecode('Taxi+Cab+Rates+%26+Fares'),jdecode(''), jdecode('%2F2373.html'), 'true',[],'',''],
	['PAGE','2394',jdecode('Contact'),jdecode(''), jdecode('%2F2394.html'), 'true',[],'',''],
	['PAGE','4801',jdecode('Taxi+Service+Area'),jdecode(''), jdecode('%2F4801.html'), 'true',[],'','']];
var siteelementCount=5;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='978';
theSitetree.keyvisualName='adresskartei.jpg';
theSitetree.fontsetId='169';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'978',
				keyvisualName: 	'adresskartei.jpg',
				fontsetId: 		'169',
				graphicsetId: 	'199',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20110904-220701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2352',
internalId:  '',
customField: '20110904-211809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20110904-212309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2394',
internalId:  '',
customField: '20101013-210654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20100802-024317'
};
webappMappings['1501']=webappMappings['1501-5752021']={
webappId:    '1501',
documentId:  '2301',
internalId:  '5752021',
customField: '1501'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2352',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2373',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2394',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2301',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CF5I';
var companyName   = 'De+Soto+Cab+Co+.+%28925%29+777-7777';
var htmlTitle	  = 'DeSoto+Cab+-Taxi+Service+%26+Airport+Transportation+Service+%28925%29+777-7777';
var metaKeywords  = 'DeSoto+cab+0f+tri+valley%2Ctaxi+service%2Canywhere+transportation%2CDeSoto+Cab+Dublin%2CDeSoto+Cab+Pleasanton%2CDUI+info%2Ctaxi+fare%2C+Danville+Taxi%2C+San+Ramon+Taxi+%2CPleasanton+Taxi%2C+Livermore+Taxi%2C+Sunol+Taxi%2C+Black+hawk+Taxi%2C+Dublin+Taxi%2C+Alamo+Taxi%2C+Taxi%2C+Cab%2C+Yellow+Cab%2C+Yellow+Cab+Co.%2C+Yellow+Cab+Company%2C+Tri-+Valley+Taxi%2C-+Tri-Valley+Yellow+Cab%2C+Yellow+Cab+in+Tri-Valley%2C+Taxis%2C+Cabs%2C+Taxicabs%2C+Taxicab%2C+Transportation%2C+Yellow+Cab+Pleasanton%2C+Yellow+Cab+Dublin%2C+Yellow+Cab+livermore%2C+Yellow+Cab+San+Ramon%2C+Yellow+Cab+Sunol%2C+Yellow+Cab+Danville%2C+Yellow+Cab+Blackhawk%2C+Yellow+Cab+Alamo%2C+livermore+Yellow+Cab%2C+pleasanton+yellow+cab%2C+dublin+yellow+cab%2C+san+ramon%2Cyellow+cab%2C+danville+yellow+cab%2C+sunol+yellow+cab%2C+alamo+yellow+cab%2C+blackhawk+yellow+cab%2CLimo%2C+Airport+Transportation%2C+Prom+Limousine%2C+Corporate+Shuttle%2C+Weddings%2C+Wine+Tours%2C+Reliability%2C+Service%2C+Pleasanton%2C+Livermore%2C+San+Ramon%2C+Best+Limo%2C+Bay+Area%2C+Alameda%2C+Tri-Valley%2CAirport+Transportation%2C+Limos%2C+Corporate+Shuttles%2C+Wine+Tours%2C+Weddings%2C+Proms+%26+Special+Events.+Leader+in+on-time+reliability+and+customer+service%2C+Oakland+Airport+California%2C+San+Francisco+Airport+California%2C+San+Jose+Airport+California%2C+Livermore+Airport+California%2C+cab+in+pleasanton%2C+taxi+in+pleasanton%2C+cab+in+san+ramon%2C+taxi+in+san+ramon%2C+yellow+cab+of+san+ramon%2C57+California+ave+Ste+P+Pleasanton+California+94566%2C+taxi%2C+cab%2C+airport+taxi%2C+airport+cab%2C+cheapest+taxi%2C+cheapest+cab%2C+reliable+and+prompt+service%2C+Pleasanton+city+of+the+California%2C+24+Hours+Service%2C+24%2F7+taxi+service%2C+need+cab%2C+need+taxi%2C+california%2C+california+shuttle%2C+cab+in+california%2C+taxi+in+california%2C+emergency+cab%2C+emergency+taxi%2C+cab+in+94588%2C+indians+taxi%2C+asian+taxi%2C+american+taxi%2C+canadian+taxi%2C+green+taxi%2C+airport%2C+hospital%2C+fastest+cab%2C+fastest+cab+in+California%2CLimo%2C+taxi%2C+and+airport+transportation+service+in+Dublin%2C+pleasanton%2C+San+Ramon%2C+and+Livermore.+We+provide+stretch+limousines+for+wine+tours%2C+birthdays%2C+wedding+or+other+special+occasions+%2CLimousine+and+airport+service%2C+livermore+taxi+service%2C+airport+ride%2C+airport+transportation%2C+wedding+service%2C+livermore+valley+wine+tour%2C+complementary+champagne%2C+6+passenger+limousine%2C+livermore+to+sfo%2C+limo+rental%2C+limo+service%2C+livermore+airport+service%2C+Tracy+airport+service%2C+Tracy+limo+rental%2C+livermore+limo+rental%2C+livermore+limo+service%2CAirport+shuttle+transportation+in+East+Bay.+Service+between%2C+Pleasanton%2C+Livermore%2C+San+Ramon%2C+and+San+Francisco+International+%28SFO%29+and+Oakland+international+%28OAK%29+Airports%2CSan+Francisco+%28SFO+Shuttle%29%2C+Oakland+%28OAK+Shuttle%29%2C+San+Jose+Airport+shuttle+%28SJC+Shuttle%29-+One+StopShuttle.+Bay+area+most+wanted+door+to+door+airport+shuttle.+Excellent+ground+transportation+service+to+and+from+San+Jose%2C+San+Francisco+and+Oakland+airports%2CSan+Francisco%2C+San+Francisco+Bay+Area%2C+San+Francisco+Airport%2C+SFO%2C+airport%2C+airport+shuttle%2C+van%2C+bus%2C+airporter%2C+bus+line%2C+scheduled+bus%2C+bus+station%2C+transit%2C+mass+transit%2C+limo%2C+limousine%2C+taxi%2C+cab%2C+taxicab%2C+public+transportation%2C+airport+transportation%2C+school+transportation%2C+private+transportation%2C+ride+share%2C+share+ride%2C+door-to-door%2C+school%2C+college%2C+university%2CTaxi+Services+in+Pleasanton%2C+CA+on+Yahoo%21+Local+Get+Ratings+%26+Reviews+on+Taxi+Services+with+Photos%2C+Maps%2C+Driving+Directions+and+more%2CPleasanton+Taxi%2C+Pleasanton%2C+CA+%3A+Reviews+and+maps+-+Yahoo%21+Local%2C+925.600.8294%2C+Airport+Shuttles%2C+Airports%2C+Services%2C+Taxicabs%2C+Transportation%2C+yellow+taxi+airport+service%26%23xA%3BOakland+taxi%26%23xA%3Bsunnyvale+taxi%26%23xA%3Btaxi+taxi%26%23xA%3Bcab+taxi%26%23xA%3Bsan+ramon+taxi%26%23xA%3Bsfo+taxi%26%23xA%3Bsacramento+airport+cab%26%23xA%3Boakland+airport+cab%26%23xA%3Bairport+cab%26%23xA%3Btaxi+services%26%23xA%3Btaxi+service%26%23xA%3Bsacramento+airport+taxi%26%23xA%3Bairport+taxi+service%26%23xA%3Bairport+taxi%26%23xA%3Bconcord+yellow+cab%26%23xA%3Byellow+cab+transportation%26%23xA%3Byellow+cab+of+oakland%26%23xA%3Byellow+cab+oakland%26%23xA%3Byellow+cab+hayward%26%23xA%3Byellow+cab+express%26%23xA%3Byellow+cab%26%23xA%3Bcab+to+san+jose+airport%26%23xA%3Btaxi+to+san+jose+airport%26%23xA%3Bsan+jose+airport+cab%26%23xA%3Bsan+jose+airport+taxi%26%23xA%3Bsan+jose+airport+shuttles%26%23xA%3Bsan+francisco+airport+shuttles%26%23xA%3Bsan+francisco+airport+taxi%26%23xA%3Bsan+francisco+airport+shuttle%26%23xA%3Bairport+service%26%23xA%3BAirport+shuttle%26%23xA%3B24+hour+taxi%26%23xA%3B24+hour+airport+service%26%23xA%3Btri+Valley+area%26%23xA%3BSan+Ramon+taxi%26%23xA%3BSan+Ramon+shuttle%26%23xA%3BDanville+taxi%26%23xA%3BDanville+shuttle%26%23xA%3BPleasanton+taxi%26%23xA%3BPleasanton+shuttle%26%23xA%3BLivermoore+taxi%26%23xA%3BLivermoore+shuttle%26%23xA%3Bvan+taxi+service%26%23xA%3Bshuttle+service%26%23xA';
var metaContents  = '%28925%29+777-7777.+DeSoto+Cab+-+%28925%29+447-4444+DeSoto+Cab-Taxi+Service+in+Pleasanton%2C+CA.Airport+Transportation+Pleasanton+CA.DeSoto+Cab-Taxi+Service+in+Dublin+CA.+Airport+Transportation+Dublin+CA.+DeSoto+Cab+-+Taxi+Service+in+San+Ramon+CA.Airport+Transportation+San+Ramon+CA.+DeSoto+Cab-Taxi+Service+in+Livermore+CA.+Airport+Transportation+Livermore+CA.+DeSoto+Cab+-+Taxi+Service+in+Danville+CA.+Airport+Transportation+Danville+CA.+Non+Medical+Transportation+Service.';
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();
};

