// JavaScript Document                                                                                    

url = window.location.href;                                              
indexhtml = (url.indexOf("index.") > -1);                                             
aboutushtml = (url.indexOf("about-us.") > -1);                                            
capabilitieshtml = (url.indexOf("capabilities.") > -1);                                             
smarterhtml = (url.indexOf("smarter.") > -1);                                             
planttourtophtml = (url.indexOf("plant-tour.") > -1);                                             
casestudieshtml = (url.indexOf("case-studies.") > -1);                                             
latesthtml = (url.indexOf("/siteblog/latest.") > -1);                                             
libraryhtml = (url.indexOf("library.") > -1);                                            
contactushtml = (url.indexOf("contact-us.") > -1);                                          
                                            
/* leftnav */                                            
company_historyhtml = (url.indexOf("/company-history.") > -1);                                            
global_sourcinghtml = (url.indexOf("/global-sourcing.") > -1);                                            
market_servedhtml = (url.indexOf("/market-served.") > -1);                                            
assemblyhtml = (url.indexOf("/assembly.") > -1);                                            
stampinghtml = (url.indexOf("/stamping.") > -1);                                            
fabricationhtml = (url.indexOf("/fabrication.") > -1);                                            
product_design_supporthtml = (url.indexOf("/product-design-support.") > -1);                                            
transfershtml = (url.indexOf("/transfers.") > -1);                                            
aerospacehtml = (url.indexOf("/aerospace.") > -1);                   
productflowsystemhtml = (url.indexOf("/product-flow-system.") > -1);                                            
automationhtml = (url.indexOf("/automation.") > -1);                                            
toolinglifecyclemanagementhtml = (url.indexOf("/tooling-lifecycle-management.") > -1);                                            
enhancedquotingprocesshtml = (url.indexOf("/enhanced-quoting-process.") > -1);                  
planttourlefthtml = (url.indexOf("/plant-tour.") > -1);                                            
partsgalleryhtml = (url.indexOf("/parts-gallery.") > -1);          
assemblysystemsthtml = (url.indexOf("/assembly-systems.") > -1);                                            
productdesignsupportcasehtml = (url.indexOf("/case-studies-product-design-support.") > -1);        
mapadirectionshtml = (url.indexOf("/map-a-directions.") > -1);          
jobshtml = (url.indexOf("/jobs.") > -1);                                            
diemasterhtml = (url.indexOf("/diemaster.") > -1);                                                   
                                            


function navigations(){                                             
                                                
if (indexhtml) {                                              
var x=document.getElementById("home");                                              
x.className = "highlight_class";                                              
}                                              
else if (aboutushtml){                                              
var x=document.getElementById("about_us");                                              
x.className = "highlight_class";                                              
}                                              
else if (capabilitieshtml){                                              
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                                              
else if (smarterhtml){                                              
var x=document.getElementById("smarter");                                              
x.className = "highlight_class";                                              
}                                              
                                             
else if (casestudieshtml){                                              
var x=document.getElementById("case_studies");                                              
x.className = "highlight_class";                                              
}                                              

else if (latesthtml){                                              
var x=document.getElementById("latest");                                              
x.className = "highlight_class";                                              
}                                             

else if (libraryhtml){                                              
var x=document.getElementById("library");                                              
x.className = "highlight_class";                                              
}                                          

else if (contactushtml){                                              
var x=document.getElementById("contact_us");                                              
x.className = "highlight_class";                                              
}                                           


                                             
/* leftnav */                                            
else if (company_historyhtml){                                              
var x=document.getElementById("company_history");                                              
x.className = "highlight_class2";                                     
var x=document.getElementById("about_us");                                              
x.className = "highlight_class";                                              
}                                             
else if (global_sourcinghtml){                                              
var x=document.getElementById("global_sourcing");                                              
x.className = "highlight_class2";                                    
var x=document.getElementById("about_us");                                              
x.className = "highlight_class";                                              
}                                             
else if (market_servedhtml){                                              
var x=document.getElementById("market_served");                                              
x.className = "highlight_class2";                                    
var x=document.getElementById("about_us");                                              
x.className = "highlight_class";                                              
}                                             
else if (assemblyhtml){                                              
var x=document.getElementById("assembly");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                                             
else if (stampinghtml){                                              
var x=document.getElementById("stamping");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                                             
else if (fabricationhtml){                                              
var x=document.getElementById("fabrication");                                              
x.className = "highlight_class2";                                         
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                     
}                                             
else if (product_design_supporthtml){                                              
var x=document.getElementById("product_design_support");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                                
else if (transfershtml){                                              
var x=document.getElementById("transfers");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                                             
else if (aerospacehtml){                                              
var x=document.getElementById("aerospace");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("capabilities");                                              
x.className = "highlight_class";                                              
}                   
else if (productflowsystemhtml){                                              
var x=document.getElementById("product_flow_system");                                              
x.className = "highlight_class2";                                         
var x=document.getElementById("smarter");                                              
x.className = "highlight_class";                                     
}                                             
else if (automationhtml){                                              
var x=document.getElementById("automation");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("smarter");                                              
x.className = "highlight_class";                                              
}                                
else if (toolinglifecyclemanagementhtml){                                              
var x=document.getElementById("tooling_lifecycle_management");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("smarter");                                              
x.className = "highlight_class";                                              
}                                             
else if (enhancedquotingprocesshtml){                                              
var x=document.getElementById("enhanced_quoting_process");                                              
x.className = "highlight_class2";                                
var x=document.getElementById("smarter");                                              
x.className = "highlight_class";                                              
}                  
else if (planttourlefthtml){                                              
var x=document.getElementById("plant_tour_left");                                              
x.className = "highlight_class3";  
var x=document.getElementById("plant_tour_top");                                            
x.className = "highlight_class";             
}                                
else if (partsgalleryhtml){                                              
var x=document.getElementById("parts_gallery");                                              
x.className = "highlight_class3";             
var x=document.getElementById("plant_tour_top");                                              
x.className = "highlight_class";                                
}          
else if (assemblysystemsthtml){                                              
var x=document.getElementById("assembly_systems");                                              
x.className = "highlight_class2";             
var x=document.getElementById("case_studies");                                              
x.className = "highlight_class";             
}                                
else if (productdesignsupportcasehtml){                                              
var x=document.getElementById("product_design_support_case");                                              
x.className = "highlight_class2";             
var x=document.getElementById("case_studies");                                              
x.className = "highlight_class";                                
}       
else if (mapadirectionshtml){                                              
var x=document.getElementById("map_a_directions");                                              
x.className = "highlight_class4";             
var x=document.getElementById("contact_us");                                              
x.className = "highlight_class";                                
}          
else if (jobshtml){                                              
var x=document.getElementById("jobs");                                              
x.className = "highlight_class4";             
var x=document.getElementById("contact_us");                                              
x.className = "highlight_class";             
}                                
else if (diemasterhtml){                                              
var x=document.getElementById("diemaster");                                              
x.className = "highlight_class4";             
var x=document.getElementById("contact_us");                                              
x.className = "highlight_class";                                
}                                              
}
