/* [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','5101',jdecode('Home'),jdecode(''), jdecode('%2F5101.html'), 'true',[],'',''],
	['PAGE','76633',jdecode('About+Us'),jdecode(''), jdecode('%2F76633.html'), 'true',[],'',''],
	['PAGE','75133',jdecode('Alumni'),jdecode(''), jdecode('%2F75133.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('Contact+Us'),jdecode(''), jdecode('%2F7201.html'), 'true',[],'',''],
	['PAGE','16922',jdecode('Recruiting'),jdecode(''), jdecode('%2F16922%2Findex.html'), 'true',[ 
		['PAGE','73433',jdecode('Hint+of+the+Month'),jdecode(''), jdecode('%2F16922%2F73433.html'), 'true',[],'',''],
		['PAGE','72333',jdecode('Recruiting+Links'),jdecode(''), jdecode('%2F16922%2F72333.html'), 'true',[],'',''],
		['PAGE','70433',jdecode('Softball+Camps'),jdecode(''), jdecode('%2F16922%2F70433.html'), 'true',[],'',''],
		['PAGE','71733',jdecode('University+Websites'),jdecode(''), jdecode('%2F16922%2F71733.html'), 'true',[],'',''],
		['PAGE','77644',jdecode('NCAA+Div.+1+Calendar'),jdecode(''), jdecode('%2F16922%2F77644.html'), 'true',[],'','']
	],'',''],
	['PAGE','5152',jdecode('18U+GOLD'),jdecode(''), jdecode('%2F5152%2Findex.html'), 'true',[ 
		['PAGE','12001',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F5152%2F12001.html'), 'true',[],'',''],
		['PAGE','12022',jdecode('Schedule'),jdecode(''), jdecode('%2F5152%2F12022.html'), 'true',[],'','']
	],'',''],
	['PAGE','5215',jdecode('DOOM+%26%23x27%3B96'),jdecode(''), jdecode('%2F5215%2Findex.html'), 'true',[ 
		['PAGE','93044',jdecode('Recruiting+Info'),jdecode(''), jdecode('%2F5215%2F93044.html'), 'true',[],'',''],
		['PAGE','5236',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F5215%2F5236.html'), 'true',[],'',''],
		['PAGE','5257',jdecode('2012+Schedule'),jdecode(''), jdecode('%2F5215%2F5257.html'), 'true',[],'',''],
		['PAGE','23401',jdecode('Scoreboard'),jdecode(''), jdecode('%2F5215%2F23401.html'), 'true',[],'','']
	],'',''],
	['PAGE','101576',jdecode('16U+Rosinski'),jdecode(''), jdecode('%2F101576.html'), 'true',[],'',''],
	['PAGE','5278',jdecode('DOOM+%26%23x27%3B97'),jdecode(''), jdecode('%2F5278%2Findex.html'), 'true',[ 
		['PAGE','14301',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F5278%2F14301.html'), 'true',[],'',''],
		['PAGE','14322',jdecode('2012+Schedule'),jdecode(''), jdecode('%2F5278%2F14322.html'), 'true',[],'',''],
		['PAGE','85044',jdecode('Expressway+USSSA+Fall+State'),jdecode(''), jdecode('%2F5278%2F85044.html'), 'true',[],'',''],
		['PAGE','85065',jdecode('Lebanon+Friendlies'),jdecode(''), jdecode('%2F5278%2F85065.html'), 'true',[],'',''],
		['PAGE','82544',jdecode('Miami+U+Elite+Camp'),jdecode(''), jdecode('%2F5278%2F82544.html'), 'true',[],'','']
	],'',''],
	['PAGE','5320',jdecode('DOOM+%26%23x27%3B00'),jdecode(''), jdecode('%2F5320%2Findex.html'), 'true',[ 
		['PAGE','17006',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F5320%2F17006.html'), 'true',[],'',''],
		['PAGE','17027',jdecode('2011+Schedule'),jdecode(''), jdecode('%2F5320%2F17027.html'), 'true',[],'','']
	],'',''],
	['PAGE','49233',jdecode('DOOM+%26%23x27%3B01'),jdecode(''), jdecode('%2F49233%2Findex.html'), 'true',[ 
		['PAGE','49254',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F49233%2F49254.html'), 'true',[],'',''],
		['PAGE','55133',jdecode('Meet+The+Coach'),jdecode(''), jdecode('%2F49233%2F55133.html'), 'true',[],'',''],
		['PAGE','49275',jdecode('Fall+Schedule'),jdecode(''), jdecode('%2F49233%2F49275.html'), 'true',[],'',''],
		['PAGE','97355',jdecode('Summer+Schedule'),jdecode(''), jdecode('%2F49233%2F97355.html'), 'true',[],'','']
	],'',''],
	['PAGE','11701',jdecode('DOOM+Forum'),jdecode(''), jdecode('%2F11701.html'), 'true',[],'',''],
	['PAGE','16901',jdecode('ASA%2FPGF+Links'),jdecode(''), jdecode('%2F16901.html'), 'true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='1243CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10381';
theSitetree.graphicsetId='10562';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTC24G'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'1243CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10381',
				graphicsetId: 	'10562',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20120117-072041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20111120-195803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93044',
internalId:  '',
customField: '20111010-094954'
};
webappMappings['1501']=webappMappings['1501-9279170']={
webappId:    '1501',
documentId:  '5101',
internalId:  '9279170',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5215',
internalId:  '',
customField: '20120122-152100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5236',
internalId:  '',
customField: '20120122-152504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5257',
internalId:  '',
customField: '20111212-114051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5278',
internalId:  '',
customField: '20120103-072330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97355',
internalId:  '',
customField: '20111227-155220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5320',
internalId:  '',
customField: '20110615-062901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20111013-131518'
};
webappMappings['1003']=webappMappings['1003-ahw050infa3h12ff4789f03']={
webappId:    '1003',
documentId:  '11701',
internalId:  'ahw050infa3h12ff4789f03',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20110515-112513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20120113-215714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12022',
internalId:  '',
customField: '20120115-175611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14322',
internalId:  '',
customField: '20120106-084004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20120113-082328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20110902-105604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16922',
internalId:  '',
customField: '20110908-065534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76633',
internalId:  '',
customField: '20110902-141622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77644',
internalId:  '',
customField: '20110905-054651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17006',
internalId:  '',
customField: '20110517-134115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17027',
internalId:  '',
customField: '20110620-000119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101576',
internalId:  '',
customField: '20111011-123736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20111114-071106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70433',
internalId:  '',
customField: '20120122-153507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71733',
internalId:  '',
customField: '20111123-133208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72333',
internalId:  '',
customField: '20111111-114527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73433',
internalId:  '',
customField: '20120122-153344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75133',
internalId:  '',
customField: '20120125-180935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82544',
internalId:  '',
customField: '20110930-082710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49233',
internalId:  '',
customField: '20120131-200532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49254',
internalId:  '',
customField: '20120201-215916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49275',
internalId:  '',
customField: '20111004-211707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55133',
internalId:  '',
customField: '20110901-173045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85065',
internalId:  '',
customField: '20110930-083602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85044',
internalId:  '',
customField: '20110930-084558'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INFA3H';
var companyName   = 'DOOM+-+Fastpitch+Softball+';
var htmlTitle	  = 'DOOM+FASTPITCH';
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();
};

