/* [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','1701',jdecode('Home'),jdecode(''),'/1701.html','true',[],''],
	['PAGE','1752',jdecode('Project+Auditing'),jdecode(''),'/1752.html','true',[],''],
	['PAGE','7701',jdecode('Project+Recovery'),jdecode(''),'/7701.html','false',[],''],
	['PAGE','1778',jdecode('Other+Services'),jdecode(''),'/1778.html','true',[],''],
	['PAGE','6101',jdecode('News'),jdecode(''),'/6101.html','true',[],''],
	['PAGE','1804',jdecode('About+Us'),jdecode(''),'/1804/index.html','true',[ 
		['PAGE','3379',jdecode('Testimonials'),jdecode(''),'/1804/3379.html','true',[],'']
	],''],
	['PAGE','1830',jdecode('Contact+Us'),jdecode(''),'/1830.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Palette';
theSitetree.paletteFamily='8AC336';
theSitetree.keyvisualId='9360';
theSitetree.keyvisualName='kv_9360.jpg';
theSitetree.fontsetId='17396';
theSitetree.graphicsetId='12840';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				name: 			'Palette',
				paletteFamily: 	'8AC336',
				keyvisualId: 	'9360',
				keyvisualName: 	'kv_9360.jpg',
				fontsetId: 		'17396',
				graphicsetId: 	'12840',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-2989']={
webappId:    '7008',
documentId:  '1830',
internalId:  '2989',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20090518-180154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20090424-161459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1778',
internalId:  '',
customField: '20090519-115117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1804',
internalId:  '',
customField: '20090518-111759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1830',
internalId:  '',
customField: '20090324-205921'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20090424-160735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20090417-172214'
};
webappMappings['7050']=webappMappings['7050-2610']={
webappId:    '7050',
documentId:  '6101',
internalId:  '2610',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3379',
internalId:  '',
customField: '20090519-124054'
};
var canonHostname = 'wc1.hosting.digiweb.ie';
var accountId     = 'AGW010IN2K50';
var companyName   = 'Project+Management+%26+Auditing+Services';
var htmlTitle	  = 'Project+Management+%26+Auditing+Services';
var metaKeywords  = 'Project+Auditing%2C+Deirdre+Waldron%2C+Project+Management+and+Auditing+Services%2C+PMAS%2C+PMI%2C+Audit%2C+Project+Audit%2C+Cost+Savings%2C+Dublin%2C+Ireland+';
var metaContents  = 'Project+Management+and+Auditing+Services+%28PMAS%29+can+provide+you+with+an+independent%2C+third-party+assessment+of+your+projects+health%2C+using+a+proven+audit+methodology%2C+with+a+detailed+report+and+recommendations+to+identify+the+opportunities+and+challenges+that+lead+to+a+project%E2%80%99s+success+and+prevent+its+failure.+In+todays+economic+downturn%2C+organizations+are+looking+for+immediate+ways+to+save+cost+and+time%2C+a+good+starting+place+is+with+a+project+audit+to+help+uncover+opportunities+for+savings.+We+have+over+15+years+in+project%2C+program+and+portfolio+management+across+a+multitude+of+industries+-+ICT%2C+Manufacturing%2C+Marketing%2C+CRM%2C+and+Financial+Services.+We+have+particular+interest+and+experience+in+project+auditing%2C+ensuring+projects+are+fully+briefed+with+clear+objectives%2C+responsibilities+and+ownership%2C+that+costs+and+benefits+are+clearly+determined+and+properly+monitored+and+that+projects+are+completed+successfully+in+line+with+the+plan%2C+on+time+and+in+budget.+';
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();
};

