$(".menu > ul > li > a").each(function()
{
if (this.href == window.location.href) {
$(this).parent().addClass("active");
}
});
$(".menu > ul > li > a").each(function()
{
if (this.href == window.location.href) {
$(this).parent().addClass("active");
}
});