
//+'<div class="hlinkurl">'+$(this).find("a").attr("title")+'</div>'
$(function() {
	$(".topblawgsfeeds li").tooltip({
		bodyHandler: function() {
			return '<h4>'+$(this).find("a").html()+'</h4><p>'+$(this).find("div").html()+'</p>';
		},
		showURL: false,
		delay: 0,
		fade: 250,
		track: true,
		top: 25
	});
	$(".topblawgsfeeds div h3 a").tooltip({
		bodyHandler: function() {
			return $(this).parent().parent().find("div.blogdescr").html();
		},
		showURL: false,
		delay: 0,
		fade: 250,
		track: true,
		top: 25
	});

});

/*
$(window).load(function() {
	$(".topblawgsfeeds li").hover(
		function() {
			$(this).removeClass("topblawgfeedline");
			$(this).addClass("topblawgfeedlinehover");
		},
		function() {
			$(this).addClass("topblawgfeedline");
			$(this).removeClass("topblawgfeedlinehover");
		}
	);
});
*/

function popmode (pmode) {
	$("#daypopblogs").hide();
	$("#weekpopblogs").hide();
	$("#monthpopblogs").hide();
	$("#allpopblogs").hide();

	$("#linkdaypop").addClass("popmodeinactive");
	$("#linkweekpop").addClass("popmodeinactive");
	$("#linkmonthpop").addClass("popmodeinactive");
	$("#linkallpop").addClass("popmodeinactive");
	$("#linkdaypop").removeClass("popmodeactive");
	$("#linkweekpop").removeClass("popmodeactive");
	$("#linkmonthpop").removeClass("popmodeactive");
	$("#linkallpop").removeClass("popmodeactive");

	$("#"+pmode+"popblogs").show();
	$("#link"+pmode+"pop").addClass("popmodeactive");
	$("#link"+pmode+"pop").removeClass("popmodeinactive");
	$("#topbloglink").attr("href","/topblogs.aspx?mode=" + pmode);
	$("#topblogmorelink").attr("href","/topblogs.aspx?mode=" + pmode);

	return false;
}
	

/*
$.ready(function() {
	alert("Hello!");
	$(".topblawgfeedline").hover(
		function () {
			alert($(this).find("div").html());
		},
		function () {
		},
	);
});

alert("Hello!");
$(".narrow").hide();

$(".topblawgfeedline a").hover(function() { alert("Hi!"); },function () {});
$.ready(function() {$(".topblawgfeedline a").hide();});
*/
