/* [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','95',jdecode('Home'),jdecode(''),'/95.html','true',[],''],
	['PAGE','116',jdecode('About+us'),jdecode(''),'/116.html','true',[],''],
	['PAGE','125',jdecode('Biodiesel+Processors'),jdecode(''),'/125/index.html','true',[ 
		['PAGE','1192',jdecode('SSI-250'),jdecode(''),'/125/1192.html','true',[],''],
		['PAGE','1201',jdecode('SSI-100'),jdecode(''),'/125/1201.html','true',[],''],
		['PAGE','1210',jdecode('SSI-50'),jdecode(''),'/125/1210.html','true',[],'']
	],''],
	['PAGE','4017',jdecode('Oil+Seed+Presses'),jdecode(''),'/4017/index.html','true',[ 
		['PAGE','4163',jdecode('BT-Presses'),jdecode(''),'/4017/4163.html','true',[],'']
	],''],
	['PAGE','4413',jdecode('Centrifuges'),jdecode(''),'/4413.html','true',[],''],
	['PAGE','6541',jdecode('News'),jdecode(''),'/6541.html','true',[],''],
	['PAGE','4885',jdecode('Dealer+Opportunities'),jdecode(''),'/4885/index.html','true',[ 
		['PAGE','4961',jdecode('Dealer+Opportunities+%28follow+up+page%29'),jdecode(''),'/4885/4961.html','false',[],'']
	],''],
	['PAGE','134',jdecode('Contact'),jdecode(''),'/134/index.html','true',[ 
		['PAGE','4875',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/134/4875.html','false',[],'']
	],''],
	['PAGE','4468',jdecode('Links'),jdecode(''),'/4468.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='77B484';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10793';
theSitetree.graphicsetId='11220';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='77B484';
var theTemplate={
				name: 			'Aroundtheworld',
				paletteFamily: 	'77B484',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10793',
				graphicsetId: 	'11220',
				contentColor: 	'000000',
				contentBGColor: '77B484',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'365D3D',
				e_color: 		'365D3D',
				f_color: 		'365D3D',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '95',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-ahw050in3czb15c4400e90067531']={
webappId:    '1001',
documentId:  '134',
internalId:  'ahw050in3czb15c4400e90067531',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in3czb15c4400e90067531']={
webappId:    '1001',
documentId:  '4875',
internalId:  'ahw050in3czb15c4400e90067531',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050in3czba40d8adb0106006f']={
webappId:    '1001',
documentId:  '4885',
internalId:  'ahw050in3czba40d8adb0106006f',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in3czba40d8adb0106006f']={
webappId:    '1001',
documentId:  '4961',
internalId:  'ahw050in3czba40d8adb0106006f',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95',
internalId:  '',
customField: '20081120-110809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4468',
internalId:  '',
customField: '20090226-110301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20081120-111057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125',
internalId:  '',
customField: '20070904-183927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1192',
internalId:  '',
customField: '20070904-183522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20070904-184545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1210',
internalId:  '',
customField: '20070904-184616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4017',
internalId:  '',
customField: '20070904-035654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4163',
internalId:  '',
customField: '20070929-132547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4413',
internalId:  '',
customField: '20070909-035308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6541',
internalId:  '',
customField: '20080131-024528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4885',
internalId:  '',
customField: '20070906-052541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4961',
internalId:  '',
customField: '20070906-052454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134',
internalId:  '',
customField: '20070906-043027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4875',
internalId:  '',
customField: '20070906-041651'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3CZB';
var companyName   = 'SSI+ENERGY+LLC++++%22advancing+energy+independence%22';
var htmlTitle	  = '';
var metaKeywords  = 'biodiesel%2C+processors%2C+processor%2C+oil%2C+seed%2C+press%2C+presses%2C+centrifuges%2C+alternative%2C+energy%2C+fuel%2C+crops%2C+greenmotion%2C+accent%2C+manufacturing%2C+agrifuel%2C+';
var metaContents  = '';
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();
};
