$(document).ready(function() {
	
	$("#body_l li>a[href='" + '<?=$this->article->articleURL?>' + "']").attr('class', 'active');
	$("#body_r li>a[href='" + '<?=$this->article->articleURL?>' + "']").attr('class', 'active');
	$("#section_table td:first").attr('class', 'active');
	$("#section_table td:odd").addClass("odd");
	$("#section_table h4").prepend("&raquo; ");
	$("div#body div.right div.content li a").prepend("&rsaquo; ");
	$("div#body div.middle div.content li").prepend("&rsaquo; ");
	$("#body_m li").prepend("&raquo; ");
	$("#body_l li").prepend("&rsaquo; ");
	$("#body_r li").prepend("&raquo; ");
	$("#footer .fl li").prepend("&rsaquo; ");
	
	$("a, li").hover(function () {
		$(this).addClass("hover");
	  },
	function () {
		$(this).removeClass("hover");
	});
	$(".widget_rrm_popular_posts li").bind('click', function(e) {
		window.location.href = $("a", this).attr('href');
	});
});

/*
$(window).load(function() {
	// fix bad iframes and images inside ad units
	$(".ad_unit > iframe, .ad_unit > img[width=1][height=1], .textwidget > iframe, .textwidget > img[width=1][height=1]").remove();
});
*/