function ApplyTabsIFR() {
  var jenkins = {
    src: BASE_PATH + 'sites/all/themes/makeme_gray/fonts/Jenkins.swf'
  }
  
  
  sIFR.activate(jenkins);
  sIFR.fixHover = false;
  
  // Main tab selected
  sIFR.replace(jenkins, {
    selector: '.tabs-wrapper ul.primary li.active',
    
    css: [
      '.sIFR-root {text-align: center; font-weight: bold; background-color: transparent; color: #b72629; font-size: 30px}',
      'a { text-decoration: none; }',
      'a { color: #a60d14; }',
      'a:hover { color: #a60d14; }'
    ],
    
    wmode: 'transparent',
    selectable: false,
  	
    filters: {
      DropShadow: {
        knockout: false,
        distance: 0,
        color: '#ffffff',
        strength: 20,
        blurX:6,
        blurY:6
      }
    
    }
  
  });
  
  // Main tab unselected
  sIFR.replace(jenkins, {
    selector: '.tabs-wrapper ul.primary li',
    
    css: [
      '.sIFR-root {text-align: center; font-weight: bold; background-color: transparent; color: #000000; font-size: 22px}',
      'a { text-decoration: none; }',
      'a:link { color: #000000; }',
      'a:hover { color: #000000; }'
    ],
    
    wmode: 'transparent',
    selectable: false,
    
    filters: {
      DropShadow: {
        knockout: false,
        distance: 0,
        color: '#ffffff',
        strength: 20,
        blurX:6,
        blurY:6
      }
    
    }
  
  });
  
  // Block tab selected
  sIFR.replace(jenkins, {
    selector: '#right-tabs ul.ui-tabs-nav li.ui-tabs-selected',
    
    css: [
      '.sIFR-root {text-align: center; font-weight: bold; background-color: transparent; color: #b72629; font-size: 26px}',
      'a { text-decoration: none; }',
      'a { color: #a60d14; }',
      'a:hover { color: #a60d14; }'
    ],
    
    wmode: 'transparent',
    //selectable: false,
    
    filters: {
      DropShadow: {
        knockout: false,
        distance: 0,
        color: '#ffffff',
        strength: 20,
        blurX:6,
        blurY:6
      }
    },
    
    onRelease: 
      function(e) {
        $("#" + e.id).parent().triggerHandler("click");
      }
  
  });
  
  // Block tab unselected
  sIFR.replace(jenkins, {
    selector: '#right-tabs ul.ui-tabs-nav li',
    
    css: [
      '.sIFR-root {text-align: center; font-weight: bold; background-color: transparent; color: #000000; font-size: 26px}',
      'a { text-decoration: none; }',
      'a:link { color: #000000; }',
      'a:hover { color: #000000; }'
    ],
    
    wmode: 'transparent',
    //selectable: false,
    
    filters: {
      DropShadow: {
        knockout: false,
        distance: 0,
        color: '#ffffff',
        strength: 20,
        blurX:6,
        blurY:6
      }
    },
    
    onRelease: function(e) {
      $("#" + e.id).parent().triggerHandler("click");
    }
  
  });
  
  
}

var os = navigator.platform;
if (os.indexOf("Linux") < 0) {
  if (typeof(Drupal.settings) == 'undefined' || typeof(Drupal.settings.makeme) == 'undefined' || typeof(Drupal.settings.makeme.disableTabSifr) == 'undefined' || !Drupal.settings.makeme.disableTabSifr) {
    ApplyTabsIFR();
  }
}
