/* [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','10601',jdecode('Home'),jdecode(''),'/10601.html','true',[],''],
	['PAGE','10652',jdecode('About+Us'),jdecode(''),'/10652.html','true',[],''],
	['PAGE','10673',jdecode('Steel+Rule+Dies'),jdecode(''),'/10673.html','true',[],''],
	['PAGE','10694',jdecode('Laser+Services'),jdecode(''),'/10694.html','true',[],''],
	['PAGE','10715',jdecode('Lasered+Materials'),jdecode(''),'/10715.html','true',[],''],
	['PAGE','10736',jdecode('Contact+Us'),jdecode(''),'/10736.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Analyzer';
theSitetree.paletteFamily='0F57A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10385';
theSitetree.graphicsetId='10574';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Analyzer',
				paletteFamily: 	'0F57A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10385',
				graphicsetId: 	'10574',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20080901-201811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10652',
internalId:  '',
customField: '20080815-013334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10673',
internalId:  '',
customField: '20080815-012756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10694',
internalId:  '',
customField: '20080815-003144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10715',
internalId:  '',
customField: '20080815-003423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10736',
internalId:  '',
customField: '20080815-003952'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-11471730']={
webappId:    '1501',
documentId:  '10601',
internalId:  '11471730',
customField: '1501'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10652',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10673',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10694',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10715',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10736',
internalId:  '',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN21K6';
var companyName   = 'Precsion+Laserworks+Inc.+-+SRD%27s+%26+Lasering';
var htmlTitle	  = 'Steel+Rule+Dies+%26+Laser+Cutting+%2F+Engraving+Services';
var metaKeywords  = 'steel+rule+dies%2C+die+cutting%2C+die+cut%2C+die+cutter%2C+die+and+laser+cutting%2C+die+services%2C+die+cutting+industry%2C+Manufacturer+of+steel+rule+dies+produced+with+automatic+rule+bending%2C+lasercut+wood%2C+highest+quality+steel+rule+knives.++Steel+rule+dies+cut+decals%2C+gaskets%2C+labels%2C+tags%2C+stickers%2C+flex+circuits%2C+folders%2C+cartons%2C+point+of+purchase+cardboard+or+corrugated+displays%2C+ect.+Laser+Cutting%2C+Laser+Engraving%2C+Lasered+Materials%2C+orange+county%2C+los+angeles%2C+california%2C+united+states%2C+diemaker%2C+laser%2C+lasercut%2C+laser+engrave%2C+engrave.++die+making%2C+laser+steel+rule+dies%2C+die+cut%2C+all+steel+rule+dies%2C+CAD%2C+.dxf%2C+cimex%2C+largest%2C+arizona%2C+washington%2C+idaho%2C+texas%2C+nevada%2C+colorado%2C+steel+rule+die%2C+lasercutting%2C+diemaking%2C+high+tolerance%2C+local%2C+stamping+die%2C+cutting%2C+cut%2C+laser%2C+best%2C+largest%2C+cutting+die%2C+quick+turn%2C+all+materials%2C+wood%2C+maple%2C+birch%2C+steel+rule%2C+ejection%2C+2pt%2C+3pt%2C+.937%2C+.918%2C+die+cutting+press%2C+inhouse%2C+fully+automated%2C+precision%2C+service%2C+repair%2C+fix%2C+maintain%2C+quality%2C+check%2C+u.s.%2C+faciilty.';
var metaContents  = 'We+produce+steel+rule+dies+and+provide+both+die+and+laser+cutting+as+well+as+general+tool+and+die+services+for+the+die+cutting+industry.++Manufacturer+of+steel+rule+dies+produced+with+automatic+rule+bending%2C+lasercut+wood%2C+hghest+quality+steel+rule+knives.++Steel+rule+dies+cut+decals%2C+gaskets%2C+labels%2C+tags%2C+stickers%2C+flex+circuits%2C+folders%2C+cartons%2C+point+of+purchase+cardboard+or+corrugated+displays%2C+ect.+Providing+laser+cutting+and+engraving+services.++Most+common+substrates+are+laser+friendly+and+can+be+processed+inhouse.';
					                                                                    
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 */					                                                            
