/* [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','7301',jdecode('Welcome'),jdecode(''),'/7301.html','true',[],'',''],
	['PAGE','7373',jdecode('Services'),jdecode(''),'/7373.html','true',[],'',''],
	['PAGE','7352',jdecode('About+Dr+Binnie'),jdecode(''),'/7352.html','true',[],'',''],
	['PAGE','10001',jdecode('Links'),jdecode(''),'/10001.html','true',[],'',''],
	['PAGE','7394',jdecode('Contact'),jdecode(''),'/7394.html','true',[],'',''],
	['PAGE','11601',jdecode('Site+Map'),jdecode(''),'/11601.html','true',[],'','']];
var siteelementCount=6;
theSitetree.topTemplateName='Mappe';
theSitetree.paletteFamily='BA9763';
theSitetree.keyvisualId='1929';
theSitetree.keyvisualName='apotheke.jpg';
theSitetree.fontsetId='322';
theSitetree.graphicsetId='381';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='BA9763';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mappe',
				paletteFamily: 	'BA9763',
				keyvisualId: 	'1929',
				keyvisualName: 	'apotheke.jpg',
				fontsetId: 		'322',
				graphicsetId: 	'381',
				contentColor: 	'FFFFFF',
				contentBGColor: 'BA9763',
				a_color: 		'BA9763',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20100419-133356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7352',
internalId:  '',
customField: '20100408-142348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7373',
internalId:  '',
customField: '20100331-140848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7394',
internalId:  '',
customField: '20100330-113729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20100926-140910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20100330-113746'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INLA48';
var companyName   = 'Dr+Craig+Binnie+Consulting';
var htmlTitle	  = '+Drug+Development+Services+-+Dr+Craig+Binnie+Counsulting+Tel%3A+416+569+7542';
var metaKeywords  = 'Drug+Development%2C+Drug+Development+Services%2C+New+Opportunity+Evaluation%2C+Strategy+Development%2C+Program+Planning%2C+Regulatory+Strategy%2C+Contract+Management%2C+Support+GLP+preclinical+study%2C+designs%2C+outsourcing%2C+management%2C+Pre-IND%2C+CTA+submissions%2C+IND%2C+CTA+submissions%2C+Management+of+agency+meetings%2C+Orphan+Drug+eligibility%2C+evaluation%2C+submission%2C+Strategic+Business+Planning%2C+Strategic+Planning+and+Research%2C+Technical+Evaluation%2C+Process+Development+Planning%2C+Process+Development+Planning%2C+Schedule+Development%2C+Process+Implementation%2C+Negotiating+Contract+Research+Support%2C+Project+Management%2C+Contract+Manufacturing+Support%2C+Prepare+Requests+For+Proposals%2C+Evaluate+Manufacturing+Organizations%2C+Due+Diligence+Inspection%2C+Manage+Technology+Transfer+Manage+Manufacturing+Projects%2C+Manufacturing+Process+Implementation%2C+Clinical+Trial+Product%2C+Process+Development%2C+Commercial+Scale%2C+Process+Development%2C+Specification+and+Characterization+Planning%2C+Process+Optimization+Analysis%2C+Process+Failure+Analysis';
var metaContents  = 'Drug+Development+Services+-+Dr.+Craig+Binnie+Consulting+offers+over+20+years+of+expertise+in+design+and+management+of+new+drug+development+programmes%2C+including+critical+evaluation+of+existing+drug+development+programmes+and+preparation+of+submissions+for+government+assistance+%28e.g.+IRAP%29.In+addition+he+is+experienced+in+outsourcing+and+management+of+drug+manufacturing+process+development%2C+outsourcing+and+management+of+manufacturing+of+Clinical+Trial+Materials%2C+design+%2F+outsourcing+%2F+management+of+GLP-compliant+preclinical+studies+to+support+IND+and+CTA+submissions.In+the+past%2C+he+prepared+documents+for+pre-IND%2C+pre-CTA+and+IND+%2F+CTA+submissions%2C+represented+companies+at+regulatory+agency+meetings%2C+evaluated+eligibility+for+Orphan+Drug+Status+and+preparation+of+Orphan+Drug+Submissions+in+the+USA+and+EU%2C+and+provided+evaluation+and+selection+of+Clinical+Research+Organizations+for+early+stage+clinical+trials.Craig+previously+worked+as+Group+Leader+%2F+Biology+for+Cangene+Corporation%2C+and+at+the+Director+level+for+YM+Biosciences%2C+Inc.%2C+Transition+Therapeutics%2C+Inc.+and+Trillium+Therapeutics%2C+Inc.He+is+available+to+assist+small+to+medium+sized+biotechnology+and+pharmaceutical+companies+in+any+of+the+above+areas.';
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();
};

