/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','22106',jdecode('Special+events'),jdecode(''),'/22106.html','true',[],'',''],
	['PAGE','5801',jdecode('Sales'),jdecode(''),'/5801/index.html','true',[ 
		['PAGE','5822',jdecode('Sound'),jdecode(''),'/5801/5822.html','true',[],'',''],
		['PAGE','5843',jdecode('Lights'),jdecode(''),'/5801/5843.html','true',[],'',''],
		['PAGE','5864',jdecode('Video'),jdecode(''),'/5801/5864.html','true',[],'',''],
		['PAGE','5885',jdecode('Accesories'),jdecode(''),'/5801/5885.html','true',[],'',''],
		['PAGE','37457',jdecode('Ebay+Sales'),jdecode(''),'/5801/37457.html','true',[],'','']
	],'',''],
	['PAGE','10301',jdecode('Rentals'),jdecode(''),'/10301/index.html','true',[ 
		['PAGE','27501',jdecode('Audio'),jdecode(''),'/10301/27501.html','true',[],'',''],
		['PAGE','27522',jdecode('Lighting'),jdecode(''),'/10301/27522.html','true',[],'',''],
		['PAGE','27543',jdecode('Staging'),jdecode(''),'/10301/27543.html','true',[],'',''],
		['PAGE','27564',jdecode('Video'),jdecode(''),'/10301/27564.html','true',[],'','']
	],'',''],
	['PAGE','10322',jdecode('Service'),jdecode(''),'/10322.html','true',[],'',''],
	['PAGE','22001',jdecode('About+us'),jdecode(''),'/22001/index.html','true',[ 
		['PAGE','22022',jdecode('The+team'),jdecode(''),'/22001/22022.html','true',[],'','']
	],'',''],
	['PAGE','37400',jdecode('How+to+find+us'),jdecode(''),'/37400.html','true',[],'',''],
	['PAGE','37409',jdecode('Jobs'),jdecode(''),'/37409.html','true',[],'',''],
	['PAGE','22043',jdecode('Contact'),jdecode(''),'/22043.html','true',[],'',''],
	['PAGE','36106',jdecode('Guestbook'),jdecode(''),'/36106/index.html','true',[ 
		['PAGE','36101',jdecode('Read+Guestbook'),jdecode(''),'/36106/36101.html','false',[],'','']
	],'',''],
	['PAGE','36883',jdecode('Random+Pics'),jdecode(''),'/36883.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20101213-152433'
};
webappMappings['1002']=webappMappings['1002-36106AHW050INX251']={
webappId:    '1002',
documentId:  '36106',
internalId:  '36106AHW050INX251',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-d0958c3b4024c88bfd85c34cf38793aa']={
webappId:    '7060',
documentId:  '36883',
internalId:  'd0958c3b4024c88bfd85c34cf38793aa',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37409',
internalId:  '',
customField: '20090113-031401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37400',
internalId:  '',
customField: '20090113-031810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20090706-151347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20101213-161906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27522',
internalId:  '',
customField: '20101213-161001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20080809-231213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37457',
internalId:  '',
customField: '20090218-021718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27543',
internalId:  '',
customField: '20090113-035426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36883',
internalId:  '',
customField: '20080711-173312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22106',
internalId:  '',
customField: '20090113-042605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20090218-021419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20071201-041233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5864',
internalId:  '',
customField: '20071130-063332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5885',
internalId:  '',
customField: '20071130-063332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27564',
internalId:  '',
customField: '20101213-161304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10322',
internalId:  '',
customField: '20080809-013734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20101213-152613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22022',
internalId:  '',
customField: '20080604-231258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22043',
internalId:  '',
customField: '20080809-231023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36106',
internalId:  '',
customField: '20080605-043830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20080605-043830'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INX251';
var companyName   = '';
var htmlTitle	  = 'Bandstand+Music';
var metaKeywords  = 'Sound+Equipment%2C+Stage+Rental%2C+Stage+Rental+Tacoma%2C+Stage+Rental+Tacoma%2C+PA+Rental%2C+Sound+System%2C+AV+Rentals%2C+Laird+Gonter%2C+Vashon+Audio%2C+Vashon+AV%2C+Tacoma+AV%2C+Audio+Technician%2C+Audio+Jobs%2C+Staging+Rental%2C+Lighting+Rental%2C+Production%2C+Concert+Sound%2C+Concert+Stage%2C+Church+Sound%2C+Sound++Light%2C+Video+Rental%2C+Video+Sales';
var metaContents  = 'Bandstand+Music+is+locally+owned+and+operated.++Since+1964+the+best+in+production+services.++We+serve+the+Tacoma+%2F+Seattle+area+with+production+services+and+Audio%2C+Video%2C+Lighting%2C+and+Staging.++We+can+either+support+your+event+with+our+equipment+or+handle+everything+from+booking+entertainment+and+setting+the+whole+thing+up.++We+have+been+at+this+for+over+45+years+and+can+bring+you+the+best+in+the+business.';
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();
};

