var comment_list = ""; var comment_page = 1; /* Util function that gets called to trigger animated search results */ function animResult(count) { $("#comment_container_"+count).fadeIn(350) } function commentSubmit(form) { if (form.comment.value == "") { alert("Please enter your comment."); return false; } else if (form.author.value == "") { alert("Please enter your name."); return false; } else { form.submit; } } function flagComment(id) { $("#report_abuse_form_"+id).submit(); } $(document).ready(function(){ function updatePaginationStats() { num_pages = Math.floor(comment_list.length / comment_per_page) + 1; if (comment_list.length / comment_per_page == Math.round(num_pages)) num_pages--; $text = "Page "+comment_page+" of " + num_pages; if (comment_list.length < comment_per_page) { $("#comment_prev_next_container").html(""); } else { $("#comment_prev_next_container").css("display", "block"); $("#comment_pagination_nav_container").css("display", "block"); $("#comment_pagination").html($text); } } function displaySearchResults() { $("#comment_list_container").html(""); // Iterate through array of results to build out a list var num_videos = comment_list.length; var this_url = window.location.href; var search_results = ''; num_display_videos = Math.min(comment_per_page, (num_videos - comment_offset)) // Loop through the videos and display them for (count = comment_offset; count < (num_display_videos + comment_offset); count++) { row = comment_list[count]; // Build the row var video = "
  • "; video += '
    '; if (row['author'] != "") video += row['author'] ; video += "
    " if (row['hrs_ago'] < 25) video += '
    ' + Math.round(row['hrs_ago']) + ' hrs ago
    '; else video += '
    ' + Math.round(row['hrs_ago']/24) + " days ago
    "; video += "Report Abuse "; video += '
    '; video += '
    ' + row['comment'] + "
    "; video += '
  • '; $(video).appendTo("#comment_list_container") $("#comment_container_"+count).css("display", "none"); setTimeout("animResult("+count+");" , (count-comment_offset)*100) } // Hide/Show the left right buttons depending on where you are in the list if ((comment_offset+comment_per_page) >= comment_list.length) $("#comment_right_btn").children().addClass("inactive") else $("#comment_right_btn").children().removeClass("inactive") if (comment_offset <= 0) $("#comment_left_btn").children().addClass("inactive") else $("#comment_left_btn").children().removeClass("inactive") } $("#comment_left_btn").click(function() { if (comment_offset > 0) { comment_offset = Math.max((comment_offset - comment_per_page + 1), 0); displaySearchResults(); comment_page--; updatePaginationStats(); } }); $("#comment_right_btn").click(function() { if (comment_offset < comment_list.length - comment_per_page - 1) { comment_offset = Math.min((comment_offset + comment_per_page - 1), (comment_list.length)); displaySearchResults(); comment_page++; updatePaginationStats(); } }); displaySearchResults(); updatePaginationStats(); if (comment_list.length != 0) $("#comment_list_header").css("display", "block"); }); ;var comment_per_page = 20;var comment_offset = 0;var comment_flag_abusive_webservice_url = 'http://vms.mync.com/vms/comment/flag-abuse/';var video_page_url = 'http://news.mync.com/site/news/video/2944/Martin_Brossman_interview/'; comment_list = eval([{"com_id":"292","video_id":"2944","begin":"0","timestamp":"1232621734","hrs_ago":7314,"author":"Avatar","comment":"Excellent Interview Martin - of great value in these evolving times. Best part is about reconnecting and giving value. - Js - www.Rock-At-Life.com -"},{"com_id":"196","video_id":"2944","begin":"0","timestamp":"1227309355","hrs_ago":8789,"author":"Sharon Hill","comment":"Martin, you've done it again. You are the best of the best, dude. Thank you for sharing all your valuable information."},{"com_id":"190","video_id":"2944","begin":"0","timestamp":"1227209718","hrs_ago":8817,"author":"Phoenix","comment":"Martin, \r\nThroughout the years as I've grown to understand the importance of every aspect of business growth and the work it takes to make that growth happen & networking has been one of my biggest challenges. Feeling comfortable meeting with strangers, to introduce myself again and again just seems exhausting. This video has really given me the opportunity to see networking in a different light. It is a great tool to use for building relationships on all levels which can benefit my life and the lives of those I know.\r\n\r\nThank you, again for doing such a wonderful job.\r\nPhoenix Rector, NCLMBT 4777\r\nPhoenix Massage Therapy & Wellness"},{"com_id":"178","video_id":"2944","begin":"0","timestamp":"1226731873","hrs_ago":8950,"author":"Richard grassi","comment":"Thanks for an excellent interview of real value. Martin, you rock!\r\n"},{"com_id":"176","video_id":"2944","begin":"0","timestamp":"1226718304","hrs_ago":8954,"author":"Greg Hyer","comment":"Great job Martin. Thank you to Shirley Min and NBC17 for doing this editorial. \r\n\r\nTriangle LinkedIn users can join the Linking Raleigh, NC group at http:\/\/www.linkedin.com\/e\/gis\/81620\r\n"},{"com_id":"173","video_id":"2944","begin":"0","timestamp":"1226708074","hrs_ago":8956,"author":"Martin Brossman","comment":"I want to thank all who recommended me for this show including Greg Hyer with the great RTP Linkedin resource: linkingraleighnc.com \r\nand Chuck Hester .\r\n\r\nMartin Brossman\r\nwww.ProNetWorkingOnLine.com "}]); document.write('

    Comments

    Post A Comment

    ');