/* [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(''), jdecode('%2F5101.html'), 'true',[],'',''],
	['PAGE','5152',jdecode('Drive+Golf+Cars'),jdecode(''), jdecode('%2F5152%2Findex.html'), 'true',[ 
		['PAGE','12301',jdecode('Drive+Gas+Specs.'),jdecode(''), jdecode('%2F5152%2F12301.html'), 'false',[],'',''],
		['PAGE','12322',jdecode('Drive+Electric+Specs.'),jdecode(''), jdecode('%2F5152%2F12322.html'), 'false',[],'',''],
		['PAGE','18016',jdecode('Drive+Colors'),jdecode(''), jdecode('%2F5152%2F18016.html'), 'false',[],'','']
	],'',''],
	['PAGE','87171',jdecode('Year+End+Clearance+Sale'),jdecode(''), jdecode('%2F87171.html'), 'true',[],'',''],
	['PAGE','5173',jdecode('Utility+Cars'),jdecode(''), jdecode('%2F5173%2Findex.html'), 'true',[ 
		['PAGE','14716',jdecode('Adventurer+One+Specs.'),jdecode(''), jdecode('%2F5173%2F14716.html'), 'false',[],'',''],
		['PAGE','19316',jdecode('Medium+Duty+I+Electric+Specs'),jdecode(''), jdecode('%2F5173%2F19316.html'), 'false',[],'',''],
		['PAGE','19337',jdecode('Medium+Duty+I+Gas+Specs'),jdecode(''), jdecode('%2F5173%2F19337.html'), 'false',[],'',''],
		['PAGE','19916',jdecode('Medium+Duty+II+Gas+Specs'),jdecode(''), jdecode('%2F5173%2F19916.html'), 'false',[],'','']
	],'',''],
	['PAGE','50716',jdecode('Cruise+Car'),jdecode(''), jdecode('%2F50716.html'), 'false',[],'',''],
	['PAGE','5194',jdecode('People+Movers'),jdecode(''), jdecode('%2F5194.html'), 'true',[],'',''],
	['PAGE','21916',jdecode('Reconditioned+Cars'),jdecode(''), jdecode('%2F21916.html'), 'true',[],'',''],
	['PAGE','80271',jdecode('Street+Legal+Cars'),jdecode(''), jdecode('%2F80271.html'), 'true',[],'',''],
	['PAGE','5236',jdecode('Used+Cars'),jdecode(''), jdecode('%2F5236.html'), 'true',[],'',''],
	['PAGE','5215',jdecode('Rentals'),jdecode(''), jdecode('%2F5215.html'), 'true',[],'',''],
	['PAGE','23616',jdecode('Specialty+Vehicles'),jdecode(''), jdecode('%2F23616.html'), 'true',[],'',''],
	['PAGE','68516',jdecode('Parts+and+Accesories'),jdecode(''), jdecode('%2F68516.html'), 'true',[],'',''],
	['PAGE','74638',jdecode('Monthly+Specials'),jdecode(''), jdecode('%2F74638.html'), 'true',[],'',''],
	['PAGE','24116',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F24116.html'), 'true',[],'',''],
	['PAGE','85471',jdecode('Important+Links'),jdecode(''), jdecode('%2F85471.html'), 'true',[],'',''],
	['PAGE','90971',jdecode('Feedback'),jdecode(''), jdecode('%2F90971.html'), 'true',[],'',''],
	['PAGE','16616',jdecode('Contact+Us'),jdecode(''), jdecode('%2F16616.html'), 'true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20111104-151320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20101105-143419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5173',
internalId:  '',
customField: '20101105-144053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5194',
internalId:  '',
customField: '20101105-145458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5215',
internalId:  '',
customField: '20101105-145833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5236',
internalId:  '',
customField: '20111020-133547'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20081222-115113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12322',
internalId:  '',
customField: '20081222-115152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14716',
internalId:  '',
customField: '20081223-100355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16616',
internalId:  '',
customField: '20111020-144644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18016',
internalId:  '',
customField: '20081219-133859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19316',
internalId:  '',
customField: '20081224-094733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19337',
internalId:  '',
customField: '20081224-094837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19916',
internalId:  '',
customField: '20081224-094936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21916',
internalId:  '',
customField: '20111020-133631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24116',
internalId:  '',
customField: '20110815-091814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23616',
internalId:  '',
customField: '20101105-150613'
};
webappMappings['7060']=webappMappings['7060-384c0d200f3b355d03cd099c4307f6dc']={
webappId:    '7060',
documentId:  '24116',
internalId:  '384c0d200f3b355d03cd099c4307f6dc',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-cb611311f86c05cd65373c1741ec650a']={
webappId:    '7060',
documentId:  '18016',
internalId:  'cb611311f86c05cd65373c1741ec650a',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50716',
internalId:  '',
customField: '20100426-101806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68516',
internalId:  '',
customField: '20110204-122646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80271',
internalId:  '',
customField: '20110815-083456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74638',
internalId:  '',
customField: '20111020-132747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85471',
internalId:  '',
customField: '20110607-142650'
};
webappMappings['7060']=webappMappings['7060-1dc3a87238d4304e25415cadd42f1692']={
webappId:    '7060',
documentId:  '87171',
internalId:  '1dc3a87238d4304e25415cadd42f1692',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87171',
internalId:  '',
customField: '20111020-125854'
};
webappMappings['1003']=webappMappings['1003-ahw050invekp1336f9642e7']={
webappId:    '1003',
documentId:  '90971',
internalId:  'ahw050invekp1336f9642e7',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90971',
internalId:  '',
customField: '20111104-142012'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INVEKP';
var companyName   = '%28407%29+426-9727';
var htmlTitle	  = 'Orlando+Golf+Cars%2C+Quality+Sales%2C+Rentals%2C+Service%2C+and+Parts+in+Central+Florida';
var metaKeywords  = 'Orlando%2C+Yamaha+Golf+Car%2C+Utility+Car%2C+Rental%2C+Golf+car+parts%2C+Cruise+Car%2C+Tomberlin%2C+Lsv%2C+Nev%2C+Neighborhood+Electric+Vehicle%2C+Low+Speen+Vehicle%2C+Street+Legal+Golf+Car%2C+Utility%2C+Golf+Car+Parts+and+Accessories%2C+';
var metaContents  = 'Orlandos+AUTHORIZED+Yamaha+Cruise+Car+and+Tomberlin+golf+and+utility+car+dealer.+Supplier+of++new%2C+used%2C+reconditioned+and+rental+carts+along+with+most+golf+car+parts.';
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();
};

