/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

var font = { src: '/ucm/groups/public/documents/media/universal_condensed_light.swf' };

sIFR.activate(font);

sIFR.fitExactly = true;

// White h1 (em in blue for aerospace)
sIFR.replace(font, {
  selector: '.about_bar h1, .aerospace .banner h1, .banner h1, .slider_bg h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#009bbb; font-size:20px;}'
    ]
});

// White h1 (em in surgical blue for biomedical)
sIFR.replace(font, {
  selector: '.biomedical .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#00b2a9; font-size:20px;}'
    ]
});

// White h1 (em in medium orange for civil structural)
sIFR.replace(font, {
  selector: '.civil .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#df7a00; font-size:20px;}'
    ]
});

// White h1 (em in rubine for consumer products)
sIFR.replace(font, {
  selector: '.consumer .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#920075; font-size:20px;}'
    ]
});

// White h1 (em in golden yellow for energy)
sIFR.replace(font, {
  selector: '.energy .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#f2af00; font-size:20px;}'
    ]
});

// White h1 (em in burnt orange for geomaterials)
sIFR.replace(font, {
  selector: '.geomaterials .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#c54c00; font-size:20px;}'
    ]
});

/* color not official */
// White h1 (em in Periwinkle Blue for industrial)
sIFR.replace(font, {
  selector: '.industrial .banner h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#ffffff; font-size:20px; }',
      'em { font-style:normal; color:#2a6ebb; font-size:20px;}'
    ]
});

// red h1 (em in gray)
sIFR.replace(font, {
  selector: '.content h1'
  ,wmode: 'transparent'
  ,css: [
      '.sIFR-root { color:#c4161c; font-size:20px; }',
      'em { font-style:normal; color:#454545; font-size:20px; }'
    ]
});
