/* [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','2101',jdecode('Welcome'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','76600',jdecode('About+L%26ALLC'),jdecode(''),'/76600.html','true',[],'',''],
	['PAGE','54534',jdecode('Press+Release'),jdecode(''),'/54534.html','true',[],'',''],
	['PAGE','20212',jdecode('FDA+and+Tobacco'),jdecode(''),'/20212.html','true',[],'',''],
	['PAGE','86400',jdecode('What+we+told+the+FDA'),jdecode(''),'/86400.html','true',[],'',''],
	['PAGE','28312',jdecode('Our+Opinions+'),jdecode(''),'/28312.html','true',[],'',''],
	['PAGE','5012',jdecode('Presentations'),jdecode(''),'/5012.html','true',[],'',''],
	['PAGE','5512',jdecode('Publications'),jdecode(''),'/5512.html','true',[],'',''],
	['PAGE','5533',jdecode('Contact'),jdecode(''),'/5533.html','true',[],'',''],
	['PAGE','42412',jdecode('Related+Links'),jdecode(''),'/42412.html','true',[],'',''],
	['PAGE','42433',jdecode('Tobacco+Links'),jdecode(''),'/42433.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='330099';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='430';
theSitetree.graphicsetId='475';
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: 			'Card',
				paletteFamily: 	'330099',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'430',
				graphicsetId: 	'475',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100705-124033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28312',
internalId:  '',
customField: '20100706-093615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5012',
internalId:  '',
customField: '20100705-125051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5533',
internalId:  '',
customField: '20100412-043917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5512',
internalId:  '',
customField: '20100705-104848'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42412',
internalId:  '',
customField: '20100519-074710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86400',
internalId:  '',
customField: '20100705-115032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20212',
internalId:  '',
customField: '20100705-114941'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42433',
internalId:  '',
customField: '20100623-083556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54534',
internalId:  '',
customField: '20100623-074952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76600',
internalId:  '',
customField: '20100705-131030'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '76600',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '54534',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '20212',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '86400',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '28312',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5012',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5512',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5533',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '42412',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '42433',
internalId:  '',
customField: 'language:en;country:US;'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN330INZP5R';
var companyName   = 'Lauterbach+%26+Associates%2C+LLC';
var htmlTitle	  = 'Lauterbach+%26+Associates%2C+LLC';
var metaKeywords  = 'FDA%2C+Tobacco%2C++GMP%3B+FDA+regulation+of+tobacco%3B+FDA+Tobacco+Experts%3B+Tobacco%3B+tobacco+science%3B+TSRC%3B+ACS%3B+tobacco+science+and+research+conference%3B+TMA%2C+Tobacco+Manufacturers+Asssociation%3B+CORESTA%3B+SRA%3B+FDA+regulation%3B+snuff%3B+snus%3B+chewing+tobacco%3B+smokeless+tobacco%3B+scientific+and+regulatory+affairs%3B+Middle+Georgia+Chemistry+news%3B+Middle+Georgia+Section+ACS%3B+Middle+Georgia+Section+American+Chemical+Society%3B+Middle+GA+Section+ACS%3B+Middle+GA+Section%3B+American+Chemical+Society%3B+Middle+Ga+Section+ACS%3B+Middle+Ga+Section+American+Chemical+Society%3B+TC+126%3B+ISO+TC+126%3B+ISO+TAG+126%3B+Beitrage+zur+Tabakforshung+International%3B+tobacco+consultants%3B+tobacco+FDA+consultants%3B+FDA+tobacco+consultants%3B+FDA+regulate+tobacco+consultants%3B+FDA+regulatory+tobacco+consultant%3B+tobacco+control+regulation+consultant%3B+FDA+tobacco+legislation+consultant%3B+new+tobacco+bill+consultant%3B+tobacco+control+regulation+consultant%3B+tobacco+regulation+consultant%3B+Dr.+John+H.+Lauterbach%2C+DABT%3B+Lauterbach++Associates%2C+LLC%3B+John+H.+Lauterbach%2C+PhD%2C+DABT%3B+tobacco+GMP%3B+TPSAC%3B+Tobacco+Products+Scientific+Advisory+Committee%3B+FDA+TPSAC%3B+FDA+Tobacco+Products';
var metaContents  = 'Lauterbach++Associates+is+a+consulting+firm+based+in+Middle+Georgia.++We+specialize+in+tobacco+science+and+tobacco+chemistry.++We+also+do+research+and+publish+articles+in+professional+journals+based+on+that+research.++We+invite+you+to+visit+our+website+and+see+if+we+can+be+of+service+to+you+and+your+company.++Have+a+marvelous+day%21';
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();
};
