/* [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','53',jdecode('Home'),jdecode(''),'/53/index.html','true',[ 
		['PAGE','3668',jdecode('About+the+Club'),jdecode(''),'/53/3668.html','true',[],''],
		['PAGE','8967',jdecode('Our+Staff'),jdecode(''),'/53/8967.html','true',[],''],
		['PAGE','9041',jdecode('Goals'),jdecode(''),'/53/9041.html','true',[],'']
	],''],
	['PAGE','74',jdecode('Joining+the+Club'),jdecode(''),'/74/index.html','true',[ 
		['PAGE','3813',jdecode('Tuition'),jdecode(''),'/74/3813.html','true',[],''],
		['PAGE','3892',jdecode('Policies+of+Play'),jdecode(''),'/74/3892.html','true',[],'']
	],''],
	['PAGE','5056',jdecode('18%26%23x27%3Bs'),jdecode(''),'/5056/index.html','true',[ 
		['PAGE','6914',jdecode('Meet+the+Team'),jdecode(''),'/5056/6914.html','true',[],''],
		['PAGE','5297',jdecode('Practice+Location'),jdecode(''),'/5056/5297.html','true',[],'']
	],''],
	['PAGE','5065',jdecode('16%26%23x27%3Bs'),jdecode(''),'/5065/index.html','true',[ 
		['PAGE','17501',jdecode('Meet+the+Team'),jdecode(''),'/5065/17501.html','true',[],''],
		['PAGE','5306',jdecode('Practice+Location'),jdecode(''),'/5065/5306.html','true',[],'']
	],''],
	['PAGE','5083',jdecode('15%26%23x27%3Bs'),jdecode(''),'/5083/index.html','true',[ 
		['PAGE','5324',jdecode('Practice+Location'),jdecode(''),'/5083/5324.html','true',[],'']
	],''],
	['PAGE','10271',jdecode('14%26%23x27%3Bs'),jdecode(''),'/10271.html','true',[],''],
	['PAGE','6217',jdecode('Travel+Plans'),jdecode(''),'/6217.html','true',[],''],
	['PAGE','9223',jdecode('College+Talk'),jdecode(''),'/9223.html','true',[],''],
	['PAGE','6802',jdecode('Summer+Camp'),jdecode(''),'/6802.html','true',[],''],
	['PAGE','1292',jdecode('Volleyball+Links'),jdecode(''),'/1292.html','true',[],''],
	['PAGE','101',jdecode('Contact+Us'),jdecode(''),'/101/index.html','true',[ 
		['PAGE','4761',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/101/4761.html','false',[],''],
		['PAGE','110',jdecode('email+a+coach'),jdecode(''),'/101/110.html','true',[],'']
	],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10575';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10575',
				graphicsetId: 	'10527',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '53',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-ahw050in3gbnc4e47037f472640b']={
webappId:    '1001',
documentId:  '101',
internalId:  'ahw050in3gbnc4e47037f472640b',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in3gbnc4e47037f472640b']={
webappId:    '1001',
documentId:  '4761',
internalId:  'ahw050in3gbnc4e47037f472640b',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20100124-090438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74',
internalId:  '',
customField: '20100109-111057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3668',
internalId:  '',
customField: '20071203-163411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8967',
internalId:  '',
customField: '20071201-020128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9041',
internalId:  '',
customField: '20071203-163509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3813',
internalId:  '',
customField: '20091102-173004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3892',
internalId:  '',
customField: '20081005-180103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5056',
internalId:  '',
customField: '20100123-163511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6914',
internalId:  '',
customField: '20100126-052017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5297',
internalId:  '',
customField: '20100123-120058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5065',
internalId:  '',
customField: '20100123-120200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20100123-120122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5083',
internalId:  '',
customField: '20100123-120214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5324',
internalId:  '',
customField: '20081201-140638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10271',
internalId:  '',
customField: '20100123-120031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6217',
internalId:  '',
customField: '20091213-142110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9223',
internalId:  '',
customField: '20091018-130721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6802',
internalId:  '',
customField: '20090825-091950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1292',
internalId:  '',
customField: '20071130-140135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101',
internalId:  '',
customField: '20071130-140506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4761',
internalId:  '',
customField: '20061121-024920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110',
internalId:  '',
customField: '20080413-124747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20081112-080234'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3GBN';
var companyName   = 'FURY+Volleyball';
var htmlTitle	  = 'Long+Island+FURY';
var metaKeywords  = 'long+island++fury++club++volleyball';
var metaContents  = 'Girls+club+volleyball';
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();
};
