/* [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','157923',jdecode('Home'),jdecode(''), jdecode('%2F157923.html'), 'true',[],'',''],
	['PAGE','17201',jdecode('Overview'),jdecode(''), jdecode('%2F17201.html'), 'true',[],'',''],
	['PAGE','138823',jdecode('Sports+Cages'),jdecode(''), jdecode('%2F138823.html'), 'true',[],'',''],
	['PAGE','165344',jdecode('Racks%2FBaskets'),jdecode(''), jdecode('%2F165344.html'), 'true',[],'',''],
	['PAGE','165365',jdecode('Brush+Guards'),jdecode(''), jdecode('%2F165365.html'), 'true',[],'',''],
	['PAGE','165323',jdecode('Lift+Kits'),jdecode(''), jdecode('%2F165323.html'), 'true',[],'',''],
	['PAGE','165386',jdecode('Rear+Seat+Kits'),jdecode(''), jdecode('%2F165386.html'), 'true',[],'',''],
	['PAGE','117912',jdecode('Hunting+Buggies'),jdecode(''), jdecode('%2F117912.html'), 'true',[],'',''],
	['PAGE','55312',jdecode('Welding%2FTube+Bending'),jdecode(''), jdecode('%2F55312.html'), 'true',[],'',''],
	['PAGE','57012',jdecode('Stretch+Golf+Carts'),jdecode(''), jdecode('%2F57012.html'), 'true',[],'',''],
	['PAGE','107212',jdecode('Stretch+Collage'),jdecode(''), jdecode('%2F107212.html'), 'true',[],'',''],
	['PAGE','160523',jdecode('Delivery%2FFreight'),jdecode(''), jdecode('%2F160523.html'), 'true',[],'',''],
	['PAGE','151823',jdecode('Industrial+Applications'),jdecode(''), jdecode('%2F151823.html'), 'true',[],'',''],
	['PAGE','22622',jdecode('Electric+Car+Conversion'),jdecode(''), jdecode('%2F22622%2Findex.html'), 'true',[ 
		['PAGE','17252',jdecode('96+VOLT+HONDA+WAGON'),jdecode(''), jdecode('%2F22622%2F17252.html'), 'true',[],'','']
	],'',''],
	['PAGE','47312',jdecode('Motorized+Bicycles'),jdecode(''), jdecode('%2F47312%2Findex.html'), 'true',[ 
		['PAGE','46812',jdecode('80cc+Schwinn+Cruiser+Bike'),jdecode(''), jdecode('%2F47312%2F46812.html'), 'true',[],'',''],
		['PAGE','50333',jdecode('49cc+Schwinn+Cruiser+'),jdecode(''), jdecode('%2F47312%2F50333.html'), 'true',[],'','']
	],'',''],
	['PAGE','49012',jdecode('Customer+Photo+Gallery'),jdecode(''), jdecode('%2F49012.html'), 'true',[],'',''],
	['PAGE','17294',jdecode('General+Info'),jdecode(''), jdecode('%2F17294.html'), 'true',[],'',''],
	['PAGE','17378',jdecode('Contact+us'),jdecode(''), jdecode('%2F17378.html'), 'true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Bound';
theSitetree.paletteFamily='4D5022';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10833';
theSitetree.graphicsetId='11296';
theSitetree.contentColor='1D1F06';
theSitetree.contentBGColor='787F42';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'fatcow',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bound',
				paletteFamily: 	'4D5022',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10833',
				graphicsetId: 	'11296',
				contentColor: 	'1D1F06',
				contentBGColor: '787F42',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20120220-190017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17252',
internalId:  '',
customField: '20090420-012725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165344',
internalId:  '',
customField: '20120222-135841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17294',
internalId:  '',
customField: '20111227-002732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17378',
internalId:  '',
customField: '20120220-190144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117912',
internalId:  '',
customField: '20111220-094421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46812',
internalId:  '',
customField: '20090508-232611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22622',
internalId:  '',
customField: '20090421-110132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160523',
internalId:  '',
customField: '20120217-192043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165323',
internalId:  '',
customField: '20120201-202052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138823',
internalId:  '',
customField: '20120219-180911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151823',
internalId:  '',
customField: '20111029-223403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157923',
internalId:  '',
customField: '20120222-141130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107212',
internalId:  '',
customField: '20110922-200921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165386',
internalId:  '',
customField: '20120220-195558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47312',
internalId:  '',
customField: '20090514-195510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49012',
internalId:  '',
customField: '20120217-205517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50333',
internalId:  '',
customField: '20090514-195809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165365',
internalId:  '',
customField: '20120220-195658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55312',
internalId:  '',
customField: '20120201-202735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57012',
internalId:  '',
customField: '20111201-224419'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEZY7';
var companyName   = 'OUTBACK+CUSTOM+FABRICATORS';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};

