iId = cId = lastNum = -1;
ka = 0;
popmtop = new Array(0,289,354,419);


function vmenu(id) {
//   alert('s');
//   if(id == lastNum) {
//      jQuery("#popmenu"+id).css("display","none");
//      jQuery("#popmenu"+id).css("display","none");
//      jQuery("#popmenu"+id).animate({height: "hide"}, 200);
//      lastNum = -1;
//   } else {
//      jQuery("#popmenu"+id).css("display","");
//      jQuery("#popmenu"+lastNum).css("display","none");
      jQuery("#popmenu"+id).animate({height: "show"}, 200);
//      jQuery("#popmenu"+lastNum).animate({height: "hide"}, 200);
//      jQuery("#popmenu"+lastNum).css("display","none");
//      jQuery("#popmenu").css("top",popmtop[num]);
//      jQuery("#vmtext").html(jQuery("#vmtext"+num).html());
//      lastNum = id;
//   }
}

function nlink(id) {
   if(cId == id) {
      if(id == 6) {
         jQuery(".remind").css("color","#980225");
         jQuery(".q").css("color","#980225");
      } else {
         jQuery("#newsI"+id+" .txt").css("text-decoration","none");
         jQuery("#newsI"+id+" .date").css("color","#980225");
      }
      cId = -1;
   } else {
      if(id == 6) {
         jQuery(".remind").css("color","red");
         jQuery(".q").css("color","red");
      } else {
         jQuery("#newsI"+id+" .date").css("color","red");
         jQuery("#newsI"+id+" .txt").css("text-decoration","underline");
      }
      cId = id;
   }
}

function obraml(id) {
   if(cId == id) {
      jQuery("#"+id+" .pts").attr("src","img/d/3pts.gif");
      jQuery("#"+id).css("border","1px solid #cccabb");
      jQuery("#"+id+" .more").css("background","url('img/d/rItemMore.gif') 0 0 no-repeat");
      jQuery("#"+id+" .c").css("background","url('img/d/rItemCorns.gif') 0 0 no-repeat");
      jQuery("#"+id+" .c.lb").css("background-position","-3px 0px");
      jQuery("#"+id+" .c.rt").css("background-position","-3px 0px");
      cId = -1;
   } else {
      jQuery("#"+id+" .pts").attr("src","img/d/3ptsAct.gif");
      jQuery("#"+id).css("border","1px solid red");
      jQuery("#"+id+" .more").css("background","url('img/d/rItemMoreAct.gif') 0 0 no-repeat");
      jQuery("#"+id+" .c").css("background","url('img/d/rItemCornsAct.gif') 0 0 no-repeat");
      jQuery("#"+id+" .c.lb").css("background-position","-3px 0px");
      jQuery("#"+id+" .c.rt").css("background-position","-3px 0px");
      cId = id;
   }
}

function dohref(id) {
//alert("#kah"+id);
	if(ka == 0) {
//		alert($("#kah1"));
		jQuery("#kah"+id).attr("class","kahref act");
		jQuery("#kah"+id+"p").attr("class","kahref p act");
		ka = 1;
	} else {
		jQuery("#kah"+id).attr("class","kahref");
		jQuery("#kah"+id+"p").attr("class","kahref p");
		ka = 0;
	}



}
