$(document).ready(function(){

	 $("#TodayShowTbl tr.cnnDPShowTopic td:first-child").addClass("cnnDPbg0ne");
	 $("#TodayShowTbl tr.cnnDPShowTopic td:last-child").addClass("cnnDPbgTwo");
	 $("#DPshowDivs").children("div").hide();
	 $("#DPshowlink_1").show();	
	 $("#DPshowlink_1").children("div").show();
	 
	 
    $(".cnnDPShowLinks tr.cnnDPShowTopic")
	.mouseover(function() {	
		if ($(this).find("td.cnnDPbg0neActive").length == 0) {
			$(this).find("td:first-child").removeClass("cnnDPbg0ne");
			$(this).find("td:first-child").addClass("cnnDPbg0neOver");
			$(this).find("td:last-child").removeClass("cnnDPbgTwo");
			$(this).find("td:last-child").addClass("cnnDPbgTwoOver");
		}
	})
	.mouseout(function() {
		if ($(this).find("td.cnnDPbg0neActive").length == 0) {
			$(this).find("td:first-child").removeClass("cnnDPbg0neOver");
			$(this).find("td:first-child").addClass("cnnDPbg0ne");
			$(this).find("td:last-child").removeClass("cnnDPbgTwoOver");
			$(this).find("td:last-child").addClass("cnnDPbgTwo");
		}	
	})
	.click(function() {
		var Index = ($("#TodayShowTbl tr").index(this)+1);
		var DivID = "#DPshowlink_" +Index;
		$("#DPshowDivs").children("div").hide();
		$(DivID).show();	
		$(DivID).children("div").show();

		$("td.cnnDPbg0neActive")
			.removeClass("cnnDPbg0neActive")
			.removeClass("cnnDPbg0neOver")
			.addClass("cnnDPbg0ne");
		$(this).find("td:first-child")
			.removeClass("cnnDPbg0ne")
			.addClass("cnnDPbg0neActive");

		$("td.cnnDPbgTwoActive")
			.removeClass("cnnDPbgTwoActive")
			.removeClass("cnnDPbgTwoOver")
			.addClass("cnnDPbgTwo");
		$(this).find("td:last-child")
			.removeClass("cnnDPbgTwo")
			.addClass("cnnDPbgTwoActive");	
	});	
});


