/* [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','2201',jdecode('Home'),jdecode(''), jdecode('%2F2201.html'), 'true',[],'',''],
	['PAGE','2567',jdecode('About+Frisco+Indoor+Sports'),jdecode(''), jdecode('%2F2567.html'), 'false',[],'',''],
	['PAGE','19801',jdecode('Facility+Gallery'),jdecode(''), jdecode('%2F19801.html'), 'false',[],'',''],
	['PAGE','2252',jdecode('Registration+Information'),jdecode(''), jdecode('%2F2252.html'), 'true',[],'',''],
	['PAGE','276012',jdecode('Adult+Soccer+%26+Futsal'),jdecode(''), jdecode('%2F276012.html'), 'true',[],'',''],
	['PAGE','276033',jdecode('Youth+Soccer+%26+Futsal'),jdecode(''), jdecode('%2F276033.html'), 'true',[],'',''],
	['PAGE','13201',jdecode('Schedules+%26+Standings'),jdecode(''), jdecode('%2F13201.html'), 'true',[],'',''],
	['PAGE','274912',jdecode('Indoor+Academy+League'),jdecode(''), jdecode('%2F274912.html'), 'true',[],'',''],
	['PAGE','5922',jdecode('Winter+Break+Camps'),jdecode(''), jdecode('%2F5922.html'), 'false',[],'',''],
	['PAGE','2357',jdecode('Futsal+%28Turf%29'),jdecode(''), jdecode('%2F2357.html'), 'true',[],'',''],
	['PAGE','2735',jdecode('Online+Registration'),jdecode(''), jdecode('%2F2735.html'), 'true',[],'',''],
	['PAGE','29501',jdecode('3v3+Spring+Break+Tournament'),jdecode(''), jdecode('%2F29501.html'), 'false',[],'',''],
	['PAGE','2399',jdecode('Open+Soccer+Skills+Training'),jdecode(''), jdecode('%2F2399.html'), 'true',[],'',''],
	['PAGE','70501',jdecode('Xplosion+-+Speed%2C+Agility%2C+Quickness'),jdecode(''), jdecode('%2F70501.html'), 'false',[],'',''],
	['PAGE','2294',jdecode('Indoor+Soccer'),jdecode(''), jdecode('%2F2294.html'), 'false',[],'',''],
	['PAGE','2462',jdecode('Dodgeball'),jdecode(''), jdecode('%2F2462.html'), 'false',[],'',''],
	['PAGE','14701',jdecode('Pictures+of+the+Field'),jdecode(''), jdecode('%2F14701.html'), 'false',[],'',''],
	['PAGE','2336',jdecode('3v3+-+No+Walls'),jdecode(''), jdecode('%2F2336.html'), 'false',[],'',''],
	['PAGE','2315',jdecode('4v4+-+No+Walls'),jdecode(''), jdecode('%2F2315.html'), 'false',[],'',''],
	['PAGE','2441',jdecode('Flag+Football'),jdecode(''), jdecode('%2F2441.html'), 'false',[],'',''],
	['PAGE','5901',jdecode('Lacrosse'),jdecode(''), jdecode('%2F5901.html'), 'false',[],'',''],
	['PAGE','2483',jdecode('Field+Rentals'),jdecode(''), jdecode('%2F2483.html'), 'false',[],'',''],
	['PAGE','2378',jdecode('Birthday+Parties'),jdecode(''), jdecode('%2F2378.html'), 'false',[],'',''],
	['PAGE','2525',jdecode('Personal+Training'),jdecode(''), jdecode('%2F2525.html'), 'false',[],'',''],
	['PAGE','6101',jdecode('Goalie+Training'),jdecode(''), jdecode('%2F6101.html'), 'false',[],'',''],
	['PAGE','21201',jdecode('Map+%26+Directions'),jdecode(''), jdecode('%2F21201.html'), 'false',[],'',''],
	['PAGE','12201',jdecode('Parents+Night+Out+-+Kids+Night+at+FIS'),jdecode(''), jdecode('%2F12201.html'), 'false',[],'',''],
	['PAGE','11801',jdecode('Tournaments'),jdecode(''), jdecode('%2F11801.html'), 'false',[],'',''],
	['PAGE','15201',jdecode('Rules'),jdecode(''), jdecode('%2F15201.html'), 'true',[],'',''],
	['PAGE','5943',jdecode('Small-Sided+Soccer+Info'),jdecode(''), jdecode('%2F5943.html'), 'false',[],'',''],
	['PAGE','2504',jdecode('Rosters+%26+Paperwork'),jdecode(''), jdecode('%2F2504.html'), 'true',[],'',''],
	['PAGE','71601',jdecode('Championship+Pictures'),jdecode(''), jdecode('%2F71601.html'), 'true',[],'',''],
	['PAGE','8401',jdecode('Prices'),jdecode(''), jdecode('%2F8401.html'), 'true',[],'',''],
	['PAGE','2714',jdecode('Contact+us'),jdecode(''), jdecode('%2F2714.html'), 'true',[],'',''],
	['PAGE','2630',jdecode('About+us'),jdecode(''), jdecode('%2F2630%2Findex.html'), 'false',[ 
		['PAGE','2672',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F2630%2F2672.html'), 'true',[],'',''],
		['PAGE','2693',jdecode('Opening+hours'),jdecode(''), jdecode('%2F2630%2F2693.html'), 'true',[],'','']
	],'',''],
	['PAGE','2756',jdecode('Price'),jdecode(''), jdecode('%2F2756.html'), 'false',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Soccer';
theSitetree.paletteFamily='4A67FC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10499';
theSitetree.graphicsetId='11114';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Soccer',
				paletteFamily: 	'4A67FC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10499',
				graphicsetId: 	'11114',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4A67FC',
				e_color: 		'4A67FC',
				f_color: 		'4A67FC',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-12391']={
webappId:    '7008',
documentId:  '2735',
internalId:  '12391',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20120207-141738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20111018-144343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2735',
internalId:  '',
customField: '20091126-172208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2714',
internalId:  '',
customField: '20110419-104942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2567',
internalId:  '',
customField: '20091201-010603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20091126-151050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20091028-023522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2756',
internalId:  '',
customField: '20091026-231957'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-14812659']={
webappId:    '1501',
documentId:  '2201',
internalId:  '14812659',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2294',
internalId:  '',
customField: '20100422-032923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2336',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2357',
internalId:  '',
customField: '20111018-144515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2378',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2399',
internalId:  '',
customField: '20111209-104726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71601',
internalId:  '',
customField: '20111016-133810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2441',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2462',
internalId:  '',
customField: '20110118-033214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2483',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2504',
internalId:  '',
customField: '20100428-150956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2525',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20091028-023623'
};
webappMappings['7060']=webappMappings['7060-5e6f3e9aa859d5a084908a9322fecc1a']={
webappId:    '7060',
documentId:  '19801',
internalId:  '5e6f3e9aa859d5a084908a9322fecc1a',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2630',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20111214-015244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2672',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2693',
internalId:  '',
customField: '20091026-231954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20111013-041000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20091128-021615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20091028-023523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20091127-001226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20120208-131111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20091126-162409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20091127-003940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20091127-014342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20100305-160032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70501',
internalId:  '',
customField: '20100824-135420'
};
webappMappings['7060']=webappMappings['7060-d20cef080acfa7c0702fd3f2447939db']={
webappId:    '7060',
documentId:  '71601',
internalId:  'd20cef080acfa7c0702fd3f2447939db',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274912',
internalId:  '',
customField: '20111104-010113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276033',
internalId:  '',
customField: '20120125-111629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276012',
internalId:  '',
customField: '20120130-115712'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHPB4';
var companyName   = 'Frisco+Indoor+Sports';
var htmlTitle	  = 'Frisco+Indoor+Sports';
var metaKeywords  = '';
var metaContents  = '';
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();
};

