/*****************************************************************************
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 JohnstonITCStd_medium = { src: 'flash-fonts/JohnstonITCStd_medium.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, 49, 1.23, 74, 1.22, 75, 1.21, 76, 1.22, 77, 1.21, 79, 1.22, 80, 1.21, 81, 1.22, 1.21]
	};

// configuration settings. eg.
// sIFR.useStyleCheck = true;
sIFR.fixWrap = true;
sIFR.fixHover  = true;

// activate sIFR:
sIFR.activate(JohnstonITCStd_medium);

// 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>.

/* Debug ratio calculation

sIFR.debug.ratios(JohnstonITCStd_medium, {
  selector: 'h1'
});

*/



sIFR.replace(JohnstonITCStd_medium, {
  selector: 'h1',
  css:['.sIFR-root {color: #000000; leading: -3;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -6,
  tuneHeight: -10,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '#mastleft h2',
  css:['.sIFR-root {color: #000000; leading: -2;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -9,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '#mastright h2',
  css:['.sIFR-root {color: #000000; leading: -2;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -9,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: 'h2, label.header',
  css:['.sIFR-root {color: #000000; leading: -1;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '.promo-home .promo h3, .parties-promos .promo h3',
  css:['.sIFR-root {color: #B63339; leading: -1;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '.contact-right .promo h3, .where-promos .promo h3',
  css:['.sIFR-root {color: #D80013; leading: -1;}',
		'a {color: #B63439; text-decoration: none;}',
		'a:hover {color: #B63439; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '#footer #address',
  css:['.sIFR-root {color: #000000;}',
		'a {color: #000000; text-decoration: none;}',
		'a:hover {color: #000000; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  transparent: true
});

/*
// Legal notice
sIFR.replace(JohnstonITCStd_medium, {
  selector: '.legalhead .boldhead',
  css:['.sIFR-root {color: #000000; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  offsetLeft: -1,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '.legalhead .reghead',
  css:['.sIFR-root {color: #000000; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  offsetLeft: -1,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(JohnstonITCStd_medium, {
  selector: '.subhead4, ul.arrow li',
  css:['.sIFR-root {color: #000000; font-weight: bold; leading: -2;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -7,
  transparent: true
});

*/



