// JavaScript Document 

url = window.location.href;  
homehtml = (url.indexOf("index.") > -1); 
abouthtml = (url.indexOf("about.") > -1);
resourceshtml = (url.indexOf("resources.") > -1); 
industries_serhtml = (url.indexOf("industries-served.") > -1); 
safetyhtml = (url.indexOf("safety-training.") > -1); 
linecardhtml = (url.indexOf("linecard.") > -1); 
contacthtml = (url.indexOf("contact.") > -1); 
request_infohtml = (url.indexOf("request") > -1);
categoryhtml = (url.indexOf("category") > -1);

/* leftnav */
industrial_hosehtml = (url.indexOf("industrial-hose") > -1);
flexible_tubinghtml = (url.indexOf("flexible-tubing") > -1);
couplingshtml = (url.indexOf("couplings-accessories") > -1);
hydraulichtml = (url.indexOf("hydraulic-hose-fittings") > -1);
custom_rubberhtml = (url.indexOf("custom-rubber-products") > -1);
nylonhtml = (url.indexOf("nylon-poly-fittings") > -1);
additional_caphtml = (url.indexOf("additional-capabilities") > -1);


function navigations(){ 
    
if (homehtml) {  
var x=document.getElementById("home");  
x.className = "highlight_class";  
}  

else if (abouthtml){  
var x=document.getElementById("about");  
x.className = "highlight_class";  
}  

else if (resourceshtml){  
var x=document.getElementById("resources");  
x.className = "highlight_class";  
}  

else if (industries_serhtml){  
var x=document.getElementById("industries_ser");  
x.className = "highlight_class";  
}  

else if (safetyhtml){  
var x=document.getElementById("safety");  
x.className = "highlight_class";  
}  

else if (linecardhtml){  
var x=document.getElementById("linecard");  
x.className = "highlight_class";  
}  



else if (request_infohtml){  
var x=document.getElementById("request_info");  
x.className = "highlight_class";  
} 

 
 

else if (contacthtml){  
var x=document.getElementById("contact");  
x.className = "highlight_class";  
}  

/* leftnav */
else if (industrial_hosehtml){  
var x=document.getElementById("industrial_hose");  
x.className = "highlight_class2";  
} 

else if (flexible_tubinghtml){  
var x=document.getElementById("flexible_tubing");  
x.className = "highlight_class2";  
} 

else if (couplingshtml){  
var x=document.getElementById("couplings");  
x.className = "highlight_class2";  
} 

else if (hydraulichtml){  
var x=document.getElementById("hydraulic");  
x.className = "highlight_class2";  
} 

else if (custom_rubberhtml){  
var x=document.getElementById("custom_rubber");  
x.className = "highlight_class2";  
} 

else if (nylonhtml){  
var x=document.getElementById("nylon");  
x.className = "highlight_class2";  
} 

else if (additional_caphtml){  
var x=document.getElementById("additional_cap");  
x.className = "highlight_class2";  
} 


} 


