/* [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','8201',jdecode('Contacting+Us'),jdecode(''),'/8201.html','true',[],''],
	['PAGE','2501',jdecode('About+us'),jdecode(''),'/2501.html','true',[],''],
	['PAGE','28001',jdecode('Crash+Information'),jdecode(''),'/28001.html','true',[],''],
	['PAGE','72874',jdecode('Police+%26+Crashes'),jdecode(''),'/72874.html','true',[],''],
	['PAGE','32701',jdecode('Prevent+DUI+Tows'),jdecode(''),'/32701.html','true',[],''],
	['PAGE','77039',jdecode('Tow-a-way+Question'),jdecode(''),'/77039.html','true',[],''],
	['PAGE','22901',jdecode('Warnings%3ARoam+Towing'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','74004',jdecode('Handicap+Parking+Tows'),jdecode(''),'/74004.html','true',[],''],
	['PAGE','6443',jdecode('Your+Legal+Rights'),jdecode(''),'/6443.html','true',[],''],
	['PAGE','77048',jdecode('Hit+%26+Run+%3F'),jdecode(''),'/77048.html','true',[],''],
	['PAGE','2552',jdecode('Legal+Towers+Will+Have'),jdecode(''),'/2552.html','true',[],''],
	['PAGE','76824',jdecode('Court+Impound+'),jdecode(''),'/76824.html','true',[],''],
	['PAGE','74381',jdecode('Towing+Ordinance'),jdecode(''),'/74381.html','true',[],''],
	['PAGE','58901',jdecode('Recovery+Pictures+'),jdecode(''),'/58901.html','true',[],''],
	['PAGE','75863',jdecode('AWARDS'),jdecode(''),'/75863/index.html','true',[ 
		['PAGE','73469',jdecode('FSU+Senate+Letter'),jdecode(''),'/75863/73469.html','true',[],''],
		['PAGE','66801',jdecode('08%26%23x27%3B%2F+09%26%23x27%3B+FITS+1st+Place'),jdecode(''),'/75863/66801.html','true',[],''],
		['PAGE','76446',jdecode('Non-towing+awards'),jdecode(''),'/75863/76446.html','true',[],'']
	],''],
	['PAGE','6485',jdecode('Safety+First'),jdecode(''),'/6485.html','true',[],''],
	['PAGE','26101',jdecode('Body+Shops+We+Trust'),jdecode(''),'/26101.html','true',[],''],
	['PAGE','72634',jdecode('Sign+Our+Guestbook'),jdecode(''),'/72634.html','true',[],''],
	['PAGE','72633',jdecode('Read+Guestbook'),jdecode(''),'/72633.html','false',[],''],
	['PAGE','62401',jdecode('Police+Dispatchers++'),jdecode(''),'/62401.html','true',[],''],
	['PAGE','76494',jdecode('Tour+For+Our+Fallen'),jdecode(''),'/76494.html','true',[],''],
	['PAGE','49001',jdecode('Releasing+Vehicles'),jdecode(''),'/49001/index.html','true',[ 
		['PAGE','75881',jdecode('Release+Forms'),jdecode(''),'/49001/75881.html','true',[],''],
		['PAGE','77057',jdecode('Storage+Lot'),jdecode(''),'/49001/77057.html','true',[],'']
	],''],
	['PAGE','72724',jdecode('F.I.T.R.A'),jdecode(''),'/72724.html','true',[],''],
	['PAGE','75872',jdecode('Interesting+links'),jdecode(''),'/75872.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='409142';
theSitetree.keyvisualId='7162';
theSitetree.keyvisualName='kv_7162.jpg';
theSitetree.fontsetId='16412';
theSitetree.graphicsetId='12135';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Capri',
				paletteFamily: 	'409142',
				keyvisualId: 	'7162',
				keyvisualName: 	'kv_7162.jpg',
				fontsetId: 		'16412',
				graphicsetId: 	'12135',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75863',
internalId:  '',
customField: '20090524-231455'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '8201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '8201',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77057',
internalId:  '',
customField: '20090524-185955'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '77057',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['1501']=webappMappings['1501-737787']={
webappId:    '1501',
documentId:  '8201',
internalId:  '737787',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-59b8c4df740ab916419c4e9d9c286bc8']={
webappId:    '7060',
documentId:  '58901',
internalId:  '59b8c4df740ab916419c4e9d9c286bc8',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-72634ahw050in23x3']={
webappId:    '1002',
documentId:  '72634',
internalId:  '72634ahw050in23x3',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76494',
internalId:  '',
customField: '20090414-181639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20090414-183505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72724',
internalId:  '',
customField: '20081217-202613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75881',
internalId:  '',
customField: '20090524-204914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20090524-213430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6485',
internalId:  '',
customField: '20090527-025256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20090524-220844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72874',
internalId:  '',
customField: '20081217-220325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20080908-222000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73469',
internalId:  '',
customField: '20080816-034635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74381',
internalId:  '',
customField: '20090203-220951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20080811-044309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77039',
internalId:  '',
customField: '20090524-221717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77048',
internalId:  '',
customField: '20090524-224558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20080723-222651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2552',
internalId:  '',
customField: '20090524-224724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20090524-222423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76446',
internalId:  '',
customField: '20090114-020923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75872',
internalId:  '',
customField: '20090414-182134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74004',
internalId:  '',
customField: '20090524-223828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72634',
internalId:  '',
customField: '20081217-220513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72633',
internalId:  '',
customField: '20080808-115331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62401',
internalId:  '',
customField: '20081217-204251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20080814-151901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20080816-034823'
};
webappMappings['7008']=webappMappings['7008-3428']={
webappId:    '7008',
documentId:  '77039',
internalId:  '3428',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-ahw050in23x31217510fb96']={
webappId:    '1003',
documentId:  '77048',
internalId:  'ahw050in23x31217510fb96',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76824',
internalId:  '',
customField: '20090512-111759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20070614-231244'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN23X3';
var companyName   = 'DANNY+B%27s+Towing%2C+Recovery+%26+Roadside+Service';
var htmlTitle	  = 'Tallahassee+Towing%2C+towing+LAWS%2C+Roadside+service%2C+DUI+Impound%2C+LEGAL+towing+information';
var metaKeywords  = 'TOWING%2C+ROADSIDE+SERVICE%2C+TOW-A-WAY+LAWS%2C+24+hour+towing%2C+towing+Tallahassee%2C+DUI+Prevention+tows%2C+DUI+IMPOUND%2C+CAR+BOOT%2C+FHP%2C+TPD%2C+LCSO%2C+towing+information%2C+MOTORCYCLE+TOWING%2C+insurance+towing%2C+WINCHING%2C+wreck+towing%2C+towing+awards%2C+';
var metaContents  = 'Insurance+ROADSIDE+SERVICE%2CTOWING%2CTALLAHASSEE%2C+ROADSIDE+SERVICE%2C+24+hour+WRECKER+SERVICE%2C+towing+laws%2C+DUI+Booting%2C+Court+Impounds%2C+unlocks%2C+winch+out%2C+wreck+towing%2C+auto+crash+towing%2C+insurance+tows';
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();
};
