/*****************************************************************************
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 GothamNarrow_bold = { src: '/haysassets/HaysWorldwide/assets/flash-fonts/GothamNarrow_bold.swf',
		ratios: [9, 1.27, 13, 1.18, 18, 1.14, 26, 1.13, 29, 1.11, 30, 1.12, 32, 1.11, 46, 1.1, 75, 1.09, 86, 1.08, 87, 1.09, 1.08]
	};
var GothamNarrow_book = { src: '/haysassets/HaysWorldwide/assets/flash-fonts/GothamNarrow_book.swf',
		ratios: [9, 1.25, 15, 1.16, 22, 1.11, 24, 1.08, 25, 1.1, 29, 1.09, 43, 1.08, 55, 1.07, 57, 1.06, 64, 1.07, 91, 1.06, 92, 1.05, 101, 1.06, 103, 1.05, 105, 1.06, 114, 1.05, 117, 1.06, 1.05]
	};

// configuration settings. eg.
// sIFR.useStyleCheck = true;
sIFR.fixWrap = true;

// activate sIFR:
sIFR.activate(GothamNarrow_bold, GothamNarrow_book);


// 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>.


sIFR.replace(GothamNarrow_bold, {
  selector: '#content h1',
  css:['.sIFR-root {color: #009FDA; leading: -3;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_bold, {
  selector: '.banner-text-white h1 .leader, .banner-text-darkblue h1 .hilite',
  css:['.sIFR-root {color: #002776; leading: -3;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_bold, {
  selector: '.banner-text-darkblue h1 .leader, .banner-text-liteblue h1 .leader',
  css:['.sIFR-root {color: #ffffff; leading: -3;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_bold, {
  selector: '.banner-text-white h1 .hilite, .banner-text-liteblue h1 .hilite',
  css:['.sIFR-root {color: #009FDA; leading: -3;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});


sIFR.replace(GothamNarrow_book, {
  selector: '#content h2.subhead, #content h2.anchour-head, h2.sitemap-head',
  css:['.sIFR-root {color: #009FDA; leading: 1;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
selector: 'h2.contact-head, h2.table-head, #content h2.board-head',
  css:['.sIFR-root {color: #009FDA; leading: 1;}'],
  fitExactly: true,
  offsetTop: -1,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
selector: '#content h2.press-head, #content h2.search-head',
  css:['.sIFR-root {color: #009FDA; leading: 1;}',
		'a {color: #009FDA; text-decoration: none;}',
		'a:hover {color: #009FDA; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -1,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_book, {
  selector: '#content h3.standfirst',
  css:['.sIFR-root {color: #808080; leading: 1;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
  selector: 'h3.table-subhead, h3.board-subhead',
  css:['.sIFR-root {color: #808080; leading: 1;}'],
  fitExactly: true,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});


sIFR.replace(GothamNarrow_bold, {
  selector: 'h2.mod-head',
  css:['.sIFR-root {color: #2C2F78; leading: -3;}',
		'a {color: #2C2F78; text-decoration: none;}',
		'a:hover {color: #2C2F78; text-decoration: underline;}'],
  fitExactly: true,
  tuneHeight: -5,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_bold, {
  selector: 'h2.mod-head-grey',
  css:['.sIFR-root {color: #b2b2b2; leading: -3;}'],
  fitExactly: true,
  tuneHeight: -5,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_bold, {
  selector: 'h2.mod-head-white',
  css:['.sIFR-root {color: #ffffff; leading: -3;}'],
  fitExactly: true,
  offsetTop: -1,
  tuneHeight: -5,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_book, {
  selector: 'ul#nav .dropmenu h3.menuhead',
  css:['.sIFR-root {color: #2C2F78; leading: -1;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -4,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(GothamNarrow_book, {
  selector: 'ul.grid-list-x6 h3',
  css:['.sIFR-root {color: #009FDA; leading: -1; letter-spacing: -0.2;}'],
  fitExactly: true,
  offsetTop: -2,
  offsetLeft: -1,
  tuneHeight: -6,
  tuneWidth: -1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
  selector: 'ul.grid-list-x4 h3',
  css:['.sIFR-root {color: #9b9b9b; leading: -1; letter-spacing: -0.2;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
  selector: 'ul.grid-list-x4 h4',
  css:['.sIFR-root {color: #009FDA; leading: -1; letter-spacing: -0.2;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -6,
  tuneWidth: 1,
  transparent: true
});



/*

sIFR.replace(GothamNarrow_book, {
  selector: 'ul.hilight-list h3',
  css:['.sIFR-root {color: #009FDA; leading: -2; letter-spacing: -0.2;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(GothamNarrow_book, {
  selector: '.tabs-narrow ul.hilight-list strong',
  css:['.sIFR-root {color: #009FDA; leading: -2; letter-spacing: -0.5;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -5,
  tuneWidth: 4,
  transparent: true
});



sIFR.replace(GothamNarrow_bold, {
  selector: '.smallhead-org',
  css:['.sIFR-root {color: #ff6600; leading: -3;}',
		'a {color: #ff6600; text-decoration: none;}',
		'a:hover {color: #ff6600; text-decoration: none;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -6,
  transparent: true
});

sIFR.replace(GothamNarrow_book, {
  selector: '.mainhead',
  css:['.sIFR-root {color: #000000; leading: -3;}',
		'a {color: #ff6600; text-decoration: none;}',
		'a:hover {color: #ff6600; text-decoration: none;}'],
  fitExactly: true,
  offsetTop: -6,
  tuneHeight: -10,
  transparent: true
});

sIFR.replace(GothamNarrow_book, {
  selector: '.subhead2',
  css:['.sIFR-root {color: #000000; leading: -3;}',
		'a {color: #ff6600; text-decoration: none;}',
		'a:hover {color: #ff6600; text-decoration: none;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -8,
  transparent: true
});


*/






