Recent Posts

TBS to carry Brewers-Cubs on Sunday on Astini News

'); document.write('
'); document.write('
'); document.write('

');& document.write('What is a good drinking game when watching the Brewers?');& document.write('

'); document.write(' '); document.write(''); } Back to top
').css({& position: 'absolute',& top: -10000,& left: -10000,& width: $(this).width() - parseInt($this.css('paddingLeft')) - parseInt($this.css('paddingRight')),& fontSize: $this.css('fontSize'),& fontFamily: $this.css('fontFamily'),& lineHeight: $this.css('lineHeight'),& resize: 'none'& }).appendTo(document.body);& var update = function() {& var times = function(string, number) {& for (var i = 0, r = ''; i /g, '>')& .replace(/&/g, '&')& .replace(/\n$/, '
 ') .replace(/\n/g, '
')& .replace(/ {2,}/g, function(space) { return times(' ', space.length -1) + ' ' });& shadow.html(val);& $(this).css('height', Math.max(shadow.height() + 18, minHeight));& }& $(this).change(update).keyup(update).keydown(update);& //update.apply(this);& });& return this;& } & })(jQuery);& commentBody.autogrow();& var initComments = function(newComments){& // parse comment client side for now...& newComments.find(".body").each(function(){& var gotComment = $(this);& var gotCommentValue = gotComment.html();& gotCommentValue = parseBBCode(gotCommentValue);& gotCommentValue = parseSmileys(gotCommentValue);& gotComment.html(gotCommentValue);& gotComment.click(function(e){& e.stopPropagation();& if($(e.target).is(".body")){& var comment = $(this).closest(".comment");& var gotCommentId = comment.attr("id");& gotCommentId = gotCommentId.substring(gotCommentId.indexOf("-")+1);& var replyFormContainer = comment.find(".reply-form");& replyFormContainer.show().find("input[name=parentID]").val(gotCommentId);& replyFormContainer.find(".reply-to-comment-body").trigger("focus");& } & });& });& & newComments.find(".reply-to-comment-body").autogrow();& newComments.find(".addthis_button_compact").attr('addthis:url',function(){& return "http://telecomadvisors.biz/www.jsonline.com/blogs/sports/128332248.html?viewAll=1 "+$(this).parent().parents("li").attr("id");& }).attr("addthis:title","TBS to carry Brewers-Cubs on Sunday").attr("addthis:description","View my comment on this story.");& var script = 'http://telecomadvisors.biz/s7.addthis.com/js/250/addthis_widget.js pubid=ra-4ddac7db6157ffda';& if (window.addthis){& window.addthis = null;& }& $.ajax({url: script,dataType: "script"});& }& initComments($(" comments-list .comment"));& $(" comments-list").delegate(".reply-to-comment-body","focus",function(e){& var commentTextArea = $(this);& if(commentTextArea.val() == "Write a reply..."){& commentTextArea.parent("form").addClass("active");& commentTextArea.val("").siblings("input[type=submit]").removeAttr("disabled");& }& })& $(" comments-list").delegate(".reply-to-comment-body","blur",function(e){& var commentTextArea = $(this);& if(!commentTextArea.val()){& commentTextArea.parent("form").removeClass("active");& commentTextArea.val("Write a reply...").siblings("input[type=submit]").attr('disabled', 'disabled');& }& });& & commentBody.focus(function(){& var commentTextArea = $(this);& if(commentTextArea.val() == "What do you think?"){& commentTextArea.parents("form").addClass("active");& commentTextArea.val("");& $(" comment-submit").removeAttr("disabled");& commentBody.maxlength({"feedback" : " comment-body-remaining"});& }& }).blur(function(){& var commentTextArea = $(this);& if(!commentTextArea.val()){& commentTextArea.parents("form").removeClass("active");& commentTextArea.val("What do you think?");& $(" comment-submit").attr('disabled', 'disabled');& }& });& mainCommentForm.find(".cancel").click(function(e){& e.preventDefault();& $(this).parents("form").find("textarea").val("").trigger("blur");& });& $(" comments-list").delegate(".reply-link","click",function(e){& e.preventDefault();& var gotCommentId = $(this).attr("rel");& gotCommentId = gotCommentId.substring(gotCommentId.indexOf("-")+1);& var replyFormContainer = $(this).closest(".comment").find(".reply-form");& replyFormContainer.show().find("input[name=parentID]").val(gotCommentId);& replyFormContainer.find(".reply-to-comment-body").trigger("focus");& }); & var respondScrollTo = $(" comments").offset().top;& $(" back-to-top").click(function(e){& e.preventDefault();& $("html,body").animate({scrollTop:respondScrollTo},"fast");& });& $(" comments-list").delegate(".report","click",function(e){& e.preventDefault();& window.open($(this).attr("href"),"_blank","width=600,height=500");& });& & & omniture_comments_ajax_tracking = function(sprops){ & var _ajaxS = $.extend({},s,sprops);& _ajaxS.t();& }& & & var _startPage = 1;& var _startSort = "first to last"& var _p = 2;& var loadMoreBtn = $(" load-more-comments");& var viewAllBtn = $(" view-all-comments");& loadMoreBtn.click(function(e){& e.preventDefault();& _startPage++;& if(_startPage Loading all comments...');& var sortUrl = "http://telecomadvisors.biz/www.jsonline.com/templates/Lib.API.CommentsHTML?viewAll=1&sort="+_startSort+"&cid=128332248";& $.ajax({url:sortUrl,cache:false,success:function(c){ & var comments = $(c);& initComments(comments);& $(" comments-list").html(comments);& $(" number-of-pages").remove();& },error: function(e){& //alert("ajax error:" + e);& }& }); & });& $(".sorting a").click(function(e){& e.preventDefault();& $(this).addClass("active").siblings().removeClass("active");& if($(this).html() == "All"){& omniture_comments_ajax_tracking({prop9:"comments_all"});& $(" comments-list").html('

