/* [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','3501',jdecode('Home'),jdecode(''),'/3501.html','true',[],'',''],
	['PAGE','3573',jdecode('Band+Members'),jdecode(''),'/3573.html','true',[],'',''],
	['PAGE','3552',jdecode('Calendar'),jdecode(''),'/3552.html','true',[],'',''],
	['PAGE','10811',jdecode('Song+List'),jdecode(''),'/10811.html','true',[],'',''],
	['PAGE','10832',jdecode('Music%2FLinks'),jdecode(''),'/10832.html','true',[],'',''],
	['PAGE','3615',jdecode('Photos'),jdecode(''),'/3615.html','true',[],'',''],
	['PAGE','4222',jdecode('Reviews'),jdecode(''),'/4222.html','true',[],'',''],
	['PAGE','21111',jdecode('Past+Shows'),jdecode(''),'/21111.html','true',[],'',''],
	['PAGE','3636',jdecode('Contact+Us'),jdecode(''),'/3636.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='C239A1';
theSitetree.keyvisualId='8817';
theSitetree.keyvisualName='KV_03.swf';
theSitetree.fontsetId='17181';
theSitetree.graphicsetId='12652';
theSitetree.contentColor='FFBEEF';
theSitetree.contentBGColor='262626';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Holz',
				paletteFamily: 	'C239A1',
				keyvisualId: 	'8817',
				keyvisualName: 	'KV_03.swf',
				fontsetId: 		'17181',
				graphicsetId: 	'12652',
				contentColor: 	'FFBEEF',
				contentBGColor: '262626',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'C039A3',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-14747']={
webappId:    '7008',
documentId:  '3636',
internalId:  '14747',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20100329-024120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3615',
internalId:  '',
customField: '20100329-204551'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3573',
internalId:  '',
customField: '20100314-200232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3552',
internalId:  '',
customField: '20100605-160146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10832',
internalId:  '',
customField: '20100329-202918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10811',
internalId:  '',
customField: '20100504-030248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20100328-031741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21111',
internalId:  '',
customField: '20100306-000900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3636',
internalId:  '',
customField: '20100329-025528'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CDFI';
var companyName   = 'The+Majestics+Rhythm+Revue';
var htmlTitle	  = 'Majestics+Rhythm+Revue';
var metaKeywords  = 'Majestics+Rhythm+Revue%2C+Majestics%2C+Rhythm%2C+Revue%2C+majestics%2C+rhythm%2C+revue%2C+band%2C+wedding%2C+reception%2C+nightclub%2C+music%2C+guitar%2C+saxophone%2C+singer%2C+chick+singer%2C+female+vocalist%2C+shows%2C+sound%2C+jazz%2C+blues%2C+rock%2C+pop%2C+originals%2C+covers%2C+original%2C+cover%2C+harmony%2C+harmonies%2C+drums%2C+bass%2C+violin%2C+Rick+McNeely%2C+Courtney+Smith%2C+Shannon+O%27Shea%2C+Jordan+Tucker%2C+Jazzhaus%2C+Kansas%2C+Kansas+City%2C+Missouri%2C+Lawrence%2C+Johnson+County%2C+Douglas+County%2C+Wichita%2C+piano%2C+keyboards%2C+keys%2C+alternative%2C+pop-rock%2C+alt-pop%2C+pretty%2C+party%2C+fun%2C+dance%2C+boogie%2C+soul%2C+sing%2C+shake%2C+date%2C+dates%2C+gig%2C+stage%2C+PA%2C+monitor%2C+song+list%2C+recordings%2C+studio%2C+festival%2C+festivals%2C+theater%2C+roadhouse%2C+lounge%2C+Pat+McCarty%2C+Robert+Kerley%2C+Richard+Walker%2C+loud%2C+soft%2C+funk%2C+R%26B';
var metaContents  = 'A+Dance+Party+Band+Based+in+Lawrence%2C+KS%2C+Skilled+At+Live+Music+Club+Dates+and+Private+Parties.';
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();
};
