// 'trade' usues a light, condensed version of Trade Gothic for use in site titles, article headers (h2), etc.
var trade  = {
  src: 'flash/trade-gothic.swf'
};
// 'tradebold' usues a bold version of Trade Gothic for use in sidebar content headers.
var tradebold  = {
  src: 'flash/trade-gothic-bold.swf'
};
// 'traderegular' usues a normal weight version of Trade Gothic for use in article subheaders (h3), etc.
var traderegular  = {
  src: 'flash/trade-gothic-regular.swf'
};

sIFR.activate(trade); // From revision 209 and onwards
sIFR.activate(tradebold); // From revision 209 and onwards
sIFR.activate(traderegular); // From revision 209 and onwards

// changes to the styling of SIFR text must be done below-- defining styles in the site's CSS won't work.

sIFR.replace(trade, {
  selector: 'h1',
  wmode: 'transparent',
  css: '.sIFR-root { color:#ffffff;}',
  fitExactly: 'true'
});

sIFR.replace(trade, {
  selector: '#main-content h2',
  wmode: 'transparent',
  css: '.sIFR-root { color:#2D6CC0;}',
  fitExactly: 'true'
});
sIFR.replace(traderegular, {
  selector: '#section-header h2',
  wmode: 'transparent',
  css: '.sIFR-root { color:#444444;}',
  fitExactly: 'true'
});
sIFR.replace(traderegular, {
  selector: '#main-content h3',
  wmode: 'transparent',
  css: '.sIFR-root { color:#2D6CC0;}',
  fitExactly: 'true'
});
sIFR.replace(tradebold, {
  selector: '#extra-content h4',
  wmode: 'transparent',
  tuneHeight: '-3px',
  css: '.sIFR-root { color:#2D6CC0;letter-spacing:1;text-transform:uppercase;}',
  fitExactly: 'true'
});
sIFR.replace(tradebold, {
  selector: '#callout h4',
  wmode: 'transparent',
  css: '.sIFR-root { color:#ffffff;}',
  fitExactly: 'true'
});
