$(document).ready(function() {

    var fileTypes = {
      pdf: 'pdf.gif'
    };
     
    $('.news-morelink a').each(function() {
     
      var $a = $(this);
      var href = $a.attr('href');
 /*
      if (
        (href.match(/^http/)) &&
        (! href.match(document.domain))
      ) {
     
        // use a special image for external links
        var image = 'external.gif';
     
      } else {
*/
        // get the extension from the href
        var hrefArray = href.split('.');
        var extension = hrefArray[hrefArray.length - 1];
     
        var image = fileTypes[extension];
      //}
     
      if (image) {
        $a.css({
          paddingLeft: '20px',
          background: 'transparent url(/fileadmin/layouts/main/public/gfx/download-icons/' + image + ') no-repeat center left'
        });
      }
     
    });

    /*
    $('.tx-billitonemployeesearch-pi2 > ul').tabs();
    $('.tx-billitonemployeesearch-pi2 .list-floatcleaner).hide;
    */
});






