/* [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(''),'/1901.html','true',[],'',''],
	['PAGE','1952',jdecode('Registration'),jdecode(''),'/1952/index.html','true',[ 
		['PAGE','56828',jdecode('Adoption'),jdecode(''),'/1952/56828.html','true',[],'','']
	],'',''],
	['PAGE','1973',jdecode('Information'),jdecode(''),'/1973/index.html','true',[ 
		['PAGE','2603',jdecode('Contact'),jdecode(''),'/1973/2603.html','true',[],'',''],
		['PAGE','26449',jdecode('History'),jdecode(''),'/1973/26449.html','true',[],'',''],
		['PAGE','2624',jdecode('Media'),jdecode(''),'/1973/2624.html','true',[],'',''],
		['PAGE','3185',jdecode('Sponsors'),jdecode(''),'/1973/3185.html','true',[],'','']
	],'',''],
	['PAGE','1994',jdecode('News'),jdecode(''),'/1994/index.html','true',[ 
		['PAGE','43528',jdecode('Con+Nooga+Blogs%21'),jdecode(''),'/1994/43528.html','true',[],'','']
	],'',''],
	['PAGE','2015',jdecode('Special+Guest'),jdecode(''),'/2015/index.html','true',[ 
		['PAGE','2057',jdecode('Bands%2FActs'),jdecode(''),'/2015/2057.html','true',[],'',''],
		['PAGE','208228',jdecode('Gaming+and+Costuming'),jdecode(''),'/2015/208228.html','true',[],'',''],
		['PAGE','131028',jdecode('Paranormal'),jdecode(''),'/2015/131028.html','true',[],'',''],
		['PAGE','141328',jdecode('Film+%2F+TV'),jdecode(''),'/2015/141328.html','true',[],'',''],
		['PAGE','131049',jdecode('Artists+%2F+Authors'),jdecode(''),'/2015/131049.html','true',[],'',''],
		['PAGE','2561',jdecode('Fan+Groups'),jdecode(''),'/2015/2561.html','true',[],'','']
	],'',''],
	['PAGE','2120',jdecode('Exhibitor+Hall'),jdecode(''),'/2120/index.html','true',[ 
		['PAGE','24028',jdecode('Register'),jdecode(''),'/2120/24028.html','true',[],'',''],
		['PAGE','24049',jdecode('Dealers+'),jdecode(''),'/2120/24049.html','true',[],'','']
	],'',''],
	['PAGE','2141',jdecode('Programming'),jdecode(''),'/2141/index.html','true',[ 
		['PAGE','2183',jdecode('Schedule'),jdecode(''),'/2141/2183.html','true',[],'','']
	],'',''],
	['PAGE','2162',jdecode('Anime'),jdecode(''),'/2162/index.html','true',[ 
		['PAGE','177428',jdecode('AMV+Contest'),jdecode(''),'/2162/177428.html','true',[],'','']
	],'',''],
	['PAGE','214128',jdecode('Comics'),jdecode(''),'/214128.html','true',[],'',''],
	['PAGE','2204',jdecode('Con+Kids'),jdecode(''),'/2204.html','true',[],'',''],
	['PAGE','36928',jdecode('Fan%2FIndie+Films'),jdecode(''),'/36928.html','true',[],'',''],
	['PAGE','214149',jdecode('Haunting+%26+Horror'),jdecode(''),'/214149.html','true',[],'',''],
	['PAGE','214170',jdecode('Literary+Track'),jdecode(''),'/214170.html','true',[],'',''],
	['PAGE','214191',jdecode('Paranormal'),jdecode(''),'/214191.html','true',[],'',''],
	['PAGE','214328',jdecode('Sci-Fi+%2F+Fantasy'),jdecode(''),'/214328.html','true',[],'',''],
	['PAGE','2456',jdecode('Gaming'),jdecode(''),'/2456/index.html','true',[ 
		['PAGE','2477',jdecode('Schedule'),jdecode(''),'/2456/2477.html','true',[],'',''],
		['PAGE','2519',jdecode('Tournaments'),jdecode(''),'/2456/2519.html','true',[],'','']
	],'',''],
	['PAGE','2498',jdecode('Console+Gaming'),jdecode(''),'/2498.html','true',[],'',''],
	['PAGE','2246',jdecode('Events'),jdecode(''),'/2246/index.html','true',[ 
		['PAGE','90328',jdecode('Church+Services'),jdecode(''),'/2246/90328.html','true',[],'',''],
		['PAGE','2330',jdecode('The+Debate'),jdecode(''),'/2246/2330.html','true',[],'',''],
		['PAGE','80328',jdecode('Parade'),jdecode(''),'/2246/80328.html','true',[],'',''],
		['PAGE','84028',jdecode('Monster+Ball'),jdecode(''),'/2246/84028.html','true',[],'',''],
		['PAGE','161628',jdecode('After+Dark'),jdecode(''),'/2246/161628.html','true',[],'',''],
		['PAGE','107128',jdecode('Drum+Circle'),jdecode(''),'/2246/107128.html','true',[],'',''],
		['PAGE','74228',jdecode('Room+Parties'),jdecode(''),'/2246/74228.html','true',[],'','']
	],'',''],
	['PAGE','2267',jdecode('Contest+'),jdecode(''),'/2267/index.html','true',[ 
		['PAGE','20528',jdecode('Costume+Contest'),jdecode(''),'/2267/20528.html','true',[],'',''],
		['PAGE','59228',jdecode('Con+Nooga+Idol+Jr.'),jdecode(''),'/2267/59228.html','true',[],'',''],
		['PAGE','2309',jdecode('Ms+Con+Nooga+'),jdecode(''),'/2267/2309.html','true',[],'',''],
		['PAGE','42528',jdecode('ConNooga+Couples'),jdecode(''),'/2267/42528.html','true',[],'',''],
		['PAGE','2393',jdecode('Make+Up+Battles'),jdecode(''),'/2267/2393.html','true',[],'',''],
		['PAGE','2435',jdecode('Big+Wheels'),jdecode(''),'/2267/2435.html','true',[],'',''],
		['PAGE','24928',jdecode('Dodge+Ball'),jdecode(''),'/2267/24928.html','true',[],'',''],
		['PAGE','184828',jdecode('Con+Nooga+Skits'),jdecode(''),'/2267/184828.html','true',[],'','']
	],'',''],
	['PAGE','207228',jdecode('Con+Nooga+Forums'),jdecode(''),'/207228.html','true',[],'',''],
	['PAGE','2540',jdecode('ConNooga+Charity'),jdecode(''),'/2540.html','true',[],'',''],
	['PAGE','161228',jdecode('US+Army'),jdecode(''),'/161228.html','true',[],'',''],
	['PAGE','167928',jdecode('Volunteer'),jdecode(''),'/167928.html','true',[],'',''],
	['PAGE','47928',jdecode('The+SIEGE%21'),jdecode(''),'/47928.html','true',[],'',''],
	['PAGE','76128',jdecode('Con+Nooga+Links'),jdecode(''),'/76128.html','true',[],'','']];
var siteelementCount=58;
theSitetree.topTemplateName='Comic';
theSitetree.paletteFamily='1B4082';
theSitetree.keyvisualId='9983';
theSitetree.keyvisualName='kv2.swf';
theSitetree.fontsetId='17761';
theSitetree.graphicsetId='13129';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Comic',
				paletteFamily: 	'1B4082',
				keyvisualId: 	'9983',
				keyvisualName: 	'kv2.swf',
				fontsetId: 		'17761',
				graphicsetId: 	'13129',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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: '20091214-074630'
};
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: '20100629-105508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2498',
internalId:  '',
customField: '20100227-105252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2141',
internalId:  '',
customField: '20100227-090639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100830-072235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20100526-175834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100629-110035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100629-105739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131028',
internalId:  '',
customField: '20100526-184509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20100227-084825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161628',
internalId:  '',
customField: '20100526-185756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214328',
internalId:  '',
customField: '20100830-075214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2120',
internalId:  '',
customField: '20100526-185448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2183',
internalId:  '',
customField: '20100227-090705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2267',
internalId:  '',
customField: '20100227-091604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2456',
internalId:  '',
customField: '20100830-075333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2540',
internalId:  '',
customField: '20100217-072618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161228',
internalId:  '',
customField: '20091106-104023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2309',
internalId:  '',
customField: '20100227-094217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2330',
internalId:  '',
customField: '20100227-091527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214128',
internalId:  '',
customField: '20100830-074927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2393',
internalId:  '',
customField: '20100227-094507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90328',
internalId:  '',
customField: '20100227-091020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2435',
internalId:  '',
customField: '20100227-094649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2561',
internalId:  '',
customField: '20100526-184739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207228',
internalId:  '',
customField: '20100706-073815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2603',
internalId:  '',
customField: '20100526-181731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2624',
internalId:  '',
customField: '20100526-193017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3185',
internalId:  '',
customField: '20100526-183800'
};
webappMappings['1003']=webappMappings['1003-aendu0in24lt129a78b1af1']={
webappId:    '1003',
documentId:  '207228',
internalId:  'aendu0in24lt129a78b1af1',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20100817-093516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2204',
internalId:  '',
customField: '20100227-090304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2246',
internalId:  '',
customField: '20091019-195550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214191',
internalId:  '',
customField: '20100830-075152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2477',
internalId:  '',
customField: '20100830-075529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84028',
internalId:  '',
customField: '20100227-091250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2519',
internalId:  '',
customField: '20100227-105517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20528',
internalId:  '',
customField: '20100106-094130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24928',
internalId:  '',
customField: '20100227-094732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24028',
internalId:  '',
customField: '20100720-151050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24049',
internalId:  '',
customField: '20100720-151342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26449',
internalId:  '',
customField: '20091027-080541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214170',
internalId:  '',
customField: '20100830-075118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36928',
internalId:  '',
customField: '20100830-075034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42528',
internalId:  '',
customField: '20100227-094408'
};
webappMappings['7050']=webappMappings['7050-3797']={
webappId:    '7050',
documentId:  '43528',
internalId:  '3797',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43528',
internalId:  '',
customField: '20100227-084540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47928',
internalId:  '',
customField: '20091027-085338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56828',
internalId:  '',
customField: '20100526-173135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59228',
internalId:  '',
customField: '20100227-091639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74228',
internalId:  '',
customField: '20100227-091354'
};
webappMappings['7008']=webappMappings['7008-22767']={
webappId:    '7008',
documentId:  '161228',
internalId:  '22767',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214149',
internalId:  '',
customField: '20100830-074303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131049',
internalId:  '',
customField: '20100824-230936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141328',
internalId:  '',
customField: '20100824-224529'
};
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: '20090423-082330'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107128',
internalId:  '',
customField: '20090527-095529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208228',
internalId:  '',
customField: '20100824-231648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167928',
internalId:  '',
customField: '20100526-190307'
};
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: '20100227-090908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184828',
internalId:  '',
customField: '20100227-094801'
};
webappMappings['7008']=webappMappings['7008-29917']={
webappId:    '7008',
documentId:  '74228',
internalId:  '29917',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN24LT';
var companyName   = 'Con+Nooga+2011';
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();
};
