/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','16643',jdecode('News'),jdecode(''), jdecode('%2F16643.html'), 'true',[],'',''],
	['PAGE','452',jdecode('About+us'),jdecode(''), jdecode('%2F452%2Findex.html'), 'true',[ 
		['PAGE','515',jdecode('Governance'),jdecode(''), jdecode('%2F452%2F515.html'), 'true',[],'',''],
		['PAGE','578',jdecode('Pictures'),jdecode(''), jdecode('%2F452%2F578.html'), 'true',[],'','']
	],'',''],
	['PAGE','35936',jdecode('Volunteer'),jdecode(''), jdecode('%2F35936.html'), 'true',[],'',''],
	['PAGE','35997',jdecode('Program'),jdecode(''), jdecode('%2F35997.html'), 'true',[],'',''],
	['PAGE','46874',jdecode('Awards'),jdecode(''), jdecode('%2F46874.html'), 'true',[],'',''],
	['PAGE','20001',jdecode('Schedule'),jdecode(''), jdecode('%2F20001.html'), 'true',[],'',''],
	['PAGE','110618',jdecode('Sep+23rd+Dinner+Event'),jdecode(''), jdecode('%2F110618.html'), 'false',[],'',''],
	['PAGE','746',jdecode('Sponsors'),jdecode(''), jdecode('%2F746.html'), 'true',[],'',''],
	['PAGE','53874',jdecode('Partners'),jdecode(''), jdecode('%2F53874.html'), 'true',[],'',''],
	['PAGE','28301',jdecode('Behavior'),jdecode(''), jdecode('%2F28301.html'), 'true',[],'',''],
	['PAGE','23001',jdecode('Giving+Back'),jdecode(''), jdecode('%2F23001.html'), 'true',[],'',''],
	['PAGE','39374',jdecode('Disclosure'),jdecode(''), jdecode('%2F39374.html'), 'true',[],'',''],
	['PAGE','17701',jdecode('Definitions'),jdecode(''), jdecode('%2F17701.html'), 'false',[],'',''],
	['PAGE','35701',jdecode('Donate'),jdecode(''), jdecode('%2F35701.html'), 'false',[],'',''],
	['PAGE','69485',jdecode('LMC+Showcase+Event'),jdecode(''), jdecode('%2F69485.html'), 'false',[],'',''],
	['PAGE','37174',jdecode('Maui-Hawaii'),jdecode(''), jdecode('%2F37174.html'), 'false',[],'',''],
	['PAGE','52374',jdecode('Official+Rules'),jdecode(''), jdecode('%2F52374.html'), 'false',[],'',''],
	['PAGE','15288',jdecode('at+INDI'),jdecode(''), jdecode('%2F15288.html'), 'false',[],'',''],
	['PAGE','14959',jdecode('at+NHRA'),jdecode(''), jdecode('%2F14959.html'), 'false',[],'',''],
	['PAGE','16601',jdecode('with+PUSD'),jdecode(''), jdecode('%2F16601.html'), 'false',[],'',''],
	['PAGE','14559',jdecode('at+NASCAR'),jdecode(''), jdecode('%2F14559.html'), 'false',[],'',''],
	['PAGE','5701',jdecode('at+Pittsburg'),jdecode(''), jdecode('%2F5701.html'), 'false',[],'',''],
	['PAGE','15212',jdecode('PPD+Night+Out'),jdecode(''), jdecode('%2F15212.html'), 'false',[],'',''],
	['PAGE','15701',jdecode('Latino+Issues+Forum'),jdecode(''), jdecode('%2F15701.html'), 'false',[],'',''],
	['PAGE','32001',jdecode('Challenger+Jamboree'),jdecode(''), jdecode('%2F32001.html'), 'false',[],'',''],
	['PAGE','91696',jdecode('Card+Fundraising'),jdecode(''), jdecode('%2F91696.html'), 'false',[],'',''],
	['PAGE','81196',jdecode('Store'),jdecode(''), jdecode('%2F81196.html'), 'true',[],'',''],
	['PAGE','115018',jdecode('Illustrations'),jdecode(''), jdecode('%2F115018.html'), 'false',[],'',''],
	['PAGE','118818',jdecode('Super+Taco'),jdecode(''), jdecode('%2F118818.html'), 'false',[],'',''],
	['PAGE','126118',jdecode('FREE+Health+Care'),jdecode(''), jdecode('%2F126118.html'), 'true',[],'',''],
	['PAGE','131428',jdecode('Why+shop+local%3F'),jdecode(''), jdecode('%2F131428.html'), 'true',[],'',''],
	['PAGE','124818',jdecode('Winner+Within'),jdecode(''), jdecode('%2F124818.html'), 'true',[],'',''],
	['PAGE','75685',jdecode('Contact'),jdecode(''), jdecode('%2F75685.html'), 'true',[],'',''],
	['PAGE','13501',jdecode('Privacy'),jdecode(''), jdecode('%2F13501.html'), 'true',[],'',''],
	['PAGE','125618',jdecode('College'),jdecode(''), jdecode('%2F125618.html'), 'true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124818',
internalId:  '',
customField: '20110102-181058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20111112-133802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20111006-191515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110602-212212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20110201-184543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20110201-184608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20090517-013323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15288',
internalId:  '',
customField: '20080826-230106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14959',
internalId:  '',
customField: '20080803-162434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14559',
internalId:  '',
customField: '20080802-202028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118818',
internalId:  '',
customField: '20100904-202334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20110102-182521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15212',
internalId:  '',
customField: '20080812-104556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20081102-003414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16643',
internalId:  '',
customField: '20110914-140020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46874',
internalId:  '',
customField: '20110203-191911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20110109-024128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20090730-165853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20110203-163333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20110104-172458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115018',
internalId:  '',
customField: '20100719-212416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69485',
internalId:  '',
customField: '20091213-175328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39374',
internalId:  '',
customField: '20110111-140817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20110201-185548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53874',
internalId:  '',
customField: '20110602-212454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20090427-003754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20090704-203845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35936',
internalId:  '',
customField: '20110602-212302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35997',
internalId:  '',
customField: '20110602-212326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37174',
internalId:  '',
customField: '20090824-114205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81196',
internalId:  '',
customField: '20100706-233908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52374',
internalId:  '',
customField: '20090704-211021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75685',
internalId:  '',
customField: '20110111-140729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110618',
internalId:  '',
customField: '20100706-195900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91696',
internalId:  '',
customField: '20100305-201826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125618',
internalId:  '',
customField: '20110104-175733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126118',
internalId:  '',
customField: '20110110-195344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131428',
internalId:  '',
customField: '20110201-185810'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX0A';
var companyName   = 'PITTSBURG+PITBULLS+SOCCER+CLUB';
var htmlTitle	  = 'PITTSBURG+PITBULLS+SOCCER+CLUB';
var metaKeywords  = 'Academy+Soccer%2C+leagues+of+soccer%2C+kids+soccer+league%2C+kids+soccer+leagues%2C+tryouts+for+soccer%2C+club+youth+soccer%2C+soccer+in+san+pittsburg%2C+competitive+soccer%2C+bay+area+soccer%2C+soccer+in+san+francisco%2C+soccer+bay+area%2C+sponsorship+soccer%2C+california+soccer+club%2C+boys+soccer+club%2C+kids+soccer+programs%2C+kids+soccer+academy%2C+boys+soccer+clubs%2C+us+soccer+academies';
var metaContents  = 'Our+goal+is+to+facilitate+soccer+Academic+development+among+youth.+Reach+us+at+%28925%29+439-8023+and+by+email+info%40pittsburgpitbullssoccerclub.org';
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();
};