Loading all comments...

');& loadMoreBtn.hide();& viewAllBtn.hide();& _startSort = $(this).attr("href");& _startSort = _startSort.substring(_startSort.indexOf("sort=")+5);& var sortUrl = "http://telecomadvisors.biz/www.jsonline.com/templates/Lib.API.CommentsHTML?viewAll=1&cid=128332248";& }else{& $(" comments-list").html('

Sorting comments...

');& loadMoreBtn.show();& viewAllBtn.show();& _startSort = $(this).attr("href");& _startSort = _startSort.substring(_startSort.indexOf("sort=")+5);& var sortUrl = "http://telecomadvisors.biz/www.jsonline.com/templates/Lib.API.CommentsHTML?sort="+_startSort+"&cid=128332248";& }& $.ajax({url:sortUrl,cache:false,success:function(c){ & var comments = $(c);& initComments(comments);& $(" comments-list").html(comments);& $(" number-of-pages").remove();& },error: function(e){& //alert("ajax error:" + e);& }& }); & });& var buildCommentHTMLString = function(obj){& var stamp = "Today at "+obj.commentDate.substring(obj.commentDate.indexOf(" ")+1);& var comment = ''; return comment; } $(" comments").delegate(".edit-comment-form,.reply-to-comment-form, comment-form","submit",function(e){ e.preventDefault(); var thisForm = $(this); var mainMessageContainer = $(" comment-form-messages"); if(thisForm.is(".reply-to-comment-form")){ var messageCont = thisForm.parent(".reply").siblings(".active-reply-container"); if(messageCont.length == 0){ messageCont = $('
  • '); thisForm.parent("li").before(messageCont); } insertComment(this,true,function(obj){ //debugSubmit(obj); if(obj.error){ if(obj.error == "User must be logged in to perform the action."){ messageCont.html("

    Please login to edit your comment.

    "); thisForm.hide(); }else{ messageCont.html("

    Sorry, there was a problem when submitting your comment, please try again.

    "); } messageCont.removeClass("hide"); }else{ // possible status APPROVED,NOTAPPROVED, FLAGGED, AUTHOR, BOT, REJECTED if(obj.status == "APPROVED"){ var c = buildCommentHTMLString(obj); c = $(c); initComments(c); messageCont.attr("id","comment-"+obj.id).html(c); $.cookie('refresh_comments','yes',{path:'/',domain:'www.jsonline.com'}); // expires: is ommited, acting as session cookie, deleted when browser exits }else{// handle all other cases with this blanket messageCont.html("

    Your comment has been received. If you do not see it immediately, it is being routed for approval.

    "); } //reset form messageCont.removeClass("active-reply-container hide"); thisForm.find(".reply-to-comment-body").val("").css("height","18px").trigger("blur"); } }); }else if(thisForm.is(".edit-comment-form")){ var messageCont = thisForm.parent(); var timeStamp = thisForm.closest("li").find(".timestamp"); updateComment(this,true,function(obj){ //debugSubmit(obj); if(obj.error){ if(obj.error == "User must be logged in to perform the action."){ messageCont.html("

    Please login to edit your comment.

    "); }else{ messageCont.before("

    Sorry, there was a problem when submitting your comment, please try again.

    "); } }else{ // possible status APPROVED,NOTAPPROVED, FLAGGED, AUTHOR, BOT, REJECTED if(obj.status == "APPROVED"){ messageCont.html(obj.comment); timeStamp.html("Edited today at "+obj.commentDate.substring(obj.commentDate.indexOf(" ")+1)); $.cookie('refresh_comments','yes',{path:'/',domain:'www.jsonline.com'}); // expires: is ommited, acting as session cookie, deleted when browser exits }else{// handle all other cases with this blanket messageCont.before("

    Your comment has been received. If you do not see it immediately, it is being routed for approval.

    "); } } }); }else{ // new insertComment(this,true,function(obj){ //debugSubmit(obj); if(obj.error){ if(obj.error == "User must be logged in to perform the action."){ mainMessageContainer.html("

    Please login to edit your comment.

    "); thisForm.hide(); }else{ mainMessageContainer.html("

    Sorry, there was a problem when submitting your comment, please try again.

    "); } }else{ // possible status APPROVED,NOTAPPROVED, FLAGGED, AUTHOR, BOT, REJECTED if(obj.status == "APPROVED"){ var c = buildCommentHTMLString(obj); c = $(''); initComments(c); $(" comments-list").prepend(c); $.cookie('refresh_comments','yes',{path:'/',domain:'www.jsonline.com'}); // expires: is ommited, acting as session cookie, deleted when browser exits }else{// handle all other cases with this blanket mainMessageContainer.html("

    Your comment has been received. If you do not see it immediately, it is being routed for approval.

    ");& }& //reset form& mainMessageContainer.html("");& commentBody.val("").trigger("blur");& } & });& }& });& & var refresh_comments = $.cookie("refresh_comments");& if(refresh_comments && refresh_comments == "yes"){& $(" comments-list").html('

    Refreshing comments...

    ');& var refreshUrl = "http://telecomadvisors.biz/www.jsonline.com/templates/Lib.API.CommentsHTML?sort=first+to+last&cid=128332248";& $.ajax({url:refreshUrl,cache:false,success:function(c){ & var comments = $(c);& initComments(comments);& $(" comments-list").html(comments);& $(" number-of-pages").remove();& },error: function(e){& //alert("ajax error:" + e);& }& }); & $.cookie('refresh_comments',null,{path:'/',domain:'www.jsonline.com'});& }& & & & &

    What's on Your Mind...