/* [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','22',jdecode('Home'),jdecode(''),'/22.html','true',[],'',''],
	['PAGE','1067',jdecode('About+us'),jdecode(''),'/1067.html','true',[],'',''],
	['PAGE','5253',jdecode('Course+Director'),jdecode(''),'/5253.html','true',[],'',''],
	['PAGE','26501',jdecode('CPA'),jdecode(''),'/26501.html','true',[],'',''],
	['PAGE','26522',jdecode('CMA'),jdecode(''),'/26522.html','true',[],'',''],
	['PAGE','26543',jdecode('CISA'),jdecode(''),'/26543.html','true',[],'',''],
	['PAGE','26564',jdecode('CIA'),jdecode(''),'/26564.html','true',[],'',''],
	['PAGE','22301',jdecode('IFRS'),jdecode(''),'/22301.html','true',[],'',''],
	['PAGE','22322',jdecode('Finance+for+Non-Finance'),jdecode(''),'/22322.html','true',[],'',''],
	['PAGE','38901',jdecode('Testimonials'),jdecode(''),'/38901.html','true',[],'',''],
	['PAGE','41301',jdecode('Contact+Us'),jdecode(''),'/41301.html','true',[],'',''],
	['PAGE','65301',jdecode('Useful+Links'),jdecode(''),'/65301.html','true',[],'','']];
var siteelementCount=12;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2443';
theSitetree.keyvisualName='beratung.jpg';
theSitetree.fontsetId='403';
theSitetree.graphicsetId='460';
theSitetree.contentColor='2F325F';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2443',
				keyvisualName: 	'beratung.jpg',
				fontsetId: 		'403',
				graphicsetId: 	'460',
				contentColor: 	'2F325F',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-1933105']={
webappId:    '1501',
documentId:  '22',
internalId:  '1933105',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22',
internalId:  '',
customField: '20101028-010330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1067',
internalId:  '',
customField: '20101027-103730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5253',
internalId:  '',
customField: '20101014-052759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26501',
internalId:  '',
customField: '20101028-011021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20101028-011213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26522',
internalId:  '',
customField: '20101027-104236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26543',
internalId:  '',
customField: '20101007-013702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20101023-104630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20101027-104602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22322',
internalId:  '',
customField: '20091216-075222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20101028-013547'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26564',
internalId:  '',
customField: '20091216-074745'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN36IG';
var companyName   = 'MECCADEMIA+Education+Institute';
var htmlTitle	  = 'MECCADEMIA+Education+Institute';
var metaKeywords  = 'Training+Institute+Abu+Dhabi%2C+CPA+Abu+Dhabi%2C+CMA+Abu+Dhabi%2C+CIA+Abu+Dhabi%2C+Meccademia%2C+CPA+Dubai%2C+CPA+UAE%2C+CMA+Dubai%2C+CPA+UAE%2C+CIA+Dubai%2C+CPA+UAE%2C+CISA+Dubai%2C++EMERGE%2C+Canada+Immigration%2C+Training+Institute+Dubai%2C+Training+Institute+UAE%2C+IFRS+DUBAI%2C+IFRS+Abu+Dhabi%2C+IFRS+UAE%2C+Accounting+Dubai%2C+Accounting+Abu+Dhabi%2C+Accounting+UAE';
var metaContents  = 'This+site+is+to+provide+assistance+to+the+accountants+and+executives+to+improve+their+skills+through+UK%2C+USA%2C+Canada+professional+Certification+programs+and+by+management+development+programs.+';
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();
};

