/* [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','76',jdecode('Home'),jdecode(''),'/76.html','true',[],'',''],
	['PAGE','557',jdecode('About+us'),jdecode(''),'/557/index.html','true',[ 
		['PAGE','566',jdecode('Kurt+Hoffman'),jdecode(''),'/557/566.html','true',[],'',''],
		['PAGE','575',jdecode('Mikki+Marsh'),jdecode(''),'/557/575.html','true',[],'',''],
		['PAGE','584',jdecode('Dave+Hegedus'),jdecode(''),'/557/584.html','true',[],'',''],
		['PAGE','2701',jdecode('Greg+Lonnee'),jdecode(''),'/557/2701.html','true',[],'',''],
		['PAGE','593',jdecode('The+Fabulous+Shaker+Girl'),jdecode(''),'/557/593.html','true',[],'','']
	],'',''],
	['PAGE','602',jdecode('Schedule'),jdecode(''),'/602.html','true',[],'',''],
	['PAGE','25412',jdecode('What+We+Play'),jdecode(''),'/25412/index.html','true',[ 
		['PAGE','25454',jdecode('eclectic+acoustic'),jdecode(''),'/25412/25454.html','true',[],'',''],
		['PAGE','25433',jdecode('original+acoustic'),jdecode(''),'/25412/25433.html','true',[],'','']
	],'',''],
	['PAGE','611',jdecode('Where+We%26%23x27%3Bve+Been'),jdecode(''),'/611.html','true',[],'',''],
	['PAGE','35912',jdecode('We%26%23x27%3Bre+Listening+To...'),jdecode(''),'/35912.html','true',[],'',''],
	['PAGE','620',jdecode('Favorite+Links'),jdecode(''),'/620.html','true',[],'',''],
	['PAGE','638',jdecode('Contact'),jdecode(''),'/638.html','true',[],'',''],
	['PAGE','1386',jdecode('Email+Sign-up'),jdecode(''),'/1386.html','true',[],'',''],
	['PAGE','427',jdecode('Guestbook'),jdecode(''),'/427/index.html','true',[ 
		['PAGE','426',jdecode('Read+Guestbook'),jdecode(''),'/427/426.html','false',[],'','']
	],'',''],
	['PAGE','50423',jdecode('Pics'),jdecode(''),'/50423/index.html','true',[ 
		['PAGE','919',jdecode('Hoffman-Marsh'),jdecode(''),'/50423/919.html','true',[],'',''],
		['PAGE','15601',jdecode('NHBC+8%2F23%2F08'),jdecode(''),'/50423/15601.html','true',[],'',''],
		['PAGE','29112',jdecode('Pavilion+11%2F22%2F08'),jdecode(''),'/50423/29112.html','true',[],'','']
	],'',''],
	['PAGE','629',jdecode('Tunes'),jdecode(''),'/629.html','false',[],'',''],
	['PAGE','36612',jdecode('Blog+Blog+Blog'),jdecode(''),'/36612.html','false',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Crisscross';
theSitetree.paletteFamily='A05EA2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11052';
theSitetree.graphicsetId='11815';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='A05EA2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Crisscross',
				paletteFamily: 	'A05EA2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11052',
				graphicsetId: 	'11815',
				contentColor: 	'000000',
				contentBGColor: 'A05EA2',
				a_color: 		'A05EA2',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-427AHW050INXEBD']={
webappId:    '1002',
documentId:  '427',
internalId:  '427AHW050INXEBD',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-187826']={
webappId:    '1501',
documentId:  '76',
internalId:  '187826',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '76',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-85ae0c956fdbc30e1ab25bc3eee1658a']={
webappId:    '7060',
documentId:  '919',
internalId:  '85ae0c956fdbc30e1ab25bc3eee1658a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-74ebdc644d5dcc6dfa910232f0fcdac8']={
webappId:    '7060',
documentId:  '15601',
internalId:  '74ebdc644d5dcc6dfa910232f0fcdac8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76',
internalId:  '',
customField: '20100718-212845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20081102-120857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '602',
internalId:  '',
customField: '20100724-062553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '566',
internalId:  '',
customField: '20080420-151044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '575',
internalId:  '',
customField: '20100620-205656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '584',
internalId:  '',
customField: '20090115-210528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '593',
internalId:  '',
customField: '20100620-205753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20100620-205725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '611',
internalId:  '',
customField: '20100724-062504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20100620-210808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '629',
internalId:  '',
customField: '20100620-210953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '638',
internalId:  '',
customField: '20080816-100833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1386',
internalId:  '',
customField: '20081025-224548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '427',
internalId:  '',
customField: '20080323-123723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '426',
internalId:  '',
customField: '20080323-123723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '919',
internalId:  '',
customField: '20081102-132032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20081102-131628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25412',
internalId:  '',
customField: '20081208-212955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25454',
internalId:  '',
customField: '20100620-210559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25433',
internalId:  '',
customField: '20081116-212952'
};
webappMappings['7060']=webappMappings['7060-17e67d19452e54e2571b18e49c2219f9']={
webappId:    '7060',
documentId:  '29112',
internalId:  '17e67d19452e54e2571b18e49c2219f9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29112',
internalId:  '',
customField: '20081125-212431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35912',
internalId:  '',
customField: '20100812-210417'
};
webappMappings['7050']=webappMappings['7050-1121']={
webappId:    '7050',
documentId:  '36612',
internalId:  '1121',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36612',
internalId:  '',
customField: '20090607-121656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50423',
internalId:  '',
customField: '20100812-210155'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEBD';
var companyName   = 'Exit+9+Left+-+eclectic+%26+original+acoustic';
var htmlTitle	  = 'Exit+9+Left';
var metaKeywords  = 'Exit+9+Left+Hoffman+Marsh+Hegedus+Kurt+Hoffman+Greg+Lonnee+Dave+Hegedus+Mikki+Marsh+Michelle+Hanks';
var metaContents  = 'Exit+9+Left';
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();
};
