/* [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','7901',jdecode('Home'),jdecode(''),'/7901.html','true',[],'',''],
	['PAGE','7952',jdecode('Sponsor+Page'),jdecode(''),'/7952.html','true',[],'',''],
	['PAGE','7973',jdecode('Contact+Us'),jdecode(''),'/7973.html','true',[],'',''],
	['PAGE','137132',jdecode('Doom+18U+GOLD'),jdecode(''),'/137132/index.html','true',[ 
		['PAGE','137153',jdecode('MEET+THE+TEAM'),jdecode(''),'/137132/137153.html','true',[],'','']
	],'',''],
	['PAGE','131620',jdecode('Doom+18U+NORTH'),jdecode(''),'/131620/index.html','true',[ 
		['PAGE','131641',jdecode('Meet+The+Team'),jdecode(''),'/131620/131641.html','true',[],'',''],
		['PAGE','197050',jdecode('Schedule'),jdecode(''),'/131620/197050.html','true',[],'','']
	],'',''],
	['PAGE','8015',jdecode('Doom+%26%23x27%3B95%2F+%26%23x27%3B94'),jdecode(''),'/8015/index.html','true',[ 
		['PAGE','12423',jdecode('MEET+THE+TEAM'),jdecode(''),'/8015/12423.html','true',[],'',''],
		['PAGE','32256',jdecode('Doom+%26%23x27%3B95+Schedule'),jdecode(''),'/8015/32256.html','true',[],'',''],
		['PAGE','266676',jdecode('ASA%2FUSA+Nationals'),jdecode(''),'/8015/266676.html','true',[],'',''],
		['PAGE','263776',jdecode('GAPSS+16%2F18U'),jdecode(''),'/8015/263776.html','true',[],'',''],
		['PAGE','256458',jdecode('Sparks+Invitational+16U'),jdecode(''),'/8015/256458.html','true',[],'',''],
		['PAGE','255858',jdecode('Stingrays+2010'),jdecode(''),'/8015/255858.html','true',[],'',''],
		['PAGE','256479',jdecode('Circle+City+Showcase+16U'),jdecode(''),'/8015/256479.html','true',[],'',''],
		['PAGE','240340',jdecode('ASA+States'),jdecode(''),'/8015/240340.html','true',[],'',''],
		['PAGE','234734',jdecode('DOOM++MADNESS'),jdecode(''),'/8015/234734.html','true',[],'',''],
		['PAGE','12633',jdecode('Who+Am+I%3F'),jdecode(''),'/8015/12633.html','true',[],'',''],
		['PAGE','32277',jdecode('Fun+Off+The+Field'),jdecode(''),'/8015/32277.html','true',[],'','']
	],'',''],
	['PAGE','8036',jdecode('Doom+%26%23x27%3B96'),jdecode(''),'/8036/index.html','true',[ 
		['PAGE','21223',jdecode('MEET+THE+TEAM'),jdecode(''),'/8036/21223.html','true',[],'',''],
		['PAGE','98708',jdecode('Schedule+%2F+Results'),jdecode(''),'/8036/98708.html','true',[],'',''],
		['PAGE','56356',jdecode('Scoreboard'),jdecode(''),'/8036/56356.html','true',[],'',''],
		['PAGE','270176',jdecode('ASA%2FUSA+Nationals'),jdecode(''),'/8036/270176.html','true',[],'',''],
		['PAGE','180350',jdecode('New%21+Who+Am+I'),jdecode(''),'/8036/180350.html','true',[],'','']
	],'',''],
	['PAGE','283882',jdecode('Doom+14U+Local'),jdecode(''),'/283882.html','true',[],'',''],
	['PAGE','122708',jdecode('Doom+%26%23x27%3B97'),jdecode(''),'/122708/index.html','true',[ 
		['PAGE','122729',jdecode('MEET+THE+TEAM'),jdecode(''),'/122708/122729.html','true',[],'',''],
		['PAGE','140032',jdecode('Schedule+%2F+Results'),jdecode(''),'/122708/140032.html','true',[],'','']
	],'',''],
	['PAGE','285282',jdecode('Doom+%26%23x27%3B00'),jdecode(''),'/285282.html','true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='848';
theSitetree.keyvisualName='internet.jpg';
theSitetree.fontsetId='163';
theSitetree.graphicsetId='186';
theSitetree.contentColor='6699CC';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'848',
				keyvisualName: 	'internet.jpg',
				fontsetId: 		'163',
				graphicsetId: 	'186',
				contentColor: 	'6699CC',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137132',
internalId:  '',
customField: '20100901-215340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100901-102008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7952',
internalId:  '',
customField: '20100826-143708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7973',
internalId:  '',
customField: '20100902-141111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8015',
internalId:  '',
customField: '20100826-130522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8036',
internalId:  '',
customField: '20100827-102445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12423',
internalId:  '',
customField: '20100826-103055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234734',
internalId:  '',
customField: '20100628-113118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12633',
internalId:  '',
customField: '20100628-115545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21223',
internalId:  '',
customField: '20100831-142148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285282',
internalId:  '',
customField: '20100827-131950'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32256',
internalId:  '',
customField: '20100826-110305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32277',
internalId:  '',
customField: '20100213-172357'
};
webappMappings['1003']=webappMappings['1003-ahw050inlgg01220e3cee87']={
webappId:    '1003',
documentId:  '7901',
internalId:  'ahw050inlgg01220e3cee87',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283882',
internalId:  '',
customField: '20100827-101045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180350',
internalId:  '',
customField: '20100203-173102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240340',
internalId:  '',
customField: '20100628-113422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56356',
internalId:  '',
customField: '20100818-095918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98708',
internalId:  '',
customField: '20100827-101015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122708',
internalId:  '',
customField: '20100901-133353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122729',
internalId:  '',
customField: '20100831-095821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131620',
internalId:  '',
customField: '20100331-080951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131641',
internalId:  '',
customField: '20100412-202201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137153',
internalId:  '',
customField: '20100902-140800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140032',
internalId:  '',
customField: '20100901-132711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197050',
internalId:  '',
customField: '20100331-082904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255858',
internalId:  '',
customField: '20100714-100459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256458',
internalId:  '',
customField: '20100714-101220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256479',
internalId:  '',
customField: '20100719-193744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '263776',
internalId:  '',
customField: '20100727-220140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '266676',
internalId:  '',
customField: '20100811-021710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270176',
internalId:  '',
customField: '20100810-123349'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLGG0';
var companyName   = 'Cincy+Doom+Girls+Fastpitch+Softball';
var htmlTitle	  = 'Cincy+Doom+Fastpitch';
var metaKeywords  = 'softballfastpitchtryoutstryout10u12u14u16u18u';
var metaContents  = 'Ohios+Best+Fast+Pitch+Softball';
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();
};
