/* [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','58201',jdecode('Home'),jdecode(''),'/58201.html','true',[],'',''],
	['PAGE','58252',jdecode('Investment+Careers'),jdecode(''),'/58252.html','true',[],'',''],
	['PAGE','93801',jdecode('Sales+Careers'),jdecode(''),'/93801.html','true',[],'',''],
	['PAGE','58273',jdecode('About+us'),jdecode(''),'/58273.html','true',[],'','']];
var siteelementCount=4;
theSitetree.topTemplateName='Konzept';
theSitetree.paletteFamily='FD9601';
theSitetree.keyvisualId='571';
theSitetree.keyvisualName='bildung.jpg';
theSitetree.fontsetId='118';
theSitetree.graphicsetId='138';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Konzept',
				paletteFamily: 	'FD9601',
				keyvisualId: 	'571',
				keyvisualName: 	'bildung.jpg',
				fontsetId: 		'118',
				graphicsetId: 	'138',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FD9601',
				b_color: 		'EEE2A0',
				c_color: 		'000000',
				d_color: 		'374B09',
				e_color: 		'C5B39F',
				f_color: 		'D78B1D',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58201',
internalId:  '',
customField: '20100119-225007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58252',
internalId:  '',
customField: '20100120-235947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58273',
internalId:  '',
customField: '20100121-000529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93801',
internalId:  '',
customField: '20100121-000135'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INL6ML';
var companyName   = 'mARTo+consulting';
var htmlTitle	  = 'mARTo+consulting+Executive+Recruiters';
var metaKeywords  = 'job%2C+jobs%2C+job+sites%2C+resume%2C+resumes%2C+career%2C+careers%2C+job+search%2C+search+jobs%2C+job+vacancies%2C+job+descriptions%2C+career+information%2C+career+search%2C+marto+consulting%2C+recruiter%2C+head+hunter%2C+headhunter%2C+find+a+job%2C+executive+recruiters%2C+investment+advisor%2C+investment+consulting%2C+finance+jobs%2C+financial+jobs%2C+sales+jobs%2C+financial+consultant%2C+financial+advisor%2C+account+executive%2C+employment%2C+series+7%2C+series+63%2C+hire%2C+hiring%2C+opportunities%2C+series+24%2C+SQL%2C+SQL+DBA%2C+sales+director%2C+branch+manager';
var metaContents  = 'mARTo+consulting+is+an+executive+recruiting+firm+specializing+in+placing+talented+candidates+in+start-up+through+FORTUNE+500+Companies.';
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();
};
