function getURLVar(e){var t=String(document.location).toLowerCase().split("?"),r="";if(t[1])for(var a=t[1].split("&"),o=0;o<=a.length;o++)if(a[o]){var u=a[o].split("=");u[0]&&u[0]==e.toLowerCase()&&(r=u[1])}return r}$(document).ready(function(){route=getURLVar("route"),route?(part=route.split("/"),url=part[0],part[1]&&(url+="/"+part[1]),$("#menu a[href*='index.php?route="+url+"']").parents("li[id]").addClass("selected")):$("#menu #home").addClass("selected")});