URL = window.location.href; 
indexhtml = (URL.indexOf('index.') > -1); 
line_cardhtml = (URL.indexOf('line_card.') > -1); 
abouthtml = (URL.indexOf('about.') > -1); 
contacthtml = (URL.indexOf('contact.') > -1);
rfqhtml = (URL.indexOf('rfq.') > -1);  

custom_carbide_hsshtml = (URL.indexOf('custom_carbide_hss.') > -1); 
custom_carbide_tippedhtml = (URL.indexOf('custom_carbide_tipped.') > -1); 
standard_cutting_toolhtml = (URL.indexOf('standard_cutting_tool.') > -1); 
cnc_tool_sharpeninghtml = (URL.indexOf('cnc_tool_sharpening.') > -1); 
standard_tool_sharpeninghtml = (URL.indexOf('standard_tool_sharpening.') > -1); 
tool_coating_serviceshtml = (URL.indexOf('tool_coating_services.') > -1); 

window.onload = function navigations(){ 
if (indexhtml) { 
var x=document.getElementById("home"); 
x.className = 'highlight_class'; 
} 

else if (line_cardhtml){ 
var x=document.getElementById("linecard"); 
x.className = 'highlight_class'; 
} 

else if (abouthtml){ 
var x=document.getElementById("about"); 
x.className = 'highlight_class'; 
} 

else if (contacthtml){ 
var x=document.getElementById("contact"); 
x.className = 'highlight_class'; 
} 

else if (rfqhtml){ 
var x=document.getElementById("rfq"); 
x.className = 'highlight_class'; 
} 

else if (custom_carbide_hsshtml){ 
var x=document.getElementById("custom_carbide_hss"); 
x.className = 'highlight_class'; 
} 

else if (custom_carbide_tippedhtml){ 
var x=document.getElementById("custom_carbide_tipped"); 
x.className = 'highlight_class'; 
} 

else if (standard_cutting_toolhtml){ 
var x=document.getElementById("standard_cutting_tool"); 
x.className = 'highlight_class'; 
} 

else if (cnc_tool_sharpeninghtml){ 
var x=document.getElementById("cnc_tool_sharpening"); 
x.className = 'highlight_class'; 
} 

else if (standard_tool_sharpeninghtml){ 
var x=document.getElementById("standard_tool_sharpening"); 
x.className = 'highlight_class'; 
} 

else if (tool_coating_serviceshtml){ 
var x=document.getElementById("tool_coating_services"); 
x.className = 'highlight_class'; 
} 

} 


