/* [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','250',jdecode('Home'),jdecode(''),'/250.html','true',[],'',''],
	['PAGE','36801',jdecode('Service'),jdecode(''),'/36801.html','true',[],'',''],
	['PAGE','36822',jdecode('News'),jdecode(''),'/36822.html','true',[],'',''],
	['PAGE','1558',jdecode('Newsletters'),jdecode(''),'/1558.html','true',[],'',''],
	['PAGE','1858',jdecode('%22YELLOW+PAGES%22+LINKS'),jdecode(''),'/1858.html','true',[],'',''],
	['PAGE','3165',jdecode('EMPLOYMENT'),jdecode(''),'/3165.html','true',[],'',''],
	['PAGE','3995',jdecode('Officers'),jdecode(''),'/3995.html','true',[],'',''],
	['PAGE','3550',jdecode('Board+Members+2011'),jdecode(''),'/3550.html','true',[],'',''],
	['PAGE','3559',jdecode('Board+Members+2012'),jdecode(''),'/3559.html','true',[],'',''],
	['PAGE','3793',jdecode('Board+Members+2013'),jdecode(''),'/3793.html','true',[],'',''],
	['PAGE','4213',jdecode('ASK+THE+EXPERT'),jdecode(''),'/4213.html','true',[],'',''],
	['PAGE','4222',jdecode('HELP+WANTED'),jdecode(''),'/4222.html','false',[],'',''],
	['PAGE','5076',jdecode('Paper+Index'),jdecode(''),'/5076.html','true',[],'',''],
	['PAGE','5135',jdecode('CD+for+Extrusion+Topics'),jdecode(''),'/5135.html','true',[],'',''],
	['PAGE','5355',jdecode('Student+Chapter+Activity'),jdecode(''),'/5355.html','true',[],'',''],
	['PAGE','5435',jdecode('ByLaws'),jdecode(''),'/5435.html','true',[],'',''],
	['PAGE','5573',jdecode('Paper+of+the+Month'),jdecode(''),'/5573.html','true',[],'',''],
	['PAGE','5935',jdecode('Member+Services'),jdecode(''),'/5935.html','true',[],'',''],
	['PAGE','5881',jdecode('Guestbook'),jdecode(''),'/5881/index.html','true',[ 
		['PAGE','5880',jdecode('Read+Guestbook'),jdecode(''),'/5881/5880.html','false',[],'','']
	],'',''],
	['PAGE','6500',jdecode('Extrusion+Hints'),jdecode(''),'/6500.html','true',[],'',''],
	['PAGE','18401',jdecode('Dies+and+Die+Modeling'),jdecode(''),'/18401.html','true',[],'',''],
	['PAGE','31701',jdecode('Board+Minutes'),jdecode(''),'/31701.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='E1B006';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='427';
theSitetree.graphicsetId='477';
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: 	'E1B006',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'427',
				graphicsetId: 	'477',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '250',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-5881AHW050IN2ULP']={
webappId:    '1002',
documentId:  '5881',
internalId:  '5881AHW050IN2ULP',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250',
internalId:  '',
customField: '20100709-135131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3995',
internalId:  '',
customField: '20100522-160902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20090624-193546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3550',
internalId:  '',
customField: '20100522-071143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3793',
internalId:  '',
customField: '20100522-065142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1558',
internalId:  '',
customField: '20100329-080349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1858',
internalId:  '',
customField: '20081013-191117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3165',
internalId:  '',
customField: '20100520-075639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3559',
internalId:  '',
customField: '20100628-154019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4213',
internalId:  '',
customField: '20081013-190949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20100520-073855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5076',
internalId:  '',
customField: '20080508-144650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5135',
internalId:  '',
customField: '20080508-145338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5355',
internalId:  '',
customField: '20100524-185307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5435',
internalId:  '',
customField: '20091102-145942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5573',
internalId:  '',
customField: '20100601-075736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5935',
internalId:  '',
customField: '20090227-145319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5881',
internalId:  '',
customField: '20080512-204853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5880',
internalId:  '',
customField: '20080512-204853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6500',
internalId:  '',
customField: '20080519-020049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20080813-111221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31701',
internalId:  '',
customField: '20100511-123034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36822',
internalId:  '',
customField: '20090624-193546'
};
webappMappings['1501']=webappMappings['1501-677358']={
webappId:    '1501',
documentId:  '250',
internalId:  '677358',
customField: '1501'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN2ULP';
var companyName   = '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Extrusion+Division+of+SPE';
var htmlTitle	  = 'Extrusion+Division%2C+SPE';
var metaKeywords  = 'extrusion++plastic+polymer+screws+dies+sheet+film+coating+coextrusion+Plastic+extrusion+production+research+publications+industry+screws+dies+polymers+rheometry++++';
var metaContents  = 'Plastic+extrusion+production+research+publications+industry+screws+dies+polymers+rheometry++++';
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();
};
