var blogs = { "sections": [ { "name" : "top_lad_blogs", "blogs": [ { "name": "insidethedodgers", "title": "Inside the Dodgers", "updated": "Sep 3, 2010, about 2:05 pm", "updates": "2429", "type": "Pro Blog" }, { "name": "crzblue", "title": "Crzblue\'s Dodger Blue World", "updated": "Sep 3, 2010, about 2:15 pm", "updates": "661", "type": "Fan Blog" }, { "name": "greatlakesloons", "title": "From the Nest", "updated": "Sep 1, 2010, about 9:40 am", "updates": "124", "type": "Pro Blog" }, { "name": "topesblog", "title": "\'Topes Tattler", "updated": "Sep 2, 2010, about 5:15 pm", "updates": "97", "type": "Pro Blog" }, { "name": "turtledip", "title": "Love for The Boys in Blue", "updated": "Aug 27, 2010, about 10:45 pm", "updates": "82", "type": "Fan Blog" }, { "name": "dodgersphotog", "title": "Dodgers Photog Blog", "updated": "Sep 3, 2010, about 1:05 am", "updates": "74", "type": "Pro Blog" }, { "name": "fallingleaves02", "title": "LEAVes of Dodger Blue", "updated": "Sep 3, 2010, about 6:55 am", "updates": "73", "type": "Fan Blog" }, { "name": "catlovesthedodgers", "title": "cat loves the dodgers", "updated": "Aug 1, 2010, about 1:35 pm", "updates": "63", "type": "Fan Blog" }, { "name": "behindblueyes", "title": "Behind Blue Eyes", "updated": "Sep 1, 2010, about 11:15 am", "updates": "55", "type": "Fan Blog" }, { "name": "bloggingandballhawking", "title": "Blogging and Ballhawking", "updated": "Aug 31, 2010, about 5:55 pm", "updates": "48", "type": "Fan Blog" }, { "name": "alyssa", "title": "*touch* \'em all", "updated": "Sep 1, 2010, about 2:25 pm", "updates": "38", "type": "Pro Blog" }, { "name": "reedjohnson", "title": "Reed Between the Lines", "updated": "Sep 2, 2010, about 8:15 pm", "updates": "37", "type": "Pro Blog" }, { "name": "tommy", "title": "Tommy Lasorda\'s World", "updated": "Sep 3, 2010, about 12:45 pm", "updates": "33", "type": "Pro Blog" }, { "name": "dodgerfever", "title": "Dodger Fever", "updated": "Aug 31, 2010, about 2:30 pm", "updates": "22", "type": "Fan Blog" }, { "name": "csaverino", "title": "OldSchoolDodgerFan", "updated": "Aug 21, 2010, about 6:25 pm", "updates": "16", "type": "Fan Blog" } ] }, { "name" : "top_sf_blogs", "blogs": [ { "name": "aubreyhuff", "title": "Huff Daddy", "updated": "Sep 3, 2010, about 2:15 pm", "updates": "177", "type": "Pro Blog" }, { "name": "kaiserthegreat", "title": "Just a Bit Outside", "updated": "Aug 18, 2010, about 11:15 pm", "updates": "90", "type": "Fan Blog" }, { "name": "westcoastfangirl", "title": "West Coast Fan[girl]", "updated": "Sep 2, 2010, about 11:55 pm", "updates": "81", "type": "Fan Blog" }, { "name": "sfdiamondgirl", "title": "Diamonds are a Girl\'s Best Friend", "updated": "Sep 3, 2010, about 12:45 am", "updates": "74", "type": "Fan Blog" }, { "name": "sfgiants", "title": "Inside the Giants Clubhouse", "updated": "Sep 1, 2010, about 8:00 pm", "updates": "63", "type": "Pro Blog" } ] }, { "name" : "top_col_blogs", "blogs": [ { "name": "baseballsnatcher", "title": "Rockpile Rant", "updated": "Sep 3, 2010, about 6:55 am", "updates": "695", "type": "Fan Blog" }, { "name": "rockies17-4", "title": "The Rockies Advocate", "updated": "Jul 31, 2010, about 3:40 am", "updates": "9", "type": "Fan Blog" }, { "name": "schmittydiesel", "title": "Schmitty Diesel\'s Half Dozen Rockies Rants", "updated": "Sep 2, 2010, about 10:50 am", "updates": "8", "type": "Fan Blog" }, { "name": "nlwest", "title": "rockies report", "updated": "Jul 13, 2010, about 9:10 pm", "updates": "8", "type": "Fan Blog" }, { "name": "stud55", "title": "captain pike", "updated": "Aug 21, 2010, about 1:05 am", "updates": "7", "type": "Fan Blog" } ] }, { "name" : "top_ari_blogs", "blogs": [ { "name": "dbacksrollercoaster", "title": "Arizona\'s Ups & Downs", "updated": "Aug 27, 2010, about 8:20 pm", "updates": "87", "type": "Fan Blog" }, { "name": "diamondgirl20", "title": "DiamondGirl20", "updated": "Sep 3, 2010, about 12:35 pm", "updates": "78", "type": "Fan Blog" }, { "name": "dblog", "title": "The D-blog", "updated": "Sep 1, 2010, about 6:15 pm", "updates": "57", "type": "Pro Blog" }, { "name": "acebook", "title": "Acebook", "updated": "Sep 1, 2010, about 1:25 pm", "updates": "35", "type": "Fan Blog" }, { "name": "mlbrocks2", "title": "More Than Just a Game", "updated": "Jul 22, 2010, about 11:45 pm", "updates": "31", "type": "Fan Blog" } ] }, { "name" : "top_sd_blogs", "blogs": [ { "name": "berkutmartin", "title": "Padres hispanos", "updated": "Sep 3, 2010, about 12:05 pm", "updates": "121", "type": "Pro Blog" }, { "name": "hyunyoung", "title": "Perpetual Padres Saga", "updated": "Sep 1, 2010, about 1:35 pm", "updates": "116", "type": "Fan Blog" }, { "name": "kaybee", "title": "Unfinished Business", "updated": "Sep 3, 2010, about 11:50 am", "updates": "99", "type": "Fan Blog" }, { "name": "adriangonzalez23", "title": "The Friar Faithful", "updated": "Aug 29, 2010, about 2:15 pm", "updates": "60", "type": "Fan Blog" }, { "name": "sosascorner", "title": "The Daily Friar", "updated": "Jul 22, 2010, about 11:00 am", "updates": "40", "type": "Fan Blog" } ] } ] }; // this lets me see if people are clicking links on my site // part of a community building feature I'm trying to extend var click_stream_url = ""; function load_click_stream_url() { location.href = click_stream_url; } function save_click_stream(url) { click_stream_url = url; var click_stream = new Image(); click_stream.onload = load_click_stream_url; click_stream.onerror = load_click_stream_url; click_stream.onabort = load_click_stream_url; random_seed = Math.floor(Math.random()*9999999+1000000); click_stream.src = "http://adamducker.com/mlblogs/clickstream.php?url=" + click_stream_url + "&rand=" + random_seed; } function start_click_stream(link) { setTimeout("save_click_stream('" + link.href + "')",500); } function find_blog_sections() { var sidebar = document.getElementById("sidebar"); if(sidebar) { var links = sidebar.getElementsByTagName("A"); for(var i = 0; i < links.length; i++) { for(var j = 0; j < blogs.sections.length; j++) { if(blogs.sections[j].name == links[i].innerHTML) { var module = links[i].parentNode.parentNode; load_blog_list(module, blogs.sections[j]) ; } } } } else { setTimeout("find_blog_sections()", 2000); } } function load_blog_list(module, section) { var html = ""; for(var i = 0; i < section.blogs.length; i++) { var blog = section.blogs[i]; html += "
  • " + "" + blog.title + "
  • "; } // save_click_stream(this); return false; module.innerHTML = html; } window.onload = function() { find_blog_sections(); poll_onload(); }