/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','652',jdecode('About+us'),jdecode(''),'/652.html','true',[],'',''],
	['PAGE','673',jdecode('News'),jdecode(''),'/673.html','true',[],'',''],
	['PAGE','2901',jdecode('Business'),jdecode(''),'/2901.html','true',[],'',''],
	['PAGE','16601',jdecode('Consulting+Services'),jdecode(''),'/16601/index.html','true',[ 
		['PAGE','37733',jdecode('Business+Restructuring'),jdecode(''),'/16601/37733.html','true',[],'',''],
		['PAGE','37742',jdecode('Business+Valuation'),jdecode(''),'/16601/37742.html','true',[],'','']
	],'',''],
	['PAGE','2922',jdecode('Humagen+Corporation'),jdecode(''),'/2922/index.html','true',[ 
		['PAGE','15001',jdecode('Human+Fertility+Services'),jdecode(''),'/2922/15001.html','true',[],'',''],
		['PAGE','15022',jdecode('Research+%26+Development'),jdecode(''),'/2922/15022.html','true',[],'',''],
		['PAGE','27901',jdecode('Controversial+Activity'),jdecode(''),'/2922/27901.html','true',[],'',''],
		['PAGE','33101',jdecode('Information+Resources'),jdecode(''),'/2922/33101.html','true',[],'','']
	],'',''],
	['PAGE','2943',jdecode('CAMIS+Corporation'),jdecode(''),'/2943/index.html','true',[ 
		['PAGE','14101',jdecode('General+Contracting'),jdecode(''),'/2943/14101.html','true',[],'',''],
		['PAGE','14122',jdecode('Plumbing+and+HVAC'),jdecode(''),'/2943/14122.html','true',[],'',''],
		['PAGE','14143',jdecode('Wood+Flooring'),jdecode(''),'/2943/14143.html','true',[],'','']
	],'',''],
	['PAGE','2964',jdecode('Automotive+Systems'),jdecode(''),'/2964/index.html','true',[ 
		['PAGE','2985',jdecode('Ford+GT+Supercar'),jdecode(''),'/2964/2985.html','true',[],'',''],
		['PAGE','31401',jdecode('Ford+GT+Products'),jdecode(''),'/2964/31401.html','true',[],'',''],
		['PAGE','8701',jdecode('Corvette+ZR-1'),jdecode(''),'/2964/8701.html','true',[],'',''],
		['PAGE','34301',jdecode('Corvette+ZR-1+Products'),jdecode(''),'/2964/34301.html','true',[],'','']
	],'',''],
	['PAGE','37570',jdecode('Hopkins+Soccer'),jdecode(''),'/37570.html','true',[],'',''],
	['PAGE','36761',jdecode('Property+for+Sale'),jdecode(''),'/36761/index.html','true',[ 
		['PAGE','37501',jdecode('General+Information'),jdecode(''),'/36761/37501.html','true',[],'',''],
		['PAGE','37449',jdecode('14802+Timberhill+Road'),jdecode(''),'/36761/37449.html','true',[],'',''],
		['PAGE','37458',jdecode('14814+Timberhill+Road'),jdecode(''),'/36761/37458.html','true',[],'','']
	],'',''],
	['PAGE','8001',jdecode('Management'),jdecode(''),'/8001.html','true',[],'',''],
	['PAGE','12601',jdecode('Philosophy'),jdecode(''),'/12601.html','true',[],'',''],
	['PAGE','5001',jdecode('Contact'),jdecode(''),'/5001.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='3C5284';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10510';
theSitetree.graphicsetId='10913';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3C5284';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stars',
				paletteFamily: 	'3C5284',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10510',
				graphicsetId: 	'10913',
				contentColor: 	'FFFFFF',
				contentBGColor: '3C5284',
				a_color: 		'3C5284',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100709-161008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20090617-093054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090515-010352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20090515-011444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20090515-010440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2922',
internalId:  '',
customField: '20090515-010521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20080704-084106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20090515-010550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20090423-224546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20090720-131528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2943',
internalId:  '',
customField: '20070208-015315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20070123-110126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14122',
internalId:  '',
customField: '20070123-110148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14143',
internalId:  '',
customField: '20070123-110206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2964',
internalId:  '',
customField: '20090403-014901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2985',
internalId:  '',
customField: '20080818-210417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20080113-021234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20070123-010800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20090428-003536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36761',
internalId:  '',
customField: '20091111-091230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20070123-015140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20090207-130822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20070202-030933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37449',
internalId:  '',
customField: '20090327-015222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37458',
internalId:  '',
customField: '20090327-015553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37501',
internalId:  '',
customField: '20090423-222606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37570',
internalId:  '',
customField: '20091203-230906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37733',
internalId:  '',
customField: '20090617-093308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37742',
internalId:  '',
customField: '20090617-113911'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INEJQC';
var companyName   = 'The+Humagen+Group+of+Companies';
var htmlTitle	  = 'The+Humagen+Group+of+Companies';
var metaKeywords  = 'humagen%2C+infertility%2C+fertility%2C+in+vitro+fertilization%2C+genetic+engineering%2C+biomedical%2C+genetic+research%2C+ZR-1+Corvette%2C+Ford+GT%2C+Ford+GT+Supercar%2C+consulting%2C+information+technology%2C+IT%2C+business+consulting%2C+investment+company%2C+private+investor%2C+private+placement%2C+automotive%2C+sports+car%2C+automotive+parts%2C+Corvette+parts%2C+Ford+GT+parts%2C+IT+consulting%2C+hopkins+soccer';
var metaContents  = 'humagen%2C+human+fertility+research%2C+bioengineering%2C+business+consulting%2C+IT+consulting%2C+Ford+GT+information%2C+Ford+GT+supercar+information%2C+Ford+GT+parts%2C+Corvette+parts%2C+Corvette+ZR-1+parts%2C+Ford+GT+service%2C+Corvette+service%2C+private+investment+company%2C+private+placement+company%2C+hopkins+soccer';
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();
};
