/* [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','7401',jdecode('Home'),jdecode(''), jdecode('%2F7401.html'), 'true',[],'',''],
	['PAGE','13501',jdecode('Bio%2FOriginal+Music'),jdecode(''), jdecode('%2F13501.html'), 'true',[],'',''],
	['PAGE','23122',jdecode('Calendar'),jdecode(''), jdecode('%2F23122.html'), 'true',[],'',''],
	['PAGE','16101',jdecode('Solo'),jdecode(''), jdecode('%2F16101.html'), 'true',[],'',''],
	['PAGE','82715',jdecode('Cool+Britannia'),jdecode(''), jdecode('%2F82715.html'), 'true',[],'',''],
	['PAGE','60215',jdecode('Simon+%26+Garfunkel+Duo'),jdecode(''), jdecode('%2F60215.html'), 'false',[],'',''],
	['PAGE','49715',jdecode('Duo+with+Jeffrey+Alan'),jdecode(''), jdecode('%2F49715.html'), 'true',[],'',''],
	['PAGE','55315',jdecode('Duo+with+Michael+Loonan'),jdecode(''), jdecode('%2F55315.html'), 'true',[],'',''],
	['PAGE','128115',jdecode('Duo+w%2F+David+Burton+Morris'),jdecode(''), jdecode('%2F128115.html'), 'true',[],'',''],
	['PAGE','23101',jdecode('Event+Photos'),jdecode(''), jdecode('%2F23101.html'), 'true',[],'',''],
	['PAGE','155237',jdecode('++Event+Photos+%28ctd.%29'),jdecode(''), jdecode('%2F155237.html'), 'true',[],'',''],
	['PAGE','46615',jdecode('Songlist%2FVenues%2FReferences'),jdecode(''), jdecode('%2F46615.html'), 'true',[],'',''],
	['PAGE','66515',jdecode('Beach%2FReggae+'),jdecode(''), jdecode('%2F66515.html'), 'true',[],'',''],
	['PAGE','39715',jdecode('Wedding+Band%2FDJ+Package'),jdecode(''), jdecode('%2F39715.html'), 'false',[],'',''],
	['PAGE','155037',jdecode('Commercial+Vocal+Demo+'),jdecode(''), jdecode('%2F155037.html'), 'true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31960';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
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: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31960',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20120207-132418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20111028-153400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20110805-135049'
};
webappMappings['7060']=webappMappings['7060-bc6695aee89cf8e1ed36ebb0a5d813a9']={
webappId:    '7060',
documentId:  '13501',
internalId:  'bc6695aee89cf8e1ed36ebb0a5d813a9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20111103-152907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23122',
internalId:  '',
customField: '20120207-142745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46615',
internalId:  '',
customField: '20111026-194524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39715',
internalId:  '',
customField: '20090211-133735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49715',
internalId:  '',
customField: '20110623-142623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55315',
internalId:  '',
customField: '20111004-234727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60215',
internalId:  '',
customField: '20100222-214724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66515',
internalId:  '',
customField: '20111009-033111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82715',
internalId:  '',
customField: '20111004-235532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128115',
internalId:  '',
customField: '20101217-193127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155037',
internalId:  '',
customField: '20110930-142236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155237',
internalId:  '',
customField: '20120213-144115'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEZD0';
var companyName   = 'CHRIS+HERRIGES';
var htmlTitle	  = '';
var metaKeywords  = 'solo+guitar+acoustic+singer+one+man+band+minneapolis+st.+paul+chris+herriges+event+music+wedding+band+folk+guitarist+twin+cities+vocalist+vocal';
var metaContents  = 'Top+rated+solo+performer+in+the+Twin+Cities+area.+Acoustic+singer-guitarist+performing+musician%2C+perfect+for+background+or+featured+entertainment+-+events+of+all+kinds...';
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();
};

