$(document).ready(function(){

  $.preloadCssImages();

  $('div.jqr_hide').hide();
  $("div.resource_topic a").click(function () {
  $(this).blur();
  var jq_h=$(this).attr('name');
  var jq_c=$(this).attr('class');
  var jq_on=$(this).attr('on');
  var jq_off=$(this).attr('off');

  if (jq_c == 'show') {
    $("div#" + jq_h).show();
    $(this).removeClass("show");
    $(this).addClass("hide");
    $('#' + jq_h + '_img').attr("src",jq_off);
  }
  else {
    $("div#" + jq_h).hide();
    $(this).removeClass("hide");
    $(this).addClass("show");
    $('#' + jq_h + '_img').attr("src",jq_on);
  }
  });
});
