/* [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','14701',jdecode('Home'),jdecode(''),'/14701.html','true',[],''],
	['PAGE','14752',jdecode('2009+Programs'),jdecode(''),'/14752.html','true',[],''],
	['PAGE','16201',jdecode('Code+of+Conduct'),jdecode(''),'/16201.html','true',[],''],
	['PAGE','14773',jdecode('OSLC+Coaching+Staff'),jdecode(''),'/14773.html','true',[],''],
	['PAGE','36001',jdecode('OSL+Late+Fall+League'),jdecode(''),'/36001.html','true',[],''],
	['PAGE','34143',jdecode('OSL+HS+Boys+Fall+Ball+Info.'),jdecode(''),'/34143.html','true',[],''],
	['PAGE','40601',jdecode('Yuletide+Men%26%23x27%3Bs+League'),jdecode(''),'/40601.html','true',[],''],
	['PAGE','34164',jdecode('OSL+Fall+Ball+Reg.+Form'),jdecode(''),'/34164.html','true',[],''],
	['PAGE','34101',jdecode('Dodge+%26+Shoot+Info.'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','34122',jdecode('Dodge+%26+Shoot+Reg.+Form'),jdecode(''),'/34122.html','true',[],''],
	['PAGE','16264',jdecode('OSL+Warriors+Summer+Team+Info.'),jdecode(''),'/16264.html','true',[],''],
	['PAGE','14836',jdecode('Warriors+Registration+Form'),jdecode(''),'/14836.html','true',[],''],
	['PAGE','14794',jdecode('2009+OSLC+college+recruits'),jdecode(''),'/14794.html','true',[],''],
	['PAGE','14857',jdecode('Warrior+Alumni'),jdecode(''),'/14857.html','true',[],''],
	['PAGE','16243',jdecode('OSL+Summer+Camp+Info.'),jdecode(''),'/16243.html','true',[],''],
	['PAGE','14815',jdecode('OSL+Camp+Form+'),jdecode(''),'/14815.html','true',[],''],
	['PAGE','16285',jdecode('Photo+Gallery'),jdecode(''),'/16285.html','true',[],''],
	['PAGE','16222',jdecode('Help+Wanted'),jdecode(''),'/16222.html','true',[],''],
	['PAGE','25701',jdecode('Gratitudes'),jdecode(''),'/25701.html','true',[],''],
	['PAGE','20801',jdecode('Related+Links'),jdecode(''),'/20801.html','true',[],''],
	['PAGE','22101',jdecode('Contact+Us'),jdecode(''),'/22101.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6901';
theSitetree.keyvisualName='kv_6901.jpg';
theSitetree.fontsetId='11211';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6901',
				keyvisualName: 	'kv_6901.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'94AAE1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20091024-080339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14752',
internalId:  '',
customField: '20090917-123840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14773',
internalId:  '',
customField: '20091015-230307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16285',
internalId:  '',
customField: '20091016-171116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16243',
internalId:  '',
customField: '20090422-111031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16264',
internalId:  '',
customField: '20090514-162539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14815',
internalId:  '',
customField: '20090529-160506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14836',
internalId:  '',
customField: '20090917-111356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14857',
internalId:  '',
customField: '20090417-153818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20090916-134358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20090517-082636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20091015-225914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20090701-201836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14794',
internalId:  '',
customField: '20090529-152803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16222',
internalId:  '',
customField: '20090406-122746'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20091015-225745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20090917-123237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34143',
internalId:  '',
customField: '20090917-112545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34164',
internalId:  '',
customField: '20090917-123201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20091024-081226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20091112-120410'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEEZ0';
var companyName   = '++++++++The+Ocean+State+Lacrosse+Club';
var htmlTitle	  = '';
var metaKeywords  = 'ocean+state+warriors%2C+ocean+state+lacrosse+camp%2C+ocean+state+dodge+and+shoot%2C+jeff+popham%2C+rhode+island+lacrosse';
var metaContents  = 'The+Ocean+State+Lacrosse+Club+offers+athletic+development++competitive+opportunities+for+youth+and+high+school+lacrosse+players+through+a+number+of+programs%3A-+Ocean+State+Summer+Lacrosse+Camp%2C+Ocean+State+Warriors+Travel+teams%2C+Ocean+State+Late+Fall++Winter+Indoor+Leagues%2C+Ocean+State+Dodge++Shoot+Skills+Sessions';
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();
};
