/*****************************************************************************
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.
*****************************************************************************/

// vars to font swfs
/*
*/
var Univers_LT_45_light = { src: '/flash-fonts/Univers_LT_45_light.swf',
		ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 32, 1.26, 33, 1.24, 34, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 67, 1.22, 68, 1.23, 72, 1.22, 73, 1.23, 1.22]
	};
var Univers_LT_55 = { src: '/flash-fonts/Univers_LT_55.swf',
		ratios: [8, 1.41, 10, 1.33, 14, 1.31, 16, 1.26, 20, 1.27, 24, 1.26, 25, 1.24, 26, 1.25, 35, 1.24, 42, 1.23, 45, 1.22, 46, 1.23, 67, 1.22, 70, 1.21, 71, 1.22, 1.21]
	};

// configuration settings. eg.
// sIFR.useStyleCheck = true;
sIFR.fixWrap = true;
sIFR.fixHover  = true;

// activate sIFR:
sIFR.activate(Univers_LT_45_light, Univers_LT_55);

// Now we can do the replacements. You can do as many as you like, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// The second argument determines what the Flash text looks like. The main text
// is styled via the `.sIFR-root` class. Here we've specified `background-color`
// of the entire Flash movie to be a light grey, and the `color` of the text to
// be red. Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.




// H1 ========================================
sIFR.replace(Univers_LT_45_light, {
  selector: 'h1',
  css:['.sIFR-root {color: #003366; leading: -3;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -6,
  tuneHeight: -12,
  transparent: true
});


// H2 ========================================
sIFR.replace(Univers_LT_45_light, {
  selector: '#promo-home h2',
  css:['.sIFR-root {color: #003366; leading: -3;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(Univers_LT_45_light, {
  selector: 'h2',
  css:['.sIFR-root {color: #003366; leading: -3;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -8,
  transparent: true
});



// H3 ========================================
sIFR.replace(Univers_LT_45_light, {
  selector: 'h3.blk, .promo-col .promo h3',
  css:['.sIFR-root {color: #003366; leading: -4;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(Univers_LT_55, {
  selector: '.markets-list h3',
  css:['.sIFR-root {color: #656565;}',
		'a {color: #656565; text-decoration: none;}',
		'a:hover {color: #656565; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(Univers_LT_45_light, {
  selector: 'h3.trans-rep',
  css:['.sIFR-root {color: #333333; leading: -4;}',
		'a {color: #333333; text-decoration: none;}',
		'a:hover {color: #333333; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(Univers_LT_45_light, {
  selector: 'h3',
  css:['.sIFR-root {color: #003366; leading: -4;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});

// p ========================================
sIFR.replace(Univers_LT_55, {
  selector: 'p.lead, p.lead-uline',
  css:['.sIFR-root {color: #003366; leading: -1;}',
		'a {color: #003366; text-decoration: none;}',
		'a:hover {color: #003366; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -7,
  transparent: true
});




