// JavaScript Document
 $(document).ready(function(){ 
	
	//get current url and page
	var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	
	//highlight menu according to selected page
	switch(sPage)
        {
            case "production-diary": $("body").attr("id","production");
            break;
			
            case "eco-logic": $("body").attr("id","eco_logic");
            break;
			
			case "about-us": $("body").attr("id","about_us");
            break;
			
            case "assembly": $("body").attr("id","assembly");
            break;
			
			case "contact": $("body").attr("id","contact");
            break;
			
			case "Proporta-Apple-iPhone-3GS-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
		    break;
			
		   case "Proporta-Apple-iPod-Touch-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
		   break;
			 
			case "Proporta-Apple-iPod-Classic-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
			break;
			
			case "Proporta-Apple-iPod-nano-5g-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
			break;
			
			case "Proporta-BlackBerry-Bold-2-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
		    break;
			
			case "Proporta-HTC-Desire-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
			break;
			
			case "Proporta-Apple-iPad-Recycled-Leather-Eco-Case": $("body").attr("id","pro_range");
			break;
			
			case "Proporta-Recycled-Leather-Pouch": $("body").attr("id","pro_range");
			break;
			
			case "Proporta-Hessian-Pouch": $("body").attr("id","pro_range");
		    break;
        	
			case "home": $("body").attr("id","home");
		    break;
			
            default: $("body").attr("id","home");
        }
	
	 
					
});


