/* [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(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','652',jdecode('About+us'),jdecode(''), jdecode('%2F652.html'), 'true',[],'',''],
	['PAGE','673',jdecode('News'),jdecode(''), jdecode('%2F673.html'), 'true',[],'',''],
	['PAGE','2901',jdecode('Business'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','16601',jdecode('Consulting+Services'),jdecode(''), jdecode('%2F16601%2Findex.html'), 'true',[ 
		['PAGE','37733',jdecode('Business+Restructuring'),jdecode(''), jdecode('%2F16601%2F37733.html'), 'true',[],'',''],
		['PAGE','37742',jdecode('Business+Valuation'),jdecode(''), jdecode('%2F16601%2F37742.html'), 'true',[],'','']
	],'',''],
	['PAGE','2922',jdecode('Humagen+Corporation'),jdecode(''), jdecode('%2F2922%2Findex.html'), 'true',[ 
		['PAGE','15001',jdecode('Human+Fertility+Services'),jdecode(''), jdecode('%2F2922%2F15001.html'), 'true',[],'',''],
		['PAGE','15022',jdecode('Research+%26+Development'),jdecode(''), jdecode('%2F2922%2F15022.html'), 'true',[],'',''],
		['PAGE','27901',jdecode('Controversial+Activity'),jdecode(''), jdecode('%2F2922%2F27901.html'), 'true',[],'',''],
		['PAGE','33101',jdecode('Information+Resources'),jdecode(''), jdecode('%2F2922%2F33101.html'), 'true',[],'','']
	],'',''],
	['PAGE','2943',jdecode('CAMIS+Corporation'),jdecode(''), jdecode('%2F2943%2Findex.html'), 'true',[ 
		['PAGE','14101',jdecode('General+Contracting'),jdecode(''), jdecode('%2F2943%2F14101.html'), 'true',[],'',''],
		['PAGE','14122',jdecode('Plumbing+and+HVAC'),jdecode(''), jdecode('%2F2943%2F14122.html'), 'true',[],'',''],
		['PAGE','14143',jdecode('Wood+Flooring'),jdecode(''), jdecode('%2F2943%2F14143.html'), 'true',[],'','']
	],'',''],
	['PAGE','2964',jdecode('Automotive+Systems'),jdecode(''), jdecode('%2F2964%2Findex.html'), 'true',[ 
		['PAGE','2985',jdecode('Ford+GT+Supercar'),jdecode(''), jdecode('%2F2964%2F2985.html'), 'true',[],'',''],
		['PAGE','31401',jdecode('Ford+GT+Products'),jdecode(''), jdecode('%2F2964%2F31401.html'), 'true',[],'',''],
		['PAGE','8701',jdecode('Corvette+ZR-1'),jdecode(''), jdecode('%2F2964%2F8701.html'), 'true',[],'',''],
		['PAGE','34301',jdecode('Corvette+ZR-1+Products'),jdecode(''), jdecode('%2F2964%2F34301.html'), 'true',[],'','']
	],'',''],
	['PAGE','37570',jdecode('Hopkins+Soccer'),jdecode(''), jdecode('%2F37570.html'), 'true',[],'',''],
	['PAGE','36761',jdecode('Property+for+Sale'),jdecode(''), jdecode('%2F36761%2Findex.html'), 'true',[ 
		['PAGE','37501',jdecode('General+Information'),jdecode(''), jdecode('%2F36761%2F37501.html'), 'true',[],'',''],
		['PAGE','37449',jdecode('14802+Timberhill+Road'),jdecode(''), jdecode('%2F36761%2F37449.html'), 'true',[],'',''],
		['PAGE','37458',jdecode('14814+Timberhill+Road'),jdecode(''), jdecode('%2F36761%2F37458.html'), 'true',[],'','']
	],'',''],
	['PAGE','8001',jdecode('Management'),jdecode(''), jdecode('%2F8001.html'), 'true',[],'',''],
	['PAGE','12601',jdecode('Philosophy'),jdecode(''), jdecode('%2F12601.html'), 'true',[],'',''],
	['PAGE','38844',jdecode('Important+Information'),jdecode(''), jdecode('%2F38844%2Findex.html'), 'true',[ 
		['PAGE','38853',jdecode('Your+Information'),jdecode(''), jdecode('%2F38844%2F38853.html'), 'true',[],'',''],
		['PAGE','38919',jdecode('Protection+%26+Assistance'),jdecode(''), jdecode('%2F38844%2F38919.html'), 'true',[],'',''],
		['PAGE','38735',jdecode('Disclaimer'),jdecode(''), jdecode('%2F38844%2F38735.html'), 'true',[],'','']
	],'',''],
	['PAGE','39075',jdecode('+Humagen+Foundation'),jdecode(''), jdecode('%2F39075.html'), 'true',[],'',''],
	['PAGE','5001',jdecode('Contact'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'','']];
var siteelementCount=34;
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 prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
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: '20110606-230407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20110607-002209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20110606-231218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20110606-231436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20111109-075134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2922',
internalId:  '',
customField: '20110607-003354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20110606-232725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20110606-233433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20110606-233547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20110606-233741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2943',
internalId:  '',
customField: '20110606-233836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20110801-001837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14122',
internalId:  '',
customField: '20070123-110148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14143',
internalId:  '',
customField: '20110801-001106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2964',
internalId:  '',
customField: '20110606-234112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2985',
internalId:  '',
customField: '20110607-000218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20111109-075823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20110606-234413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20110606-234652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36761',
internalId:  '',
customField: '20101207-124004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20070123-015140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20110606-234943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20110606-235055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37449',
internalId:  '',
customField: '20101207-124755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37458',
internalId:  '',
customField: '20110112-213309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37501',
internalId:  '',
customField: '20090423-212606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37570',
internalId:  '',
customField: '20110606-234735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37733',
internalId:  '',
customField: '20090617-093308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37742',
internalId:  '',
customField: '20110607-002545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38735',
internalId:  '',
customField: '20110702-143555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38844',
internalId:  '',
customField: '20110701-011112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38853',
internalId:  '',
customField: '20120205-145733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38919',
internalId:  '',
customField: '20120205-145844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39075',
internalId:  '',
customField: '20120205-151204'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.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%2C+Corvette+ZR-1%2C+Private+Investment+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();
};

