(function($){

    $(document).ready(function() {
        var pathname = window.location.pathname;
         $('a.basic').each(function() { 
                var linkText = this.href;
                linkText = linkText.replace(/#/, '&anchor=')
                linkText = linkText.replace(/^.+?(\w+\/\w+\.html)/, '../cgi/extract.pl?page=$1')
                if ( pathname.match(/html\/\w+\//) ) {  linkText = '../' + linkText; }
                this.rel = linkText;
           });

        $('a.basic').cluetip({
            showTitle: false, 
            ajaxCache: false,     
            leftOffset: 25, 
            width: 175,
            ajaxSettings: {    dataType: 'html'  }
        });
      
    });
  
})(jQuery);

