function bindColorboxInline()
{
  $('a.colorboxInline').each(function()
	{
	  var rel = $(this).attr('rel');
	  $(this).attr('rel', '');
	  if (!rel || !$('#' + rel).length) return;
    $(this).colorbox({
      width: "50%",
      inline: true,
      overlayClose: false,
      slideshow: false,
      preloading: false,
      href: "#" + rel
    });
  });
}

$(function ()
{
  $('a.colorbox').colorbox();
  bindColorboxInline();
});

