/* [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','44',jdecode('Home'),jdecode(''),'/44.html','true',[],''],
	['PAGE','65',jdecode('About+us'),jdecode(''),'/65.html','true',[],''],
	['PAGE','83',jdecode('Our+Philosophy.......'),jdecode(''),'/83/index.html','true',[ 
		['PAGE','92',jdecode('%22Sure+Footed%E2%80%9D'),jdecode(''),'/83/92.html','true',[],''],
		['PAGE','101',jdecode('Our+Experience'),jdecode(''),'/83/101.html','true',[],''],
		['PAGE','110',jdecode('Areas+of+Expertise'),jdecode(''),'/83/110.html','true',[],''],
		['PAGE','2154',jdecode('Levels+Of+Expertise'),jdecode(''),'/83/2154.html','true',[],''],
		['PAGE','2417',jdecode('STROLL+-+A+Total+Service+Firm'),jdecode(''),'/83/2417.html','true',[],''],
		['PAGE','2505',jdecode('Clients+Successfully+Served'),jdecode(''),'/83/2505.html','true',[],''],
		['PAGE','2611',jdecode('Our+selection+process'),jdecode(''),'/83/2611.html','true',[],''],
		['PAGE','2696',jdecode('Targeting+the+Right+Candidate'),jdecode(''),'/83/2696.html','true',[],''],
		['PAGE','2970',jdecode('Merging+Departments'),jdecode(''),'/83/2970.html','true',[],''],
		['PAGE','3052',jdecode('Wages%2FCosts'),jdecode(''),'/83/3052.html','true',[],''],
		['PAGE','3163',jdecode('In+Conclusion'),jdecode(''),'/83/3163.html','true',[],''],
		['PAGE','3269',jdecode('Fine+Tune%21'),jdecode(''),'/83/3269.html','true',[],''],
		['PAGE','3330',jdecode('Thank+You'),jdecode(''),'/83/3330.html','true',[],'']
	],''],
	['PAGE','137',jdecode('Contact'),jdecode(''),'/137/index.html','true',[ 
		['PAGE','155',jdecode('How+to+find+us'),jdecode(''),'/137/155.html','true',[],'']
	],''],
	['PAGE','3732',jdecode('Directions'),jdecode(''),'/3732.html','true',[],''],
	['PAGE','3989',jdecode('Blog'),jdecode(''),'/3989.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2040';
theSitetree.keyvisualName='medizin.jpg';
theSitetree.fontsetId='339';
theSitetree.graphicsetId='396';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1E3A6F';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2040',
				keyvisualName: 	'medizin.jpg',
				fontsetId: 		'339',
				graphicsetId: 	'396',
				contentColor: 	'FFFFFF',
				contentBGColor: '1E3A6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'1E3A6F',
				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-2588']={
webappId:    '7050',
documentId:  '3989',
internalId:  '2588',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '3732',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN332S';
var companyName   = 'J.+Stroll+Associates%2C+Inc.';
var htmlTitle	  = 'Stroll+Associates%2C+Inc.';
var metaKeywords  = 'Executive+search%2C+recruitment%2C+pharmaceutical%2C+biotechnology%2C+clinical+research%2C+clinical+sciences%2C+medical+affairs%2C+clinical+development%2C+regulatory+affairs%2C+venture+capital%2C+capital+management';
var metaContents  = 'Executive+search%2C+recruitment%2C+pharmaceutical%2C+biotechnology%2C+clinical+research%2C+clinical+sciences%2C+medical+affairs%2C+clinical+development%2C+regulatory+affairs%2C+venture+capital%2C+capital+management';
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();
};

