// JavaScript Document
$(document).ready(function(){
	mark("#rsslist");
});

function mark(id) {
	var rollovercolor = "#ffbfbf";
	$(id + " tr.mark").each(function(){
		$(this).attr("obgcolor",$(this).attr("bgcolor"));					 
	});
	$(id + " tr.mark")
		.hover(function(){
				if(typeof $(this).attr("mark") == "undefined" || $(this).attr("mark") !="1"){
					$(this).attr("bgcolor",rollovercolor).css("background-color",rollovercolor);					
				}
			},
			function(){
				if(typeof $(this).attr("mark") == "undefined" || $(this).attr("mark") !="1"){ 
					var oc = $(this).attr("obgcolor");
					$(this).attr("bgcolor",oc).css("background-color",oc);
				}
			})
		.click(function(){//alert($(this).find("td").attr("bgcolor"));
			if($(this).attr("mark")=="1") {
				var oc = $(this).find("td:first").attr("obgcolor");
				$(this).find("td").attr("bgcolor",oc)
					.css("background-color",oc);
				$(this).attr("mark","0");
			} else {
				$(this).find("td").attr("bgcolor","#FFD0A0").css("background-color","#FFD0A0");
				$(this).attr("mark","1");
			}
		});
}