/* [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','5101',jdecode('Home'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','5901',jdecode('Services'),jdecode(''),'/5901.html','true',[],'',''],
	['PAGE','5985',jdecode('How+to+find+us'),jdecode(''),'/5985.html','true',[],'',''],
	['PAGE','28912',jdecode('Endurance%2C+Charterboat'),jdecode(''),'/28912.html','true',[],'',''],
	['PAGE','11601',jdecode('U-Haul'),jdecode(''),'/11601.html','true',[],'',''],
	['PAGE','24801',jdecode('Pictures+of+Our+Trucks'),jdecode(''),'/24801.html','true',[],'',''],
	['PAGE','11622',jdecode('Automotive+Pictures'),jdecode(''),'/11622.html','true',[],'',''],
	['PAGE','9101',jdecode('MotorCycle+Pictures'),jdecode(''),'/9101.html','true',[],'',''],
	['PAGE','11643',jdecode('Stuff+For+Sale'),jdecode(''),'/11643.html','true',[],'',''],
	['PAGE','5964',jdecode('Links'),jdecode(''),'/5964.html','true',[],'',''],
	['PAGE','6006',jdecode('e-mail'),jdecode(''),'/6006.html','true',[],'',''],
	['PAGE','5922',jdecode('Jobs'),jdecode(''),'/5922.html','true',[],'',''],
	['PAGE','9164',jdecode('GuestBook'),jdecode(''),'/9164.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2469';
theSitetree.keyvisualName='verkehr.jpg';
theSitetree.fontsetId='403';
theSitetree.graphicsetId='460';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2469',
				keyvisualName: 	'verkehr.jpg',
				fontsetId: 		'403',
				graphicsetId: 	'460',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100712-170019'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20100331-004838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20100624-141205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6006',
internalId:  '',
customField: '20100712-164926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5985',
internalId:  '',
customField: '20100729-132956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11622',
internalId:  '',
customField: '20100729-123545'
};
webappMappings['1002']=webappMappings['1002-9164ahw050inlefu']={
webappId:    '1002',
documentId:  '9164',
internalId:  '9164ahw050inlefu',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20100729-133615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9164',
internalId:  '',
customField: '20100729-135257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20100729-135105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20100729-133226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11643',
internalId:  '',
customField: '20100729-135013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100729-133325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28912',
internalId:  '',
customField: '20100729-121309'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLEFU';
var companyName   = 'Duffy%27s+24hr+Towing+and+Road+Service';
var htmlTitle	  = '24+Hour+Towing';
var metaKeywords  = 'emergency+towing+St+Petersburg%2C+motorcycle+towing+St+Petersburg%2C+roadside+assistance+St+Petersburg%2C+roadside+service+St+Petersburg%2C+tow+truck+St+Petersburg%2C+towing+companies+St+Petersburg%2C+towing+service+St+Petersburg%2C+towing+St+Petersburg%2C+uhaul+rentals+St+Petersburg%2C+u+haul+rentals+St+Petersburg%2C+uhaul+trailer+rental+St+Petersburg%2C+uhaul+truck+rental+St+Petersburg%2C+vehicle+towing+St+Petersburg%2C+emergency+towing+St+Petersburg+FL%2C+motorcycle+towing+St+Petersburg+FL%2C+roadside+assistance+St+Petersburg+FL%2C+roadside+service+St+Petersburg+FL%2C+tow+truck+St+Petersburg+FL%2C+towing+companies+St+Petersburg+FL%2C+towing+service+St+Petersburg+FL%2C+towing+St+Petersburg+FL%2C+uhaul+rentals+St+Petersburg+FL%2C+u-haul+rentals+St+Petersburg+FL%2C+uhaul+trailer+rental+St+Petersburg+FL%2C+uhaul+dealer%2C+uhaul+truck+rental+St+Petersburg+FL%2C+vehicle+towing+St+Petersburg+FL%2C+motorcycle%2C+chopper%2C+scooter%2C+auto+repair%2C+Tire%2C+Garage%2C+winch%2C+winching%2C+lockout%2C+florida%2C++Dealer%2C+junk%2C+salvage%2C+google%2C+google+maps%2C+mobile+google%2C+google+mobile%2C+bing+mobile%2C+local+serch%2C+bing%2C+merchant+circle%2C+yellow+pages%2C+towing+company%2C+tow+truck%2C+towtruck%2C+flat+bed%2C+flatbed%2C+roll+back%2C+rollback%2C+mobile+phone%2C+cell+phone%2C+blackberry%2C+blackberry+maps%2C+blackberry+serch%2C+i+phone%2C+smart+phone%2C+pinellas+park+fl%2C+pinellas+county+fl%2C+33701%2C+33704%2C+33707%2C+33708%2C+33709%2C+33710%2C+33712%2C+33713%2C+33714%2C+33717%2C+33777%2C+33781%2C+33782%2C+facebook%2C+bikerornot%2C+Endurance%2C+Charterboat%2C+help+wanted%2C+jobs%2C+marine%2C+salvage%2C+scrap%2C+James+Duffy%2C+Facebook%2C+MySpace%2C+bikerorknot%2C+bikerspost%2C+fox+news%2C++google-site-verification%3A+google97b6010cc977f0f0.html%2C+%3Cmeta+name%3D%22google-site-verification%22+content%3D%22CLp_GmaHSHCJufD2WAN_Wd07kjdKYIXKxdLUW3rvd5s%22+%2F%3E';
var metaContents  = 'We+are+a+24+hour+Automotive+and+Motorcycle+Towing+Service+Covering+Pinellas+County%2C+Florida+Our+Company+was+Established+in+1997+With+Fast+Service+at+a+fair+Price.+We+are+Fully+Insured%2C+Radio+Dispatched%2C+We+Offer+Impound+Service+and+we+Buy+Junk+Cars%2C+We+have+a+Specialized+Motorcycle+Tow+Truck%2C+%3Cmeta+name%3D%22google-site-verification%22+content%3D%22CLp_GmaHSHCJufD2WAN_Wd07kjdKYIXKxdLUW3rvd5s%22+%2F%3E';
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();
};
