

 jQuery.noConflict();
 jQuery(function($) {
	 $(document).ready(function() {
     
            $("#featured-blog dt a").click(
                function(){
                    
                    $("#featured-blog dt").removeClass("featured-blog-panel-teaser-selected");
                    $(this).parent().addClass("featured-blog-panel-teaser-selected");
                    $("#featured-blog dd").hide();
                    $(this).parent().next("dd").show();            
                    return false;
            
                }
            )     


            
			var navigation = $( document.createElement("ul") ).attr("id", "featured-articles-navigation");
			$("#featured-articles-panels h2").after( navigation );
			
			$("#featured-articles-panels dl").each( function() {
                $(this).find("dt").css("display","none");
				var term = $(this).find("dt").html();
				var termID = $(this).attr("id");
				var listItem = $( document.createElement("li") );
				var linkItem = $( document.createElement("a") ).attr( "href", "#"+termID );//.append( termID ) 
				
				linkItem.append( term );
				listItem.append(linkItem);
				
				$("#featured-articles-panels ul#featured-articles-navigation").append( listItem );
				
				
			})
			
			$("#featured-articles-panels ul#featured-articles-navigation a:first").addClass("active");
			
	  
		  $("#featured-articles-navigation a").each(function() { 
				
				$(this).click( function(){
					var linkID = $(this).attr("href");
					$(".featured-articles-panel").hide();
					
					$("#featured-articles-navigation a").removeClass("active");
					$(this).addClass("active");
					
					$(linkID).show();
					return false;
				})
				
		  })
		  


		var navigation = $( document.createElement("ul") ).attr("id", "sports-blog-navigation");
		$("#sports-blog-panel-navigation-container").append( navigation );
		
		var i = 1;
		$("#sports-blog-panel dl").each( function() {
			var term = i;//$(this).find("dt").html();
			var termID = $(this).attr("id");
			var listItem = $( document.createElement("li") );
			var linkItem = $( document.createElement("a") ).attr( "href", "#"+termID );//.append( termID ) 
			
			linkItem.append( term );
			listItem.append(linkItem);
			
			$("#sports-blog-panel ul#sports-blog-navigation").append( listItem );
			i++;
			
		})
		
		$("#sports-blog-panel ul#sports-blog-navigation a:first").addClass("active");
		

	  $("#sports-blog-navigation a").each(function() { 
			
			$(this).click( function(){
				var linkID = $(this).attr("href");
				$(".sports-blog-panel").hide();
				
				$("#sports-blog-navigation a").removeClass("active");
				$(this).addClass("active");
				
				$(linkID).show();
				return false;
			})
			
	  })

		  
	 });
  });	 			

