﻿$(document).ready(function(){
var strLast,strSelfID,selfID;	
        strLast = location.href.substring(location.href.indexOf("?")+1);	
		strSelfID=strLast.substring(strLast.indexOf("&")+7);
		selfID=strSelfID.substring(strSelfID.indexOf("=")+1);
		if (selfID != "")
		{
		    $("#" + selfID ).css("color","red");
		}
    $("#othermenu li").each(function(index){
        $(this).click(function(){
           var tempId = $("#othermenu li a").eq(index).attr("id")
           if (tempId == selfID)
           {
                $("#othermenu li").eq(index).css("color","red");           
           }
        });
    });
});
