/* [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','1411',jdecode('Home'),jdecode(''),'/1411.html','true',[],'',''],
	['PAGE','1442',jdecode('About+Us'),jdecode(''),'/1442.html','true',[],'',''],
	['PAGE','4601',jdecode('Committee'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','4622',jdecode('Membership'),jdecode(''),'/4622.html','true',[],'',''],
	['PAGE','4643',jdecode('Club+House+Location'),jdecode(''),'/4643.html','true',[],'',''],
	['PAGE','15501',jdecode('Ladies+Committee+'),jdecode(''),'/15501.html','true',[],'',''],
	['PAGE','4664',jdecode('News+%2F+Events'),jdecode(''),'/4664.html','true',[],'',''],
	['PAGE','11701',jdecode('Fixtures%3A+Senior+%2F+Schoolboy%2FLadies'),jdecode(''),'/11701.html','true',[],'',''],
	['PAGE','11722',jdecode('Senior+Teams+Results'),jdecode(''),'/11722.html','true',[],'',''],
	['PAGE','10601',jdecode('Sun+Senior'),jdecode(''),'/10601.html','true',[],'',''],
	['PAGE','10622',jdecode('Sat+Major+1'),jdecode(''),'/10622.html','true',[],'',''],
	['PAGE','74886',jdecode('Sat+Major+1D'),jdecode(''),'/74886.html','true',[],'',''],
	['PAGE','64686',jdecode('Ladies+Senior+Team'),jdecode(''),'/64686.html','true',[],'',''],
	['PAGE','10501',jdecode('Schoolboy+Section+News'),jdecode(''),'/10501.html','true',[],'',''],
	['PAGE','4706',jdecode('Schoolboy+Teams+09%2F10'),jdecode(''),'/4706/index.html','true',[ 
		['PAGE','8701',jdecode('Under+7A1'),jdecode(''),'/4706/8701.html','true',[],'',''],
		['PAGE','8722',jdecode('Under+8Prem'),jdecode(''),'/4706/8722.html','true',[],'',''],
		['PAGE','8743',jdecode('Under+9A'),jdecode(''),'/4706/8743.html','true',[],'',''],
		['PAGE','8764',jdecode('Under+10Prem+Plus+'),jdecode(''),'/4706/8764.html','true',[],'',''],
		['PAGE','50664',jdecode('Under+10F'),jdecode(''),'/4706/50664.html','true',[],'',''],
		['PAGE','8785',jdecode('Under+11Prem'),jdecode(''),'/4706/8785.html','true',[],'',''],
		['PAGE','8806',jdecode('Under+11D'),jdecode(''),'/4706/8806.html','true',[],'',''],
		['PAGE','8827',jdecode('Under+12Prem'),jdecode(''),'/4706/8827.html','true',[],'',''],
		['PAGE','8848',jdecode('Under+12C'),jdecode(''),'/4706/8848.html','true',[],'',''],
		['PAGE','50690',jdecode('Under+12E'),jdecode(''),'/4706/50690.html','true',[],'',''],
		['PAGE','8869',jdecode('Under+13Prem'),jdecode(''),'/4706/8869.html','true',[],'',''],
		['PAGE','8890',jdecode('Under+14B'),jdecode(''),'/4706/8890.html','true',[],'',''],
		['PAGE','8911',jdecode('Under+15A'),jdecode(''),'/4706/8911.html','true',[],'',''],
		['PAGE','8932',jdecode('Under+15B'),jdecode(''),'/4706/8932.html','true',[],'',''],
		['PAGE','8953',jdecode('Under+17Prem'),jdecode(''),'/4706/8953.html','true',[],'',''],
		['PAGE','48064',jdecode('Under+18A'),jdecode(''),'/4706/48064.html','true',[],'','']
	],'',''],
	['PAGE','47064',jdecode('Coaching+Links'),jdecode(''),'/47064.html','true',[],'',''],
	['PAGE','4727',jdecode('Summer+School+2010'),jdecode(''),'/4727.html','true',[],'',''],
	['PAGE','7001',jdecode('Club+Sponsors'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','4748',jdecode('Links'),jdecode(''),'/4748.html','true',[],'',''],
	['PAGE','1463',jdecode('GNFC+Photos'),jdecode(''),'/1463.html','true',[],'',''],
	['PAGE','1495',jdecode('Guestbook'),jdecode(''),'/1495.html','true',[],'',''],
	['PAGE','1516',jdecode('Contact'),jdecode(''),'/1516.html','true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Soccer2';
theSitetree.paletteFamily='9EC7F0';
theSitetree.keyvisualId='9972';
theSitetree.keyvisualName='kv_9972.jpg';
theSitetree.fontsetId='17767';
theSitetree.graphicsetId='13146';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Soccer2',
				paletteFamily: 	'9EC7F0',
				keyvisualId: 	'9972',
				keyvisualName: 	'kv_9972.jpg',
				fontsetId: 		'17767',
				graphicsetId: 	'13146',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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['7060']=webappMappings['7060-8aa496824372cd8e12a59cfaad9f6f3b']={
webappId:    '7060',
documentId:  '1463',
internalId:  '8aa496824372cd8e12a59cfaad9f6f3b',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48064',
internalId:  '',
customField: '20091013-183757'
};
webappMappings['7002']=webappMappings['7002-879']={
webappId:    '7002',
documentId:  '1495',
internalId:  '879',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-880']={
webappId:    '7008',
documentId:  '1516',
internalId:  '880',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1411',
internalId:  '',
customField: '20100708-113138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1442',
internalId:  '',
customField: '20080409-171238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1463',
internalId:  '',
customField: '20100513-131801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64686',
internalId:  '',
customField: '20100603-133714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1495',
internalId:  '',
customField: '20080409-171528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1516',
internalId:  '',
customField: '20080410-103732'
};
webappMappings['1501']=webappMappings['1501-389161']={
webappId:    '1501',
documentId:  '1411',
internalId:  '389161',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1411',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100615-080219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4622',
internalId:  '',
customField: '20090916-134253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20080410-140555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20100708-112626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47064',
internalId:  '',
customField: '20090722-192524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4706',
internalId:  '',
customField: '20091007-154944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4727',
internalId:  '',
customField: '20100412-010609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4748',
internalId:  '',
customField: '20090115-142728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20091020-171345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20091013-181555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8722',
internalId:  '',
customField: '20091013-181724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8743',
internalId:  '',
customField: '20091013-181848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8764',
internalId:  '',
customField: '20091013-182011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8785',
internalId:  '',
customField: '20091013-182254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8806',
internalId:  '',
customField: '20091013-182413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8827',
internalId:  '',
customField: '20091013-182518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8848',
internalId:  '',
customField: '20100513-132215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8869',
internalId:  '',
customField: '20091020-170651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8890',
internalId:  '',
customField: '20091020-165933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8911',
internalId:  '',
customField: '20091013-183247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8932',
internalId:  '',
customField: '20091013-183447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8953',
internalId:  '',
customField: '20091013-183618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20100630-154441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20100630-154523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20100708-113033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20100615-075559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11722',
internalId:  '',
customField: '20100708-112731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50690',
internalId:  '',
customField: '20091013-182800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20081216-124838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50664',
internalId:  '',
customField: '20091020-165523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74886',
internalId:  '',
customField: '20100716-125345'
};
var canonHostname = 'wc1.hosting.digiweb.ie';
var accountId     = 'AGW010INXV1F';
var companyName   = 'GlebenorthFC+-+Est+1945+++++++++';
var htmlTitle	  = 'Online+Home+Of+GlebenorthFC.ie';
var metaKeywords  = 'GlebenorthFC%2C+Balbriggan%2C+Fingal%2C+FAI%2C+Bemore%2C+Senior+Team%2C+Marketgreen%2C+Soccer%2C+football%2C+allweather+pitch%2C+Glebenorth%2C+FC';
var metaContents  = 'GlebenorthFC+offical+website+-+Balbriggans+No1+Football+Club';
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();
};
