/* [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 theSitetree=[ 
	['PAGE','401',jdecode('This+Week+In+Athletics'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Athletic+Boosters'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','9722',jdecode('Booster+Sign-Up'),jdecode(''),'/452/9722.html','true',[],''],
		['PAGE','9701',jdecode('Booster+Info'),jdecode(''),'/452/9701.html','true',[],''],
		['PAGE','41281',jdecode('Booster+Club+History'),jdecode(''),'/452/41281.html','true',[],''],
		['PAGE','78262',jdecode('Booster+Members'),jdecode(''),'/452/78262.html','true',[],''],
		['PAGE','92662',jdecode('Greyhound+Gear'),jdecode(''),'/452/92662.html','true',[],''],
		['PAGE','84662',jdecode('%26%23x27%3B09+Booster+Golf+Tour.'),jdecode(''),'/452/84662.html','true',[],''],
		['PAGE','86762',jdecode('%26%23x27%3B09+Golf+Hole+Sponsors'),jdecode(''),'/452/86762.html','true',[],''],
		['PAGE','88562',jdecode('%26%23x27%3B09+Tourney+Golfers'),jdecode(''),'/452/88562.html','true',[],''],
		['PAGE','86783',jdecode('%26%23x27%3B09+Winners+and+Photos'),jdecode(''),'/452/86783.html','true',[],'']
	],''],
	['PAGE','18401',jdecode('Athletic+Schedules'),jdecode(''),'/18401.html','true',[],''],
	['PAGE','93983',jdecode('REIBT+Tournament'),jdecode(''),'/93983/index.html','true',[ 
		['PAGE','36213',jdecode('2008+REIBT'),jdecode(''),'/93983/36213.html','true',[],'']
	],''],
	['PAGE','85262',jdecode('HJH+Greypups'),jdecode(''),'/85262/index.html','true',[ 
		['PAGE','102162',jdecode('Girl%26%23x27%3Bs+Volleyball'),jdecode(''),'/85262/102162.html','true',[],''],
		['PAGE','102183',jdecode('7%2F8+Boy%26%23x27%3Bs+Basketball'),jdecode(''),'/85262/102183.html','true',[],''],
		['PAGE','102204',jdecode('6th+Boy%26%23x27%3Bs+Basketball'),jdecode(''),'/85262/102204.html','true',[],''],
		['PAGE','102225',jdecode('Wrestling'),jdecode(''),'/85262/102225.html','true',[],''],
		['PAGE','102246',jdecode('Track+%26+Field'),jdecode(''),'/85262/102246.html','true',[],'']
	],''],
	['PAGE','30601',jdecode('Athletic+Hall+of+Fame'),jdecode(''),'/30601/index.html','true',[ 
		['PAGE','34515',jdecode('1992+Inductees'),jdecode(''),'/30601/34515.html','true',[],''],
		['PAGE','34536',jdecode('1994+Inductees'),jdecode(''),'/30601/34536.html','true',[],''],
		['PAGE','35471',jdecode('1996+Inductees'),jdecode(''),'/30601/35471.html','true',[],''],
		['PAGE','35813',jdecode('1998+Inductees'),jdecode(''),'/30601/35813.html','true',[],''],
		['PAGE','35834',jdecode('2000+Inductees'),jdecode(''),'/30601/35834.html','true',[],''],
		['PAGE','35855',jdecode('2002+Inductees'),jdecode(''),'/30601/35855.html','true',[],''],
		['PAGE','35876',jdecode('2006+Inductees'),jdecode(''),'/30601/35876.html','true',[],'']
	],''],
	['PAGE','16101',jdecode('Sports+History'),jdecode(''),'/16101/index.html','true',[ 
		['PAGE','16122',jdecode('Football+Programs'),jdecode(''),'/16101/16122.html','true',[],'']
	],''],
	['PAGE','98462',jdecode('Grad.+Celebration'),jdecode(''),'/98462/index.html','true',[ 
		['PAGE','48251',jdecode('Agendas'),jdecode(''),'/98462/48251.html','true',[],''],
		['PAGE','101062',jdecode('Meeting+Minutes'),jdecode(''),'/98462/101062.html','true',[],''],
		['PAGE','50751',jdecode('Release+Form-English'),jdecode(''),'/98462/50751.html','true',[],''],
		['PAGE','98262',jdecode('Release+Form-Spanish'),jdecode(''),'/98462/98262.html','true',[],''],
		['PAGE','48451',jdecode('How+Can+I+Help%3F'),jdecode(''),'/98462/48451.html','true',[],'']
	],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='3F7177';
theSitetree.keyvisualId='2422';
theSitetree.keyvisualName='lebensfreude.jpg';
theSitetree.fontsetId='397';
theSitetree.graphicsetId='447';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='3F7177';
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'3F7177',
				keyvisualId: 	'2422',
				keyvisualName: 	'lebensfreude.jpg',
				fontsetId: 		'397',
				graphicsetId: 	'447',
				contentColor: 	'DDDDDD',
				contentBGColor: '3F7177',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3F7177',
				b_color: 		'2F5358',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78262',
internalId:  '',
customField: '20100221-225336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100228-213722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090708-164222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20091005-153603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9722',
internalId:  '',
customField: '20090708-165753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100308-083400'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20090917-121054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16122',
internalId:  '',
customField: '20090921-231902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85262',
internalId:  '',
customField: '20091008-171011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102162',
internalId:  '',
customField: '20100121-180221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48251',
internalId:  '',
customField: '20100224-000041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84662',
internalId:  '',
customField: '20091023-133250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20081205-164543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93983',
internalId:  '',
customField: '20091214-101955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92662',
internalId:  '',
customField: '20091201-090812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34515',
internalId:  '',
customField: '20081210-164402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34536',
internalId:  '',
customField: '20090611-235926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35471',
internalId:  '',
customField: '20081210-164229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35813',
internalId:  '',
customField: '20081211-160852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35834',
internalId:  '',
customField: '20081212-011621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35855',
internalId:  '',
customField: '20081212-014511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35876',
internalId:  '',
customField: '20081212-021411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36213',
internalId:  '',
customField: '20100221-230422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41281',
internalId:  '',
customField: '20081218-193126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86762',
internalId:  '',
customField: '20091023-141624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48451',
internalId:  '',
customField: '20090120-113228'
};
webappMappings['7008']=webappMappings['7008-1434']={
webappId:    '7008',
documentId:  '48451',
internalId:  '1434',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101062',
internalId:  '',
customField: '20100210-130124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50751',
internalId:  '',
customField: '20091214-115837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86783',
internalId:  '',
customField: '20091023-133034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88562',
internalId:  '',
customField: '20091105-165534'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '1501',
customField: '1501'
};
webappMappings['1501']=webappMappings['1501-3900705']={
webappId:    '1501',
documentId:  '401',
internalId:  '3900705',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98462',
internalId:  '',
customField: '20100303-143015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98262',
internalId:  '',
customField: '20091214-115918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102183',
internalId:  '',
customField: '20100121-180429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102204',
internalId:  '',
customField: '20100121-180406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102225',
internalId:  '',
customField: '20100121-180524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102246',
internalId:  '',
customField: '20100121-180623'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INVAXP';
var companyName   = 'Greyhound+Grad+-+HHS';
var htmlTitle	  = 'Healdsburg+High+School+-Greyhound+Grad';
var metaKeywords  = 'Healdsburg+High+School%2C+Greyhound+Grad%2C+HHS%2C+Healdsburg%2C+High+School%2C+Greyhound%2C+Grad';
var metaContents  = 'Healdsburg+High+School%2C+Greyhound+Grad';
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();
};
