/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','6208',jdecode('Registration'),jdecode(''),'/6208.html','true',[],''],
	['PAGE','1207',jdecode('Event+Calendar'),jdecode(''),'/1207.html','true',[],''],
	['PAGE','30501',jdecode('2008+Photos'),jdecode(''),'/30501/index.html','true',[ 
		['PAGE','26401',jdecode('Album+1+Pics'),jdecode(''),'/30501/26401.html','true',[],''],
		['PAGE','30522',jdecode('Album+2+Pics'),jdecode(''),'/30501/30522.html','true',[],''],
		['PAGE','30543',jdecode('Album+3+Pics'),jdecode(''),'/30501/30543.html','true',[],'']
	],''],
	['PAGE','707',jdecode('Activities'),jdecode(''),'/707/index.html','true',[ 
		['PAGE','6656',jdecode('Kick-off+Party'),jdecode(''),'/707/6656.html','true',[],''],
		['PAGE','6090',jdecode('Bike+Games'),jdecode(''),'/707/6090.html','true',[],''],
		['PAGE','1674',jdecode('What%26%23x27%3Bs+a+Poker+Run%3F'),jdecode(''),'/707/1674.html','true',[],'']
	],''],
	['PAGE','5899',jdecode('Live+Music'),jdecode(''),'/5899.html','true',[],''],
	['PAGE','1590',jdecode('Poker+Run'),jdecode(''),'/1590.html','true',[],''],
	['PAGE','16501',jdecode('Motorcycles'),jdecode(''),'/16501.html','true',[],''],
	['PAGE','434',jdecode('Camping'),jdecode(''),'/434.html','true',[],''],
	['PAGE','7313',jdecode('Lodging'),jdecode(''),'/7313.html','true',[],''],
	['PAGE','7131',jdecode('Sponsors'),jdecode(''),'/7131.html','true',[],''],
	['PAGE','374',jdecode('Vendors'),jdecode(''),'/374.html','true',[],''],
	['PAGE','53',jdecode('Contact+Us'),jdecode(''),'/53.html','true',[],''],
	['PAGE','1033',jdecode('Related+Sites'),jdecode(''),'/1033.html','true',[],''],
	['PAGE','6569',jdecode('Directions'),jdecode(''),'/6569.html','true',[],''],
	['PAGE','7653',jdecode('FAQ'),jdecode(''),'/7653.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='BB5B23';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10564';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Circulation',
				paletteFamily: 	'BB5B23',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10564',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-134325']={
webappId:    '1501',
documentId:  '32',
internalId:  '134325',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6569',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20091019-100609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6208',
internalId:  '',
customField: '20091006-224823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1207',
internalId:  '',
customField: '20090923-215249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '707',
internalId:  '',
customField: '20090922-090828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6656',
internalId:  '',
customField: '20090923-215351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6090',
internalId:  '',
customField: '20080110-144808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5899',
internalId:  '',
customField: '20090708-220548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20090814-183333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '434',
internalId:  '',
customField: '20090922-093319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7313',
internalId:  '',
customField: '20080814-142833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7131',
internalId:  '',
customField: '20090922-093509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '374',
internalId:  '',
customField: '20091015-200332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7653',
internalId:  '',
customField: '20081125-093711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1674',
internalId:  '',
customField: '20080607-033759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1590',
internalId:  '',
customField: '20091019-101436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20080108-050218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1033',
internalId:  '',
customField: '20090922-093808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6569',
internalId:  '',
customField: '20081004-133538'
};
webappMappings['7060']=webappMappings['7060-997c648037d2fd8a584efdb881f2575e']={
webappId:    '7060',
documentId:  '26401',
internalId:  '997c648037d2fd8a584efdb881f2575e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20090125-225354'
};
webappMappings['7060']=webappMappings['7060-92a21e66223dfbc4ca567ed78e5fc777']={
webappId:    '7060',
documentId:  '30522',
internalId:  '92a21e66223dfbc4ca567ed78e5fc777',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-852da2fd918f624f9b5b93a2d42e7114']={
webappId:    '7060',
documentId:  '30543',
internalId:  '852da2fd918f624f9b5b93a2d42e7114',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20090125-225518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30522',
internalId:  '',
customField: '20090125-225229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30543',
internalId:  '',
customField: '20090125-225300'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEDC';
var companyName   = 'NEW+ORLEANS+BIKEFEST';
var htmlTitle	  = 'New+Orleans+Bikefest';
var metaKeywords  = 'New+Orleans%2C+motorcycle%2C+motorcycle+rally%2C+music+festival%2C+Foghat%2C+Zebra%2C+David+Allan+Coe%2C+David+Allen+Coe%2C+Bikefest%2C+New+Orelans+Bikefest%2C+Steel+Pony%2C+Steel+Ponies%2C+Jimmie+Van+Zant%2C+Jimmy+Van+Zant%2C+Bike+fest%2C+Louisiana';
var metaContents  = 'New+Orleans+motorcyle+rally+and+music+festival';
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();
};
