/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','7206',jdecode('GUESTBOOK'),jdecode(''),'/7206/index.html','true',[ 
		['PAGE','7201',jdecode('Read+Guestbook'),jdecode(''),'/7206/7201.html','false',[],'']
	],''],
	['PAGE','552',jdecode('MEETING+LOCATION'),jdecode(''),'/552.html','true',[],''],
	['PAGE','8501',jdecode('-+Map'),jdecode(''),'/8501.html','true',[],''],
	['PAGE','825',jdecode('SPONSORS'),jdecode(''),'/825.html','true',[],''],
	['PAGE','573',jdecode('MISSION+STATEMENT'),jdecode(''),'/573.html','true',[],''],
	['PAGE','615',jdecode('YOUTH+SERVICES'),jdecode(''),'/615.html','true',[],''],
	['PAGE','20908',jdecode('-+RYLA+2008'),jdecode(''),'/20908.html','true',[],''],
	['PAGE','21523',jdecode('-+Interact+Club'),jdecode(''),'/21523.html','true',[],''],
	['PAGE','636',jdecode('COMPETITIONS'),jdecode(''),'/636.html','true',[],''],
	['PAGE','21449',jdecode('*+4+Way+Speach'),jdecode(''),'/21449.html','true',[],''],
	['PAGE','21458',jdecode('*+Music'),jdecode(''),'/21458.html','true',[],''],
	['PAGE','741',jdecode('SERVICE+PROJECTS'),jdecode(''),'/741.html','true',[],''],
	['PAGE','12201',jdecode('-+Literacy'),jdecode(''),'/12201.html','true',[],''],
	['PAGE','12222',jdecode('-+Scholarships'),jdecode(''),'/12222.html','true',[],''],
	['PAGE','594',jdecode('-+Safety+Town'),jdecode(''),'/594.html','true',[],''],
	['PAGE','657',jdecode('-+Run+Thru+The+Vineyards'),jdecode(''),'/657.html','true',[],''],
	['PAGE','678',jdecode('-+Concert+In+The+Vineyard'),jdecode(''),'/678.html','true',[],''],
	['PAGE','12243',jdecode('-+Bus+Bench+Clean-Up'),jdecode(''),'/12243.html','true',[],''],
	['PAGE','699',jdecode('VOCATIONAL+SERVICES'),jdecode(''),'/699.html','true',[],''],
	['PAGE','12264',jdecode('-+Teacher+Of+The+Month'),jdecode(''),'/12264.html','true',[],''],
	['PAGE','720',jdecode('INTERNATIONAL+SERVICE'),jdecode(''),'/720.html','true',[],''],
	['PAGE','20824',jdecode('-+Philippines+*Water+Project+'),jdecode(''),'/20824.html','true',[],''],
	['PAGE','12285',jdecode('-+Unganda+*Water+Project+'),jdecode(''),'/12285.html','true',[],''],
	['PAGE','20948',jdecode('...++Unganda+UPDATE'),jdecode(''),'/20948.html','true',[],''],
	['PAGE','783',jdecode('ROTARY+FOUNDATION'),jdecode(''),'/783.html','true',[],''],
	['PAGE','804',jdecode('NEWS'),jdecode(''),'/804.html','true',[],''],
	['PAGE','21340',jdecode('Interesting+links'),jdecode(''),'/21340.html','true',[],''],
	['PAGE','21901',jdecode('CONTACT+INFORMATION'),jdecode(''),'/21901.html','true',[],''],
	['PAGE','21922',jdecode('Board+and+Committee+Chairs'),jdecode(''),'/21922.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='E99C2E';
theSitetree.keyvisualId='9716';
theSitetree.keyvisualName='kv_9716.gif';
theSitetree.fontsetId='10671';
theSitetree.graphicsetId='11182';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var theTemplate={
				name: 			'Dispose',
				paletteFamily: 	'E99C2E',
				keyvisualId: 	'9716',
				keyvisualName: 	'kv_9716.gif',
				fontsetId: 		'10671',
				graphicsetId: 	'11182',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090605-020023'
};
webappMappings['1002']=webappMappings['1002-7206AHW050IN3C5P']={
webappId:    '1002',
documentId:  '7206',
internalId:  '7206AHW050IN3C5P',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '8501',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '657',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090303-201430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20080818-163138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20080525-222635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20080526-030641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090227-084937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20090204-005121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20080818-163236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12222',
internalId:  '',
customField: '20080818-142833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090726-114614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090726-114738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20080818-130245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12243',
internalId:  '',
customField: '20090310-000149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20090204-005225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12264',
internalId:  '',
customField: '20090310-000319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20090227-083119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12285',
internalId:  '',
customField: '20090224-081639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20080818-121048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20080818-165015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '825',
internalId:  '',
customField: '20090304-225711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20090726-130528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21922',
internalId:  '',
customField: '20090726-151146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7206',
internalId:  '',
customField: '20080525-203540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20080525-203540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20824',
internalId:  '',
customField: '20090224-075735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20948',
internalId:  '',
customField: '20090309-230812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20908',
internalId:  '',
customField: '20090227-084846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21340',
internalId:  '',
customField: '20090304-091134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21449',
internalId:  '',
customField: '20090309-235134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21458',
internalId:  '',
customField: '20090309-233104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21523',
internalId:  '',
customField: '20090309-234611'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3C5P';
var companyName   = 'Temecula+Sunrise+Rotary+%22Service+Above+Self%22';
var htmlTitle	  = 'Temecula+Sunrise+Rotary+%22Service+Above+Self%22';
var metaKeywords  = 'ROTARY++Literacy++Safety+Town++RYLA++PRYDE++Temecula';
var metaContents  = 'Temecula+Sunrise+Rotary%2C+Rotary+International%2C+Literacy%2C+Safety+Town%2C++Leadership+Camp%2C+RYLA%2C+PRYDE%2C+Future+Leaders%2C+Service+Above+Self';
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();
};
