/*
 *  Adds a "View Larger Image" link underneath each image on the /idea-center/gallery/* pages
 */

$(document).ready(function(){

  $("#split .split2 img").each(function(){
    var url = $(this).attr("src");
    url = url.replace(/large/i, "hi-res");
    $(this).parent().append("<p><a href='#' id='click-here' onclick='popUp(\"" + url + "\",562,565); return false;'>Click here to view a larger image</a></p>");
  });

});
