/* [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','3001',jdecode('++++Mood+Group'),jdecode(''), jdecode('%2F3001.html'), 'true',[],'',''],
	['PAGE','3052',jdecode('++Print+Specialities'),jdecode(''), jdecode('%2F3052%2Findex.html'), 'true',[ 
		['PAGE','3501',jdecode('DIGITAL+PRINT'),jdecode(''), jdecode('%2F3052%2F3501.html'), 'true',[],'',''],
		['PAGE','3601',jdecode('WORKSHOPS+%26+SEMINARS'),jdecode(''), jdecode('%2F3052%2F3601.html'), 'true',[],'',''],
		['PAGE','3622',jdecode('MERGERS%2C+ACQUISITIONS+%26+DISPOSALS'),jdecode(''), jdecode('%2F3052%2F3622.html'), 'true',[],'','']
	],'',''],
	['PAGE','3073',jdecode('++++Lead+Advisor'),jdecode(''), jdecode('%2F3073%2Findex.html'), 'true',[ 
		['PAGE','3643',jdecode('MOOD+IN+THE+MEDIA'),jdecode(''), jdecode('%2F3073%2F3643.html'), 'true',[],'',''],
		['PAGE','3664',jdecode('RECOMMENDADTIONS'),jdecode(''), jdecode('%2F3073%2F3664.html'), 'true',[],'','']
	],'',''],
	['PAGE','3522',jdecode('+++++++++Jobs'),jdecode(''), jdecode('%2F3522.html'), 'true',[],'',''],
	['PAGE','3220',jdecode('+++++++Contacts+'),jdecode(''), jdecode('%2F3220.html'), 'true',[],'','']];
var siteelementCount=10;
theSitetree.topTemplateName='Diablo';
theSitetree.paletteFamily='1F53AB';
theSitetree.keyvisualId='8789';
theSitetree.keyvisualName='kv_8789.jpg';
theSitetree.fontsetId='17177';
theSitetree.graphicsetId='12467';
theSitetree.contentColor='1F53AB';
theSitetree.contentBGColor='E6E6E6';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'netfirms',
  product: 'WSCSYSSSSLY0XYND'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Diablo',
				paletteFamily: 	'1F53AB',
				keyvisualId: 	'8789',
				keyvisualName: 	'kv_8789.jpg',
				fontsetId: 		'17177',
				graphicsetId: 	'12467',
				contentColor: 	'1F53AB',
				contentBGColor: 'E6E6E6',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20110810-132620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3052',
internalId:  '',
customField: '20101222-023952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20100627-205005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100621-021342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3622',
internalId:  '',
customField: '20100621-030040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3073',
internalId:  '',
customField: '20120202-073737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3643',
internalId:  '',
customField: '20100621-021141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3664',
internalId:  '',
customField: '20100621-021207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3220',
internalId:  '',
customField: '20120123-130027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3522',
internalId:  '',
customField: '20120201-024225'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'ANFI20IN2MXD';
var companyName   = 'Specialists+to+the+Print+Industry';
var htmlTitle	  = '';
var metaKeywords  = 'Middle+East+printing+Head-Hunting%2C+Print+Jobs%2C+Gulf+printing+recruitment%2C++Dubai+Print+Jobs%2C+%23jobs%23printing%23mena%2C+printing+retained+search%2C+print+recruitment+dubai%2C+printing%2C+digital+printing+middle+east%2C+MENA+region+printing+jobs%2C+Middle+East%2C+Gulf+printing+jobs%2C+Press+operator%2C+bindery%2C+flexo%2C+gravure%2C+offset+printing%2C+wide+format+printing+%2C+general+manager%2C+sales+manager%2C+production+manager%2C+sales+director+%2C+managing+director+print+%2C+operations+director+print+%2C+digital+print+%2C+offset+print%2C+web2print%2C+photo+books%2C+Dubai%2C+Abu+Dhabi%2C+Bahrain%2C+Saudi%2C+Qatar+%2C+Kuwait%2C+Lebanon%2C+Syria%2C+Jordan%2C+Egypt%2C+Libya%2C+Tunisia+%2C+Morocco+%2C+Oman%2C+Malta%2C+Cyprus%2C+Turkey%2C+Canon+%2C+Xerox%2C+Oce%2C+Kodak%2C+Ricoh%2C+recruitment%2C+HP%2C++search+and+selection%2C+advisory%2C+educational+workshops+%2C+seminars+%2C+expert+consultancy%2C+essential+business+builder+program%2C+profit+accelerator+%2C+packaging+%2C+MIS%2C+training%2C+consultancy%2C+estimating%2C+middle+east+printing%2C+middle+east+consultancy%2C+middle+east+print+recruitment%2C+';
var metaContents  = 'Mood+Group+is+a+specialist+head-hunting%2C+recruitment+and+advisory+practice+to+the+Printing%2C+Packaging%2C+Publishing+and+Media+Industry+across+the+MENA+region.';
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();
};

