/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','27801',jdecode('News'),jdecode(''),'/27801.html','true',[],'',''],
	['PAGE','13401',jdecode('The+Band'),jdecode(''),'/13401/index.html','true',[ 
		['PAGE','23622',jdecode('Randy'),jdecode(''),'/13401/23622.html','true',[],'',''],
		['PAGE','23601',jdecode('Mike'),jdecode(''),'/13401/23601.html','true',[],'',''],
		['PAGE','23664',jdecode('Dave'),jdecode(''),'/13401/23664.html','true',[],'',''],
		['PAGE','23643',jdecode('Crushr'),jdecode(''),'/13401/23643.html','true',[],'',''],
		['PAGE','23685',jdecode('Martin'),jdecode(''),'/13401/23685.html','true',[],'','']
	],'',''],
	['PAGE','5922',jdecode('Gig+Schedule'),jdecode(''),'/5922/index.html','true',[ 
		['PAGE','18701',jdecode('Past+Gigs'),jdecode(''),'/5922/18701.html','true',[],'','']
	],'',''],
	['PAGE','72031',jdecode('Party%2FCorporate'),jdecode(''),'/72031.html','true',[],'',''],
	['PAGE','56101',jdecode('Merchandise'),jdecode(''),'/56101.html','true',[],'',''],
	['PAGE','73372',jdecode('Press+Kit'),jdecode(''),'/73372.html','true',[],'',''],
	['PAGE','41701',jdecode('Photo+Gallery'),jdecode(''),'/41701.html','true',[],'',''],
	['PAGE','20001',jdecode('Song+List'),jdecode(''),'/20001.html','true',[],'',''],
	['PAGE','14306',jdecode('Guestbook'),jdecode(''),'/14306/index.html','true',[ 
		['PAGE','14301',jdecode('Read+Guestbook'),jdecode(''),'/14306/14301.html','false',[],'','']
	],'',''],
	['PAGE','5964',jdecode('Contact+Us'),jdecode(''),'/5964/index.html','true',[ 
		['PAGE','27401',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/5964/27401.html','false',[],'','']
	],'',''],
	['PAGE','5943',jdecode('Credits%2FLinks'),jdecode(''),'/5943.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='FC2323';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10561';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'FC2323',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10561',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				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:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100811-123916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20091207-190720'
};
webappMappings['1002']=webappMappings['1002-14306AHW050INXELS']={
webappId:    '1002',
documentId:  '14306',
internalId:  '14306AHW050INXELS',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-bec7cf606ce6bb36e6a3748af5ff3264']={
webappId:    '7060',
documentId:  '13401',
internalId:  'bec7cf606ce6bb36e6a3748af5ff3264',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20090103-210644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23622',
internalId:  '',
customField: '20090103-210304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20090103-210408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23664',
internalId:  '',
customField: '20090103-210616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23643',
internalId:  '',
customField: '20090103-210705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23685',
internalId:  '',
customField: '20090103-210842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20100723-214503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20100723-214542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20090103-211105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73372',
internalId:  '',
customField: '20090502-010815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41701',
internalId:  '',
customField: '20090103-211122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20090612-004031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14306',
internalId:  '',
customField: '20090103-211158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20070402-165012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20090103-211211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20070425-150451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20091207-172743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72031',
internalId:  '',
customField: '20090310-225806'
};
webappMappings['7008']=webappMappings['7008-8238']={
webappId:    '7008',
documentId:  '5964',
internalId:  '8238',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXELS';
var companyName   = '';
var htmlTitle	  = 'Wall+Of+Shadows';
var metaKeywords  = 'Wall+of+Shadows+WoS+WOS+wos+Live+Rock+and+Roll+Music+Concert+Show+Corporate+Private+Pool+Party+Original+Cover+Bar+Club+Nightclub+MySpace+Ning+Facebook+Guitar+Lead+Bass+Drums+Percussion+Sequencing+Sequencer+Electronic+Acoustic+Keyboard+Keys+Dance+Dancing+Drink+Drinking+Facebook+Face+Book+Xanga+Hot+Women+Ladies+Girls+Chicks+book+us+for+your+event+New+Original+CD+In+the+beginning';
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();
};
