/* [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','5301',jdecode('Home'),jdecode(''), jdecode('%2F5301.html'), 'true',[],'',''],
	['PAGE','5801',jdecode('About+Theo'),jdecode(''), jdecode('%2F5801.html'), 'true',[],'',''],
	['PAGE','5373',jdecode('Consultancy+Services'),jdecode(''), jdecode('%2F5373.html'), 'true',[],'',''],
	['PAGE','5394',jdecode('Musical+Entertainment'),jdecode(''), jdecode('%2F5394%2Findex.html'), 'true',[ 
		['PAGE','52912',jdecode('Sounds+of+Greece'),jdecode(''), jdecode('%2F5394%2F52912.html'), 'true',[],'',''],
		['PAGE','32601',jdecode('Musical+Videos+%26+Pics'),jdecode(''), jdecode('%2F5394%2F32601.html'), 'true',[],'',''],
		['PAGE','44901',jdecode('Nikos+Economopoloulos'),jdecode(''), jdecode('%2F5394%2F44901.html'), 'true',[],'','']
	],'',''],
	['PAGE','5822',jdecode('Business+Opportunities'),jdecode(''), jdecode('%2F5822%2Findex.html'), 'true',[ 
		['PAGE','27501',jdecode('An+Innovation+for+Motel+Businesses'),jdecode(''), jdecode('%2F5822%2F27501.html'), 'false',[],'',''],
		['PAGE','27522',jdecode('Introducing+magicJack'),jdecode(''), jdecode('%2F5822%2F27522.html'), 'false',[],'',''],
		['PAGE','51712',jdecode('Step+Up+Leadership+Programme'),jdecode(''), jdecode('%2F5822%2F51712.html'), 'false',[],'','']
	],'',''],
	['PAGE','38601',jdecode('What+is+your+Purpose%3F'),jdecode(''), jdecode('%2F38601.html'), 'false',[],'',''],
	['PAGE','21101',jdecode('Testimonials'),jdecode(''), jdecode('%2F21101.html'), 'true',[],'',''],
	['PAGE','5843',jdecode('Trout+Angling'),jdecode(''), jdecode('%2F5843%2Findex.html'), 'true',[ 
		['PAGE','22801',jdecode('Trout+fishing+voodoo%21'),jdecode(''), jdecode('%2F5843%2F22801.html'), 'true',[],'',''],
		['PAGE','28801',jdecode('Trout+Fishing+on+the+River+Itchen'),jdecode(''), jdecode('%2F5843%2F28801.html'), 'true',[],'','']
	],'',''],
	['PAGE','5436',jdecode('Theo%26%23x27%3Bs+Musings+%26+Yarns'),jdecode(''), jdecode('%2F5436.html'), 'true',[],'',''],
	['PAGE','40701',jdecode('Special+Concert'),jdecode(''), jdecode('%2F40701.html'), 'false',[],'',''],
	['PAGE','6001',jdecode('Contact'),jdecode(''), jdecode('%2F6001.html'), 'true',[],'',''],
	['PAGE','5864',jdecode('Links'),jdecode(''), jdecode('%2F5864.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='0B578E';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='339';
theSitetree.graphicsetId='394';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0B578E';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'mitdnz',
  product: 'WSCSYSSSSLYTC22A'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'0B578E',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'339',
				graphicsetId: 	'394',
				contentColor: 	'FFFFFF',
				contentBGColor: '0B578E',
				a_color: 		'0B578E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7050']=webappMappings['7050-1411']={
webappId:    '7050',
documentId:  '5436',
internalId:  '1411',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20111130-055700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20090629-042709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20110423-205820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5373',
internalId:  '',
customField: '20110523-175949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5394',
internalId:  '',
customField: '20110728-003224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20110511-233516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5436',
internalId:  '',
customField: '20090328-184120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20090630-024043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5864',
internalId:  '',
customField: '20110424-012520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20090405-165725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20090405-043806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20090720-041549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27522',
internalId:  '',
customField: '20090527-080834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20090601-054254'
};
webappMappings['7008']=webappMappings['7008-8949']={
webappId:    '7008',
documentId:  '6001',
internalId:  '8949',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20110423-214311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20110511-233723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40701',
internalId:  '',
customField: '20100529-190907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44901',
internalId:  '',
customField: '20101006-010204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51712',
internalId:  '',
customField: '20101022-024044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52912',
internalId:  '',
customField: '20120119-181817'
};
webappMappings['7008']=webappMappings['7008-25562']={
webappId:    '7008',
documentId:  '52912',
internalId:  '25562',
customField: 'language:en;country:US;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHMFU';
var companyName   = 'Theo+Simeonidis%27+Site';
var htmlTitle	  = '';
var metaKeywords  = 'corporate+management+business+mentor+consultant+consultancy+conservation+music+musician+greek+rembetika+zorba+dancing+fun+angling+angler+trout+freshwater+fishing+sports+industry+trade+association+governance+member+benefits+membership+strategic+planning+organisation+development+change+marketing+promotion+workshop+facilitation+policy+submission+parliamentary+select+committee+communications+copywriting+publications+newsletters+speech+writing+media+release+mentoring+humanitarian+trivani+child+sponsorship+starvation+human+aid+';
var metaContents  = 'Theo+Simeonidis%3A++corporate+management%2C+business+owner%2C+business+mentor%2C+entrepreneur%2C+consultant%2C+humanitarian%2C+conservationist%2C+musician%2C+angler%2C+sports+fanatic+';
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();
};

