/* [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','1901',jdecode('Con+Nooga'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','1952',jdecode('Registration'),jdecode(''), jdecode('%2F1952%2Findex.html'), 'true',[ 
		['PAGE','56828',jdecode('Adoption'),jdecode(''), jdecode('%2F1952%2F56828.html'), 'true',[],'','']
	],'',''],
	['PAGE','1994',jdecode('News'),jdecode(''), jdecode('%2F1994.html'), 'true',[],'',''],
	['PAGE','2015',jdecode('Special+Guest'),jdecode(''), jdecode('%2F2015%2Findex.html'), 'true',[ 
		['PAGE','131049',jdecode('Artists'),jdecode(''), jdecode('%2F2015%2F131049.html'), 'true',[],'',''],
		['PAGE','275848',jdecode('Authors'),jdecode(''), jdecode('%2F2015%2F275848.html'), 'true',[],'',''],
		['PAGE','2057',jdecode('Bands%2FActs'),jdecode(''), jdecode('%2F2015%2F2057.html'), 'true',[],'',''],
		['PAGE','141328',jdecode('Film+%2F+TV'),jdecode(''), jdecode('%2F2015%2F141328.html'), 'true',[],'',''],
		['PAGE','208228',jdecode('Gaming+and+Costuming'),jdecode(''), jdecode('%2F2015%2F208228.html'), 'true',[],'',''],
		['PAGE','131028',jdecode('Paranormal'),jdecode(''), jdecode('%2F2015%2F131028.html'), 'true',[],'',''],
		['PAGE','274348',jdecode('Sponsors+%2F+Partners'),jdecode(''), jdecode('%2F2015%2F274348.html'), 'true',[],'',''],
		['PAGE','2561',jdecode('Fan+Groups'),jdecode(''), jdecode('%2F2015%2F2561.html'), 'true',[],'',''],
		['PAGE','282648',jdecode('Other+Special+Guests'),jdecode(''), jdecode('%2F2015%2F282648.html'), 'true',[],'','']
	],'',''],
	['PAGE','2120',jdecode('Exhibitor+Hall'),jdecode(''), jdecode('%2F2120%2Findex.html'), 'true',[ 
		['PAGE','24049',jdecode('Dealers+'),jdecode(''), jdecode('%2F2120%2F24049.html'), 'true',[],'','']
	],'',''],
	['PAGE','2498',jdecode('Console+Gaming'),jdecode(''), jdecode('%2F2498.html'), 'true',[],'',''],
	['PAGE','2267',jdecode('Contest+'),jdecode(''), jdecode('%2F2267%2Findex.html'), 'true',[ 
		['PAGE','2435',jdecode('Big+Wheels'),jdecode(''), jdecode('%2F2267%2F2435.html'), 'true',[],'',''],
		['PAGE','20528',jdecode('Costume+Contest'),jdecode(''), jdecode('%2F2267%2F20528.html'), 'true',[],'',''],
		['PAGE','177428',jdecode('AMV+Contest'),jdecode(''), jdecode('%2F2267%2F177428.html'), 'true',[],'',''],
		['PAGE','24928',jdecode('Dodge+Ball'),jdecode(''), jdecode('%2F2267%2F24928.html'), 'true',[],'',''],
		['PAGE','2393',jdecode('Make+Up+Battles'),jdecode(''), jdecode('%2F2267%2F2393.html'), 'true',[],'',''],
		['PAGE','2309',jdecode('Ms+BioGamer+Girl'),jdecode(''), jdecode('%2F2267%2F2309.html'), 'true',[],'',''],
		['PAGE','303548',jdecode('Texas+Hold+%26%23x27%3BEm+for+Charity'),jdecode(''), jdecode('%2F2267%2F303548.html'), 'true',[],'','']
	],'',''],
	['PAGE','2141',jdecode('Programming'),jdecode(''), jdecode('%2F2141%2Findex.html'), 'true',[ 
		['PAGE','2162',jdecode('Anime'),jdecode(''), jdecode('%2F2141%2F2162.html'), 'true',[],'',''],
		['PAGE','300348',jdecode('Costuming'),jdecode(''), jdecode('%2F2141%2F300348.html'), 'true',[],'',''],
		['PAGE','214128',jdecode('Artists+and+Comics'),jdecode(''), jdecode('%2F2141%2F214128.html'), 'true',[],'',''],
		['PAGE','2204',jdecode('Con+Kids'),jdecode(''), jdecode('%2F2141%2F2204.html'), 'true',[],'',''],
		['PAGE','36928',jdecode('Fan%2FIndie+Films'),jdecode(''), jdecode('%2F2141%2F36928.html'), 'true',[],'',''],
		['PAGE','214149',jdecode('Haunting+%26+Horror'),jdecode(''), jdecode('%2F2141%2F214149.html'), 'true',[],'',''],
		['PAGE','300448',jdecode('Gaming'),jdecode(''), jdecode('%2F2141%2F300448.html'), 'true',[],'',''],
		['PAGE','214170',jdecode('Literary'),jdecode(''), jdecode('%2F2141%2F214170.html'), 'true',[],'',''],
		['PAGE','214191',jdecode('Paranormal'),jdecode(''), jdecode('%2F2141%2F214191.html'), 'true',[],'',''],
		['PAGE','214328',jdecode('Sci-Fi+%2F+Fantasy'),jdecode(''), jdecode('%2F2141%2F214328.html'), 'true',[],'','']
	],'',''],
	['PAGE','2456',jdecode('Gaming'),jdecode(''), jdecode('%2F2456%2Findex.html'), 'true',[ 
		['PAGE','2477',jdecode('Schedule'),jdecode(''), jdecode('%2F2456%2F2477.html'), 'true',[],'','']
	],'',''],
	['PAGE','2246',jdecode('Events'),jdecode(''), jdecode('%2F2246%2Findex.html'), 'true',[ 
		['PAGE','2330',jdecode('Star+Wars+vs+Star+Trek'),jdecode(''), jdecode('%2F2246%2F2330.html'), 'true',[],'',''],
		['PAGE','84028',jdecode('Dance%2FKaraoke'),jdecode(''), jdecode('%2F2246%2F84028.html'), 'true',[],'',''],
		['PAGE','90328',jdecode('Church+Services'),jdecode(''), jdecode('%2F2246%2F90328.html'), 'true',[],'',''],
		['PAGE','226928',jdecode('Cosplay+Chess'),jdecode(''), jdecode('%2F2246%2F226928.html'), 'true',[],'',''],
		['PAGE','80328',jdecode('Parade'),jdecode(''), jdecode('%2F2246%2F80328.html'), 'true',[],'',''],
		['PAGE','161628',jdecode('After+Dark'),jdecode(''), jdecode('%2F2246%2F161628.html'), 'true',[],'',''],
		['PAGE','74228',jdecode('Room+Parties'),jdecode(''), jdecode('%2F2246%2F74228.html'), 'true',[],'','']
	],'',''],
	['PAGE','2540',jdecode('Charity'),jdecode(''), jdecode('%2F2540.html'), 'true',[],'',''],
	['PAGE','1973',jdecode('Information'),jdecode(''), jdecode('%2F1973%2Findex.html'), 'true',[ 
		['PAGE','2603',jdecode('Contact'),jdecode(''), jdecode('%2F1973%2F2603.html'), 'true',[],'',''],
		['PAGE','26449',jdecode('History'),jdecode(''), jdecode('%2F1973%2F26449.html'), 'true',[],'',''],
		['PAGE','2624',jdecode('Media'),jdecode(''), jdecode('%2F1973%2F2624.html'), 'true',[],'',''],
		['PAGE','3185',jdecode('Sponsors'),jdecode(''), jdecode('%2F1973%2F3185.html'), 'true',[],'',''],
		['PAGE','167928',jdecode('Volunteer'),jdecode(''), jdecode('%2F1973%2F167928.html'), 'true',[],'','']
	],'',''],
	['PAGE','47928',jdecode('The+SIEGE%21'),jdecode(''), jdecode('%2F47928.html'), 'true',[],'',''],
	['PAGE','76128',jdecode('Con+Nooga+Links'),jdecode(''), jdecode('%2F76128.html'), 'true',[],'','']];
var siteelementCount=55;
theSitetree.topTemplateName='Riga';
theSitetree.paletteFamily='6C7BD4';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11222';
theSitetree.graphicsetId='12043';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6C7BD4';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Riga',
				paletteFamily: 	'6C7BD4',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11222',
				graphicsetId: 	'12043',
				contentColor: 	'FFFFFF',
				contentBGColor: '6C7BD4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '1973',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76128',
internalId:  '',
customField: '20120126-072419'
};
webappMappings['7060']=webappMappings['7060-7b5ee0bd2501142a0ee22b0d4938555d']={
webappId:    '7060',
documentId:  '2624',
internalId:  '7b5ee0bd2501142a0ee22b0d4938555d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20120130-072507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2498',
internalId:  '',
customField: '20111110-191951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2141',
internalId:  '',
customField: '20120201-132716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20120130-070326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20120126-072456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20120130-072916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20120118-115506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131028',
internalId:  '',
customField: '20120201-080220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20120130-074027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161628',
internalId:  '',
customField: '20120123-095208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214328',
internalId:  '',
customField: '20120201-121709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2120',
internalId:  '',
customField: '20120109-070924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2267',
internalId:  '',
customField: '20111110-192102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2456',
internalId:  '',
customField: '20120118-134904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2540',
internalId:  '',
customField: '20120201-124940'
};
webappMappings['7008']=webappMappings['7008-32972']={
webappId:    '7008',
documentId:  '226928',
internalId:  '32972',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2309',
internalId:  '',
customField: '20111110-192545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2330',
internalId:  '',
customField: '20120125-141012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214128',
internalId:  '',
customField: '20120129-124550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2393',
internalId:  '',
customField: '20110620-090457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90328',
internalId:  '',
customField: '20120123-095308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2435',
internalId:  '',
customField: '20110620-090300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2561',
internalId:  '',
customField: '20120130-204537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275848',
internalId:  '',
customField: '20120129-131532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2603',
internalId:  '',
customField: '20101207-083943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2624',
internalId:  '',
customField: '20110213-083042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3185',
internalId:  '',
customField: '20111110-201202'
};
webappMappings['7008']=webappMappings['7008-36154']={
webappId:    '7008',
documentId:  '167928',
internalId:  '36154',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20120129-124241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2204',
internalId:  '',
customField: '20120201-080835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2246',
internalId:  '',
customField: '20120130-092446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214191',
internalId:  '',
customField: '20120127-084754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2477',
internalId:  '',
customField: '20120125-082654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84028',
internalId:  '',
customField: '20120201-073045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20528',
internalId:  '',
customField: '20110620-090416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24928',
internalId:  '',
customField: '20100227-094732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282648',
internalId:  '',
customField: '20120118-121942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24049',
internalId:  '',
customField: '20120201-074713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26449',
internalId:  '',
customField: '20111110-201003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214170',
internalId:  '',
customField: '20120127-084108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36928',
internalId:  '',
customField: '20120129-124803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226928',
internalId:  '',
customField: '20101215-080234'
};
webappMappings['7008']=webappMappings['7008-7132']={
webappId:    '7008',
documentId:  '56828',
internalId:  '7132',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '300448',
internalId:  '',
customField: '20120130-091657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47928',
internalId:  '',
customField: '20111110-201352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56828',
internalId:  '',
customField: '20120114-153033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303548',
internalId:  '',
customField: '20120201-100857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74228',
internalId:  '',
customField: '20120123-095918'
};
webappMappings['7008']=webappMappings['7008-32973']={
webappId:    '7008',
documentId:  '20528',
internalId:  '32973',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214149',
internalId:  '',
customField: '20120129-124920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131049',
internalId:  '',
customField: '20120124-072627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141328',
internalId:  '',
customField: '20120123-095033'
};
webappMappings['7008']=webappMappings['7008-22989']={
webappId:    '7008',
documentId:  '2267',
internalId:  '22989',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80328',
internalId:  '',
customField: '20120123-095635'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274348',
internalId:  '',
customField: '20120126-073051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208228',
internalId:  '',
customField: '20120119-101855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167928',
internalId:  '',
customField: '20111230-135740'
};
webappMappings['7008']=webappMappings['7008-23813']={
webappId:    '7008',
documentId:  '177428',
internalId:  '23813',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177428',
internalId:  '',
customField: '20111110-194501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '300348',
internalId:  '',
customField: '20120130-092405'
};
webappMappings['7008']=webappMappings['7008-29917']={
webappId:    '7008',
documentId:  '74228',
internalId:  '29917',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN24LT';
var companyName   = 'Con+Nooga+2012';
var htmlTitle	  = 'Con+Nooga+the+Multi-Fandom+Convention';
var metaKeywords  = '';
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();
};

