// JavaScript Document                                    



URL = window.location.href;  
indexhtml = (URL.indexOf('/index.') > -1);  
abouthtml = (URL.indexOf('/about-us.') > -1);  
industrieshtml = (URL.indexOf('/industries-served.') > -1);  
vendorhtml = (URL.indexOf('/vendors.') > -1);  
productshtml = (URL.indexOf('#') > -1);  
equipmenthtml = (URL.indexOf('/equipment.') > -1);  
blastingabrasiveshtml = (URL.indexOf('/products-blasting-abrasives.') > -1);  
mediascompoundshtml = (URL.indexOf('/products-medias-compounds.') > -1);  
usedhtml = (URL.indexOf('/used-equipment.') > -1);  
partshtml = (URL.indexOf('/parts-services.') > -1);  
jobshophtml = (URL.indexOf('/services.') > -1);  
locationshtml = (URL.indexOf('/locations.') > -1);  
contacthtml = (URL.indexOf('/contact.') > -1);  


window.onload = function navigations(){                                     
if (indexhtml) {                                     
var x=document.getElementById("home");                                     
x.className = 'highlight_class';                                     
}                                     

else if (abouthtml){                                     
var x=document.getElementById("about");                                     
x.className = 'highlight_class';                                     
}         

else if (industrieshtml){                                   
var x=document.getElementById("about");                                   
x.className = 'highlight_class';                                   
}            
else if (vendorhtml){                                   
var x=document.getElementById("about");                                   
x.className = 'highlight_class';                                   
}         

else if (productshtml){                                     
var x=document.getElementById("products");                                     
x.className = 'highlight_class';                                     
}         

else if (equipmenthtml){                                     
var x=document.getElementById("products");                                     
x.className = 'highlight_class';                                     
}      

else if (blastingabrasiveshtml){                                     
var x=document.getElementById("products");                                     
x.className = 'highlight_class';                                     
}  

else if (mediascompoundshtml){                                     
var x=document.getElementById("products");                                     
x.className = 'highlight_class';                                     
} 

else if (usedhtml){                                     
var x=document.getElementById("products");                                     
x.className = 'highlight_class';                                     
} 
            
else if (partshtml){                                     
var x=document.getElementById("parts");                                     
x.className = 'highlight_class';                                     
}                                     

else if (jobshophtml){                                     
var x=document.getElementById("jobshop");                                     
x.className = 'highlight_class';                                     
}                                   

else if (locationshtml){                                     
var x=document.getElementById("locations");                                     
x.className = 'highlight_class';                                     
}                                   

else if (contacthtml){                                     
var x=document.getElementById("contact");                                     
x.className = 'highlight_class';                                     
}                                    

}
