if (window.console) {
  console.log("hijacking...");
  }

function hijack() {
    $(".main a.parsed").click(function(event) {
        // Prevent default click action if javascript is enabled
        event.preventDefault();

        // Load new content with 1 line! (thanks to adam for that optimisation :D )
        $(".container").load( $(this).attr("href") + " .container", function(text,status,request) {
        hijack();
        
        // check if the lightbox plugin is available,
        // and if it is, re-initialize it: 
        if(window.initLightbox) {
          initLightbox();
        } 
            });
    })
        }


$(document).ready(function() {
        hijack();
});
