function activeMenu(){
var c =arguments.length==1?arguments[0]:"on";
var url =document.location.href;
if(url.indexOf("thisPage")!=-1){
url= url.substr(0,url.indexOf("&thisPage"));
}
$("a").each(
function () {
var thref =this.href;
if(thref.indexOf("#")!=-1){
thref = thref.substr(0,thref.indexOf("#"));
}
if(url.indexOf(thref)!=-1){
$(this).parent().addClass(c);
//$(this).parent().attr("id",c);
}
});
}