function getURLVar(o){var e=[],t=String(document.location).split("?");if(t[1]){var n=t[1].split("&");for(i=0;i<n.length;i++){var r=n[i].split("=");r[0]&&r[1]&&(e[r[0]]=r[1])}return e[o]?e[o]:""}}$(document).ready(function(){$("#menu > ul").superfish({pathClass:"overideThisToUse",delay:0,animation:{height:"show"},speed:"normal",autoArrows:!1,dropShadows:!1,disableHI:!1,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}}),$("#menu > ul").css("display","block")}),$(document).ready(function(){route=getURLVar("route"),route?(part=route.split("/"),url=part[0],part[1]&&(url+="/"+part[1]),$("a[href*='"+url+"']").parents("li[id]").addClass("selected")):$("#dashboard").addClass("selected"),$("#menu ul li").on("click",function(){$(this).addClass("hover")}),$("#menu ul li").on("mouseout",function(){$(this).removeClass("hover")})});