/* [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','32',jdecode('HOME'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','601',jdecode('ABOUT+US'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','3919',jdecode('MISSION+STATEMENT'),jdecode(''),'/3919.html','true',[],'',''],
	['PAGE','49612',jdecode('BILAWS'),jdecode(''),'/49612.html','false',[],'',''],
	['PAGE','2745',jdecode('OFFICERS'),jdecode(''),'/2745.html','true',[],'',''],
	['PAGE','5308',jdecode('CONTACT+US'),jdecode(''),'/5308/index.html','true',[ 
		['PAGE','5374',jdecode('GUESTBOOK+%28follow+up+page%29'),jdecode(''),'/5308/5374.html','false',[],'','']
	],'',''],
	['PAGE','619',jdecode('MEMBERSHIP'),jdecode(''),'/619.html','true',[],'',''],
	['PAGE','37312',jdecode('IN+MEMORIAM'),jdecode(''),'/37312.html','true',[],'',''],
	['PAGE','5252',jdecode('JSRA+FORUM'),jdecode(''),'/5252.html','true',[],'',''],
	['PAGE','14308',jdecode('Training+Forum'),jdecode(''),'/14308.html','true',[],'',''],
	['PAGE','53912',jdecode('SERIES+CHAMPIONS'),jdecode(''),'/53912.html','true',[],'',''],
	['PAGE','55312',jdecode('COMPETITION'),jdecode(''),'/55312/index.html','true',[ 
		['PAGE','60612',jdecode('2010+Event+calendar'),jdecode(''),'/55312/60612.html','true',[],'',''],
		['PAGE','61712',jdecode('2010+Results'),jdecode(''),'/55312/61712.html','true',[],'',''],
		['PAGE','37712',jdecode('2009+Event+Calendar'),jdecode(''),'/55312/37712.html','true',[],'',''],
		['PAGE','42512',jdecode('09+RACE+RESULTS'),jdecode(''),'/55312/42512.html','true',[],'',''],
		['PAGE','14483',jdecode('08+Race+Results'),jdecode(''),'/55312/14483.html','true',[],'',''],
		['PAGE','7602',jdecode('07+Race+Results'),jdecode(''),'/55312/7602.html','true',[],'',''],
		['PAGE','3797',jdecode('06+Race+Results'),jdecode(''),'/55312/3797.html','true',[],'',''],
		['PAGE','13998',jdecode('07+Winter+Series'),jdecode(''),'/55312/13998.html','true',[],'','']
	],'',''],
	['PAGE','3806',jdecode('ITEMS+FOR+SALE'),jdecode(''),'/3806.html','true',[],'',''],
	['PAGE','14860',jdecode('08+PHOTOS'),jdecode(''),'/14860/index.html','true',[ 
		['PAGE','14735',jdecode('Shrewsbury+Cup+08'),jdecode(''),'/14860/14735.html','true',[],'',''],
		['PAGE','23501',jdecode('Shark+River+Cup'),jdecode(''),'/14860/23501.html','true',[],'',''],
		['PAGE','26712',jdecode('Around+The+Island'),jdecode(''),'/14860/26712.html','true',[],'','']
	],'',''],
	['PAGE','6052',jdecode('PHOTO+ALBUM'),jdecode(''),'/6052.html','true',[],'',''],
	['PAGE','58512',jdecode('VINTAGE'),jdecode(''),'/58512.html','true',[],'',''],
	['PAGE','7678',jdecode('07+PHOTOS'),jdecode(''),'/7678.html','true',[],'',''],
	['PAGE','4034',jdecode('MEDIA'),jdecode(''),'/4034/index.html','true',[ 
		['PAGE','5041',jdecode('AP+Press+8-26-06'),jdecode(''),'/4034/5041.html','true',[],'',''],
		['PAGE','7357',jdecode('Star+Ledger+5-24-07'),jdecode(''),'/4034/7357.html','true',[],'',''],
		['PAGE','11392',jdecode('NJ+Monthly+June+07'),jdecode(''),'/4034/11392.html','true',[],'',''],
		['PAGE','12091',jdecode('Coast+Star+6-21-07'),jdecode(''),'/4034/12091.html','true',[],'',''],
		['PAGE','13021',jdecode('Super+Doc+APP+7-7-07'),jdecode(''),'/4034/13021.html','true',[],'','']
	],'',''],
	['PAGE','6123',jdecode('NEWS+CLIPPINGS'),jdecode(''),'/6123.html','true',[],'',''],
	['PAGE','36412',jdecode('GOOD+READING'),jdecode(''),'/36412.html','true',[],'',''],
	['PAGE','3863',jdecode('OUR+SPONSORS'),jdecode(''),'/3863.html','true',[],'',''],
	['PAGE','7417',jdecode('SPONSORSHIP'),jdecode(''),'/7417.html','true',[],'',''],
	['PAGE','13353',jdecode('JR+GUARD+CLINIC'),jdecode(''),'/13353.html','true',[],'',''],
	['PAGE','5929',jdecode('LINKS'),jdecode(''),'/5929.html','true',[],'',''],
	['PAGE','14261',jdecode('Directions'),jdecode(''),'/14261.html','true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10575';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='00FF00';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10575',
				graphicsetId: 	'10527',
				contentColor: 	'00FF00',
				contentBGColor: '000000',
				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['1501']=webappMappings['1501-75180']={
webappId:    '1501',
documentId:  '32',
internalId:  '75180',
customField: '1501'
};
webappMappings['1003']=webappMappings['1003-ahw050inxx3n11aa1503077']={
webappId:    '1003',
documentId:  '5252',
internalId:  'ahw050inxx3n11aa1503077',
customField: 'en:US:'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14261',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1003']=webappMappings['1003-ahw050inxx3n11aa15044f2']={
webappId:    '1003',
documentId:  '14308',
internalId:  'ahw050inxx3n11aa15044f2',
customField: 'en:US:'
};
webappMappings['7060']=webappMappings['7060-4700a8419a0a35591a3bc042f1243cb7']={
webappId:    '7060',
documentId:  '6052',
internalId:  '4700a8419a0a35591a3bc042f1243cb7',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-5360404503409d43321b5e25590da7f0']={
webappId:    '7060',
documentId:  '6123',
internalId:  '5360404503409d43321b5e25590da7f0',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-f945de4415899315a183c416f210778c']={
webappId:    '7060',
documentId:  '7678',
internalId:  'f945de4415899315a183c416f210778c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61712',
internalId:  '',
customField: '20100811-124152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60612',
internalId:  '',
customField: '20100516-205350'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '32',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100811-120409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55312',
internalId:  '',
customField: '20090905-134135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14483',
internalId:  '',
customField: '20080706-123808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14860',
internalId:  '',
customField: '20081213-094014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14735',
internalId:  '',
customField: '20080706-171211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20080621-211044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26712',
internalId:  '',
customField: '20080706-135032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3919',
internalId:  '',
customField: '20070211-231705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20070226-002113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2745',
internalId:  '',
customField: '20090517-153741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20070916-171700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14308',
internalId:  '',
customField: '20080328-231003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3863',
internalId:  '',
customField: '20070711-222206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7417',
internalId:  '',
customField: '20070705-193258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13353',
internalId:  '',
customField: '20070714-233138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5308',
internalId:  '',
customField: '20070215-031046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5374',
internalId:  '',
customField: '20070215-030509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '619',
internalId:  '',
customField: '20090524-190744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5929',
internalId:  '',
customField: '20070714-192311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6052',
internalId:  '',
customField: '20070310-174629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7678',
internalId:  '',
customField: '20070528-023411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7602',
internalId:  '',
customField: '20070901-231416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13998',
internalId:  '',
customField: '20080517-162912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3797',
internalId:  '',
customField: '20070325-184443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4034',
internalId:  '',
customField: '20080330-023843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5041',
internalId:  '',
customField: '20070220-032627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7357',
internalId:  '',
customField: '20070525-011407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11392',
internalId:  '',
customField: '20070530-230004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12091',
internalId:  '',
customField: '20070629-222614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13021',
internalId:  '',
customField: '20070709-172427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6123',
internalId:  '',
customField: '20070310-181442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3806',
internalId:  '',
customField: '20091122-145116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14261',
internalId:  '',
customField: '20080209-204621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36412',
internalId:  '',
customField: '20090518-152033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37312',
internalId:  '',
customField: '20090518-153707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37712',
internalId:  '',
customField: '20090626-114147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42512',
internalId:  '',
customField: '20090907-192831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49612',
internalId:  '',
customField: '20090720-192011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53912',
internalId:  '',
customField: '20090920-185710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58512',
internalId:  '',
customField: '20100331-194940'
};
webappMappings['7008']=webappMappings['7008-8144']={
webappId:    '7008',
documentId:  '5308',
internalId:  '8144',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX3N';
var companyName   = 'JERSEY+SHORE+ROWING+ASSOCIATION';
var htmlTitle	  = '%2F%2FJersey+Shore+Rowing+Association%2F';
var metaKeywords  = 'HEADMETA+name%3Dkeywords+content%3Drowing%2C+shore%2C+jersey%2C+boat%2C+surfboat%2C+asay%2C+usla%2C+oars%2C++surfboat+racing+%2FHEAD';
var metaContents  = 'HEAD+TITLEjersey+shore+rowing+association%2FTITLE+META+name%3Ddescription+content%3Djersey+shore+rowing+association.+';
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();
};
