/* [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','6301',jdecode('Home'),jdecode(''),'/6301.html','true',[],''],
	['PAGE','7901',jdecode('Current+Capabilities'),jdecode(''),'/7901/index.html','true',[ 
		['PAGE','7922',jdecode('Anodize'),jdecode(''),'/7901/7922.html','true',[],''],
		['PAGE','8101',jdecode('Chem+Film'),jdecode(''),'/7901/8101.html','true',[],''],
		['PAGE','8122',jdecode('Electroless+Nickel'),jdecode(''),'/7901/8122.html','true',[],''],
		['PAGE','8143',jdecode('Tin+Plate'),jdecode(''),'/7901/8143.html','true',[],''],
		['PAGE','21101',jdecode('Passivate'),jdecode(''),'/7901/21101.html','true',[],''],
		['PAGE','8164',jdecode('Zinc'),jdecode(''),'/7901/8164.html','true',[],'']
	],''],
	['PAGE','6722',jdecode('Quality+Control'),jdecode(''),'/6722.html','true',[],''],
	['PAGE','21901',jdecode('Quotes'),jdecode(''),'/21901.html','true',[],''],
	['PAGE','28301',jdecode('Enviromental'),jdecode(''),'/28301.html','true',[],''],
	['PAGE','22101',jdecode('About+us'),jdecode(''),'/22101.html','true',[],''],
	['PAGE','6373',jdecode('Contact'),jdecode(''),'/6373.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Linear';
theSitetree.paletteFamily='404040';
theSitetree.keyvisualId='2223';
theSitetree.keyvisualName='zahnrad.jpg';
theSitetree.fontsetId='361';
theSitetree.graphicsetId='414';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Linear',
				paletteFamily: 	'404040',
				keyvisualId: 	'2223',
				keyvisualName: 	'zahnrad.jpg',
				fontsetId: 		'361',
				graphicsetId: 	'414',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'CC6600',
				e_color: 		'FFCC66',
				f_color: 		'999966',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20080701-161954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20080512-113353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20080519-102256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20080512-113838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20080512-114206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20080512-114521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20080501-175846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20080515-104203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7922',
internalId:  '',
customField: '20080512-105800'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6373',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7008']=webappMappings['7008-3226']={
webappId:    '7008',
documentId:  '21901',
internalId:  '3226',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20080510-164309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20080520-175830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20080513-180211'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20080508-021221'
};
webappMappings['1501']=webappMappings['1501-8406609']={
webappId:    '1501',
documentId:  '6301',
internalId:  '8406609',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-3700']={
webappId:    '7008',
documentId:  '7922',
internalId:  '3700',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3702']={
webappId:    '7008',
documentId:  '8101',
internalId:  '3702',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3703']={
webappId:    '7008',
documentId:  '8122',
internalId:  '3703',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3704']={
webappId:    '7008',
documentId:  '8143',
internalId:  '3704',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3705']={
webappId:    '7008',
documentId:  '21101',
internalId:  '3705',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3706']={
webappId:    '7008',
documentId:  '8164',
internalId:  '3706',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3750']={
webappId:    '7008',
documentId:  '7901',
internalId:  '3750',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2GRB';
var companyName   = 'Tel%3A+%28818%29+897-6575++Fax%3A+%28818%29+890-2335';
var htmlTitle	  = 'TEC-PROCESSING+CO.';
var metaKeywords  = 'AnodizingTin+PlateChem+FilmPassivationElectroless+NickelMaskingStrippingEtchZincBlack+AnodizeClear+Zincanodize';
var metaContents  = 'Anodizing%2C+Tin+Plate%2C+Chem+Film%2C+Passivation%2C+Electroless+Nickel%2C+Masking%2C+Stripping%2C+Etch%2C+Zinc%2C+and+Copper+Plate.';
					                                                                    
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) {														 
    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();
}
/* EOF */					                                                            

