/* [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','11001',jdecode('Home'),jdecode(''),'/11001.html','true',[],''],
	['PAGE','11601',jdecode('About+STAGS'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','85301',jdecode('Contact+Us'),jdecode(''),'/85301.html','true',[],''],
	['PAGE','12101',jdecode('Join+Us'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','129823',jdecode('Code+of+Conduct'),jdecode(''),'/129823.html','true',[],''],
	['PAGE','143123',jdecode('Online+Registration'),jdecode(''),'/143123/index.html','true',[ 
		['PAGE','143423',jdecode('Online+Payment'),jdecode(''),'/143123/143423.html','false',[],'']
	],''],
	['PAGE','77701',jdecode('Download+Registration'),jdecode(''),'/77701.html','true',[],''],
	['PAGE','77101',jdecode('Steve+Nash+Youth'),jdecode(''),'/77101.html','true',[],''],
	['PAGE','77901',jdecode('Fall+Program+2009-10'),jdecode(''),'/77901.html','true',[],''],
	['PAGE','11643',jdecode('Winter+Program+2009-10'),jdecode(''),'/11643/index.html','true',[ 
		['PAGE','116623',jdecode('Teams+%26+Rosters'),jdecode(''),'/11643/116623.html','true',[],''],
		['PAGE','112923',jdecode('Schedule+%26+Standings'),jdecode(''),'/11643/112923.html','true',[],''],
		['PAGE','121023',jdecode('Rules+%26+Regulations'),jdecode(''),'/11643/121023.html','false',[],'']
	],''],
	['PAGE','113423',jdecode('Spring+Program+2010'),jdecode(''),'/113423/index.html','true',[ 
		['PAGE','113444',jdecode('Teams%2FRosters%2FSched'),jdecode(''),'/113423/113444.html','false',[],'']
	],''],
	['PAGE','132544',jdecode('Rules+and+Regulations'),jdecode(''),'/132544.html','false',[],''],
	['PAGE','11301',jdecode('Summer+Camp+2010'),jdecode(''),'/11301/index.html','true',[ 
		['PAGE','86922',jdecode('Camp+Details'),jdecode(''),'/11301/86922.html','false',[],''],
		['PAGE','135723',jdecode('Registration'),jdecode(''),'/11301/135723.html','false',[],'']
	],''],
	['PAGE','11364',jdecode('Rep+Team+2009-10'),jdecode(''),'/11364/index.html','true',[ 
		['PAGE','93901',jdecode('Atom+Boys+%28U11%2FU10%29'),jdecode(''),'/11364/93901.html','false',[],''],
		['PAGE','93922',jdecode('Atom+Girls+%28U11%2FU10%29'),jdecode(''),'/11364/93922.html','false',[],''],
		['PAGE','93985',jdecode('Midget+Girls+%28U15%2FU14%29'),jdecode(''),'/11364/93985.html','false',[],''],
		['PAGE','94006',jdecode('Midget+Boys+%231+%28U15%29+'),jdecode(''),'/11364/94006.html','false',[],''],
		['PAGE','103101',jdecode('Midget+Boys+%232+%28U15%2FU14%29'),jdecode(''),'/11364/103101.html','false',[],''],
		['PAGE','162023',jdecode('Try-out'),jdecode(''),'/11364/162023.html','true',[],'']
	],''],
	['PAGE','164123',jdecode('Community+Funding'),jdecode(''),'/164123.html','true',[],''],
	['PAGE','128323',jdecode('Mega+Hoops+Mania'),jdecode(''),'/128323/index.html','true',[ 
		['PAGE','133323',jdecode('Award+Recipients'),jdecode(''),'/128323/133323.html','true',[],'']
	],''],
	['PAGE','42801',jdecode('Coach%26%23x27%3Bs+Corner'),jdecode(''),'/42801/index.html','true',[ 
		['PAGE','205134',jdecode('Coaching+Clinic'),jdecode(''),'/42801/205134.html','true',[],''],
		['PAGE','89201',jdecode('NCCP+Clinic'),jdecode(''),'/42801/89201.html','true',[],''],
		['PAGE','85201',jdecode('Award'),jdecode(''),'/42801/85201.html','true',[],''],
		['PAGE','93401',jdecode('CAO+Newsletter'),jdecode(''),'/42801/93401.html','true',[],'']
	],''],
	['PAGE','82101',jdecode('Sponsors'),jdecode(''),'/82101/index.html','true',[ 
		['PAGE','18701',jdecode('Corporate'),jdecode(''),'/82101/18701.html','true',[],''],
		['PAGE','82122',jdecode('Retail'),jdecode(''),'/82101/82122.html','true',[],''],
		['PAGE','82143',jdecode('Individual'),jdecode(''),'/82101/82143.html','true',[],'']
	],''],
	['PAGE','89801',jdecode('Photo+Gallery'),jdecode(''),'/89801/index.html','true',[ 
		['PAGE','80001',jdecode('SUMMER+CAMP+2008'),jdecode(''),'/89801/80001.html','true',[],''],
		['PAGE','117223',jdecode('SNYB+FALL+2008'),jdecode(''),'/89801/117223.html','true',[],''],
		['PAGE','150623',jdecode('SNYB+SPRING+2009'),jdecode(''),'/89801/150623.html','true',[],'']
	],''],
	['PAGE','82164',jdecode('Financial+Aid'),jdecode(''),'/82164/index.html','true',[ 
		['PAGE','83801',jdecode('Recipient+2008'),jdecode(''),'/82164/83801.html','true',[],'']
	],''],
	['PAGE','86701',jdecode('Maps+'),jdecode(''),'/86701.html','true',[],''],
	['PAGE','86601',jdecode('Link'),jdecode(''),'/86601.html','false',[],''],
	['PAGE','88201',jdecode('Tournaments'),jdecode(''),'/88201.html','false',[],'']];
var siteelementCount=48;
theSitetree.topTemplateName='Sportfan2';
theSitetree.paletteFamily='FDEDC0';
theSitetree.keyvisualId='10137';
theSitetree.keyvisualName='kv_10137.jpg';
theSitetree.fontsetId='21088';
theSitetree.graphicsetId='13186';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Sportfan2',
				paletteFamily: 	'FDEDC0',
				keyvisualId: 	'10137',
				keyvisualName: 	'kv_10137.jpg',
				fontsetId: 		'21088',
				graphicsetId: 	'13186',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20100302-085816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11643',
internalId:  '',
customField: '20100205-123556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11364',
internalId:  '',
customField: '20100205-124311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20100201-145327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100219-152356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20100201-160126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100205-123134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20100205-125606'
};
webappMappings['7008']=webappMappings['7008-1122']={
webappId:    '7008',
documentId:  '12101',
internalId:  '1122',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-25637']={
webappId:    '7008',
documentId:  '205134',
internalId:  '25637',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-6081685']={
webappId:    '1501',
documentId:  '11001',
internalId:  '6081685',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82101',
internalId:  '',
customField: '20090821-173431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77101',
internalId:  '',
customField: '20100205-123419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20100205-123349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77901',
internalId:  '',
customField: '20100205-123459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82122',
internalId:  '',
customField: '20100205-124738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82164',
internalId:  '',
customField: '20100201-160322'
};
webappMappings['7060']=webappMappings['7060-e6f4e2d8140ab710af57f6c4e9ad79aa']={
webappId:    '7060',
documentId:  '80001',
internalId:  'e6f4e2d8140ab710af57f6c4e9ad79aa',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82143',
internalId:  '',
customField: '20100205-124848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80001',
internalId:  '',
customField: '20090821-174417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83801',
internalId:  '',
customField: '20090821-174745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85301',
internalId:  '',
customField: '20100219-153001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93901',
internalId:  '',
customField: '20090301-164101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85201',
internalId:  '',
customField: '20090821-173252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86701',
internalId:  '',
customField: '20100304-104652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86601',
internalId:  '',
customField: '20080821-142719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132544',
internalId:  '',
customField: '20090302-232010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86922',
internalId:  '',
customField: '20090610-094058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88201',
internalId:  '',
customField: '20090427-141911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20100201-160219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89801',
internalId:  '',
customField: '20090821-174352'
};
webappMappings['7060']=webappMappings['7060-b6d0edbca718bae9e9cf15cfa34e9ee4']={
webappId:    '7060',
documentId:  '150623',
internalId:  'b6d0edbca718bae9e9cf15cfa34e9ee4',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93401',
internalId:  '',
customField: '20090821-173404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164123',
internalId:  '',
customField: '20100201-160014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113423',
internalId:  '',
customField: '20100304-104355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93922',
internalId:  '',
customField: '20090301-164229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112923',
internalId:  '',
customField: '20100222-075437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103101',
internalId:  '',
customField: '20090301-164631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93985',
internalId:  '',
customField: '20090301-164347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94006',
internalId:  '',
customField: '20090301-164507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113444',
internalId:  '',
customField: '20090613-110626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162023',
internalId:  '',
customField: '20091125-202105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116623',
internalId:  '',
customField: '20100117-102425'
};
webappMappings['7060']=webappMappings['7060-3915fa278166c41a3f45c8ee3ffff690']={
webappId:    '7060',
documentId:  '117223',
internalId:  '3915fa278166c41a3f45c8ee3ffff690',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117223',
internalId:  '',
customField: '20090821-174448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121023',
internalId:  '',
customField: '20090301-172308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128323',
internalId:  '',
customField: '20090821-172506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129823',
internalId:  '',
customField: '20100205-123212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143123',
internalId:  '',
customField: '20100205-123317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133323',
internalId:  '',
customField: '20090821-172622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135723',
internalId:  '',
customField: '20090610-094131'
};
webappMappings['7008']=webappMappings['7008-20199']={
webappId:    '7008',
documentId:  '143123',
internalId:  '20199',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143423',
internalId:  '',
customField: '20090829-195915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150623',
internalId:  '',
customField: '20090821-174521'
};
webappMappings['4001']=webappMappings['4001-21681295']={
webappId:    '4001',
documentId:  '143423',
internalId:  '21681295',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205134',
internalId:  '',
customField: '20100205-083622'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11001',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2DCW';
var companyName   = 'Home+of+The+Milton+Stags%21';
var htmlTitle	  = 'MILTON+STAGS+BASKETBALL+CLUB';
var metaKeywords  = 'Youth+Basketball+in+Milton%2C+Milton%2C+Ontario%2C+Milton%2C+ON%2C+Stags%2C+Stags+Basketball%2C+Milton+Basketball%2C+Club%2C+Youth%2C+Youth+Basketball%2C+Minor%2C+House+League%2C+Rep+Team%2C+Summer+Camp%2C+Skills+Development%2C+Mens+League%2C+Children%2C+Boys+and+Girls%2C+Boys%2C+Girls%2C+Training%2C+Coach%2C+OBA%2C+Milton+Ontario%2C+Skills%2C+Drills%2C+Ages+8-14%2C+improvement%2C+development%2C+achievement%2C+fast+growing%2C+community%2C+Town+of+Milton+Basketball%2C+Mike+Borlongan%2C+NCCP%2C+Sanctioned+Tournaments%2C+Fall%2C+Winter%2C+Summer%2C+Champion%2C+Steve+Nash%2C+Steve+Nash+Youth%2C+Steve+Nash+Youth+Basketball%2C+Steve+Nash+in+Milton%2C+Milton+Steve+Nash%2C+Youth+Steve+Nash+in+Milton%2C+Milton+Youth+Steve+Nash';
var metaContents  = 'One+of+the+fastest+growing+youth+basketball+club+in+Milton%2C+Stags+Basketball+Club.+It+was+founded+to+promote+the+development+of+youth+in+the+community+of+Peel+and+Halton+region.+Our+goal+is+to+provide+basketball+activities+that+offer+social%2C+recreational+and+physical+developments.+Our+club+is+a+not-for-profit+incorporated+corporation+and+governed+by+an+all-volunteer+parents+and+coaches.';
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();
};
