var blogs = new Array ("tab-rp","tab-rc","tab-recentposts", "tab-recentcomments");
var indepth = new Array ("tab-i","tab-c","tab-indepth","tab-columns");
var photogal = new Array ("tab-p","tab-d","tab-photo","tab-diver");
var news = new Array ("tab-th","tab-mv","tab-me","tab-mb","tab-morestories","tab-mostviewed","tab-mostemailed","tab-mostblogged");

function showTab(tg,at,tc,ln){
	ln.blur();
	$ = function(e){e = document.getElementById(e); return e;};
	for (i in tg) {$(tg[i]).className = $(tg[i]).className.replace(/active/,"taboff");}
	$(at).className = $(at).className.replace(/taboff/,"active");
	$(tc).className = $(tc).className.replace(/taboff/,"active");
}

try{
	YAHOO.newsLP.startapp();
	YAHOO.newsLP.blogComments = commentHandler;
	YAHOO.newsLP.blogComments.init();
	var connections_q = new Array(
		{url:'/ept/json/comments.json',connection: { vars:'url,user,quote,article_title',htmlobj:'blogcomments',ready_container: 'commentitems',render_e: YAHOO.newsLP.blogComments.renderComments,render_fe: YAHOO.newsLP.blogComments.renderFail}});
	YAHOO.newsLP.loadData(connections_q);
}catch(err){ document.getElementById('blogcomments').style.display = 'none'; }
