/* [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','601',jdecode('Home'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','149312',jdecode('News'),jdecode(''), jdecode('%2F149312.html'), 'true',[],'',''],
	['PAGE','109612',jdecode('Aaron%26%23x27%3Bs+Locker'),jdecode(''), jdecode('%2F109612%2Findex.html'), 'true',[ 
		['PAGE','152112',jdecode('What%26%23x27%3Bs+In+My+Bag'),jdecode(''), jdecode('%2F109612%2F152112.html'), 'true',[],'',''],
		['PAGE','173953',jdecode('My+2011+results'),jdecode(''), jdecode('%2F109612%2F173953.html'), 'true',[],'',''],
		['PAGE','185053',jdecode('About+Me'),jdecode(''), jdecode('%2F109612%2F185053.html'), 'true',[],'',''],
		['PAGE','185074',jdecode('My+Swing+Clinic'),jdecode(''), jdecode('%2F109612%2F185074.html'), 'true',[],'',''],
		['PAGE','192253',jdecode('My+Upcoming+Tournaments'),jdecode(''), jdecode('%2F109612%2F192253.html'), 'true',[],'','']
	],'',''],
	['PAGE','175653',jdecode('Fayde+Golf'),jdecode(''), jdecode('%2F175653%2Findex.html'), 'true',[ 
		['PAGE','175674',jdecode('Fayde+for+Mens+Fashion'),jdecode(''), jdecode('%2F175653%2F175674.html'), 'true',[],'',''],
		['PAGE','175695',jdecode('Fayde+the+Ladies+Fashion'),jdecode(''), jdecode('%2F175653%2F175695.html'), 'true',[],'',''],
		['PAGE','177353',jdecode('Fayde+Accessories'),jdecode(''), jdecode('%2F175653%2F177353.html'), 'true',[],'','']
	],'',''],
	['PAGE','5001',jdecode('Victorian+Championship'),jdecode(''), jdecode('%2F5001%2Findex.html'), 'true',[ 
		['PAGE','132412',jdecode('2010+Results'),jdecode(''), jdecode('%2F5001%2F132412.html'), 'true',[],'',''],
		['PAGE','139712',jdecode('2011+The+Draw+'),jdecode(''), jdecode('%2F5001%2F139712.html'), 'true',[],'',''],
		['PAGE','135912',jdecode('2011+Results'),jdecode(''), jdecode('%2F5001%2F135912.html'), 'true',[],'','']
	],'',''],
	['PAGE','652',jdecode('Australian+Final+'),jdecode(''), jdecode('%2F652%2Findex.html'), 'true',[ 
		['PAGE','139733',jdecode('2011+The+Draw+'),jdecode(''), jdecode('%2F652%2F139733.html'), 'true',[],'',''],
		['PAGE','135933',jdecode('2011+Player+Results'),jdecode(''), jdecode('%2F652%2F135933.html'), 'true',[],'',''],
		['PAGE','169053',jdecode('2011+Team+Results'),jdecode(''), jdecode('%2F652%2F169053.html'), 'true',[],'','']
	],'',''],
	['PAGE','198153',jdecode('China+2011+Championship'),jdecode(''), jdecode('%2F198153%2Findex.html'), 'true',[ 
		['PAGE','202653',jdecode('Live+Scoring+-+Lion+Lake'),jdecode(''), jdecode('%2F198153%2F202653.html'), 'true',[],'',''],
		['PAGE','139754',jdecode('The+Draw+Sunday+Round+4'),jdecode(''), jdecode('%2F198153%2F139754.html'), 'true',[],'',''],
		['PAGE','203753',jdecode('2011+Boys+Player+Age+Group+Results'),jdecode(''), jdecode('%2F198153%2F203753.html'), 'true',[],'',''],
		['PAGE','207853',jdecode('2011+Girls+Player+Age+Group+Results'),jdecode(''), jdecode('%2F198153%2F207853.html'), 'true',[],'',''],
		['PAGE','137712',jdecode('2011+Boys+Player+Outright+Results+'),jdecode(''), jdecode('%2F198153%2F137712.html'), 'true',[],'',''],
		['PAGE','207153',jdecode('2011+Girls+Player+Outright+Results'),jdecode(''), jdecode('%2F198153%2F207153.html'), 'true',[],'',''],
		['PAGE','198174',jdecode('2011+Team+Results+'),jdecode(''), jdecode('%2F198153%2F198174.html'), 'true',[],'',''],
		['PAGE','206053',jdecode('2011+China+Photos+Lion+Lake'),jdecode(''), jdecode('%2F198153%2F206053.html'), 'true',[],'','']
	],'',''],
	['PAGE','230953',jdecode('Junior+Pacific+Cup+2012+'),jdecode(''), jdecode('%2F230953.html'), 'true',[],'',''],
	['PAGE','109633',jdecode('China+Amateur+Open'),jdecode(''), jdecode('%2F109633.html'), 'true',[],'',''],
	['PAGE','112112',jdecode('Tournament+Dates'),jdecode(''), jdecode('%2F112112.html'), 'true',[],'',''],
	['PAGE','673',jdecode('Contact+Us'),jdecode(''), jdecode('%2F673.html'), 'true',[],'',''],
	['PAGE','162223',jdecode('Entry+Forms'),jdecode(''), jdecode('%2F162223.html'), 'true',[],'',''],
	['PAGE','169453',jdecode('Archives'),jdecode(''), jdecode('%2F169453%2Findex.html'), 'true',[ 
		['PAGE','132612',jdecode('2010+Australian+Final+Results'),jdecode(''), jdecode('%2F169453%2F132612.html'), 'true',[],'',''],
		['PAGE','5043',jdecode('2010+China+International+Championship+'),jdecode(''), jdecode('%2F169453%2F5043.html'), 'true',[],'',''],
		['PAGE','109654',jdecode('2010+Photos'),jdecode(''), jdecode('%2F169453%2F109654.html'), 'true',[],'',''],
		['PAGE','5022',jdecode('Junior+Pacific+Cup+2011'),jdecode(''), jdecode('%2F169453%2F5022.html'), 'true',[],'','']
	],'',''],
	['PAGE','228753',jdecode('This+Page+Not+in+Use'),jdecode(''), jdecode('%2F228753.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31959';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='ABA694';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'wl_enom',
  product: 'WSCENOSSSLYTC21T'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31959',
				graphicsetId: 	'13798',
				contentColor: 	'ABA694',
				contentBGColor: '2E2E2E',
				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:  '109612',
internalId:  '',
customField: '20111004-025847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169053',
internalId:  '',
customField: '20111016-035507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109633',
internalId:  '',
customField: '20111012-011942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175653',
internalId:  '',
customField: '20111018-051720'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20120126-125742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20111011-194138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20111016-150806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173953',
internalId:  '',
customField: '20111203-185453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20111011-194344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109654',
internalId:  '',
customField: '20110912-012656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20120124-164905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20111031-235717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169453',
internalId:  '',
customField: '20111203-202734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112112',
internalId:  '',
customField: '20111019-182256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132412',
internalId:  '',
customField: '20110724-000525'
};
webappMappings['1501']=webappMappings['1501-26842107']={
webappId:    '1501',
documentId:  '601',
internalId:  '26842107',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132612',
internalId:  '',
customField: '20110724-000548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135912',
internalId:  '',
customField: '20110912-035616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135933',
internalId:  '',
customField: '20111022-044903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137712',
internalId:  '',
customField: '20111204-012115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139712',
internalId:  '',
customField: '20110908-151101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139733',
internalId:  '',
customField: '20111015-031203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139754',
internalId:  '',
customField: '20111203-002417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149312',
internalId:  '',
customField: '20111025-205115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152112',
internalId:  '',
customField: '20110912-174923'
};
webappMappings['7008']=webappMappings['7008-4967']={
webappId:    '7008',
documentId:  '162223',
internalId:  '4967',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162223',
internalId:  '',
customField: '20111031-235804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175674',
internalId:  '',
customField: '20111018-051747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175695',
internalId:  '',
customField: '20111018-024621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177353',
internalId:  '',
customField: '20111018-030047'
};
webappMappings['7008']=webappMappings['7008-5004']={
webappId:    '7008',
documentId:  '673',
internalId:  '5004',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185053',
internalId:  '',
customField: '20111027-023332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185074',
internalId:  '',
customField: '20111029-234341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192253',
internalId:  '',
customField: '20111203-192642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198153',
internalId:  '',
customField: '20111204-010025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198174',
internalId:  '',
customField: '20111204-014647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228753',
internalId:  '',
customField: '20120126-143608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202653',
internalId:  '',
customField: '20111130-190500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203753',
internalId:  '',
customField: '20111204-013817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206053',
internalId:  '',
customField: '20111202-232147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207153',
internalId:  '',
customField: '20111204-013626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207853',
internalId:  '',
customField: '20111204-014000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230953',
internalId:  '',
customField: '20120127-161005'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INZ1H8';
var companyName   = 'Aaron+Baddeley+International+Junior+Championship';
var htmlTitle	  = '';
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();
};

