/*****************************************************************************
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 FSAlbert = { src: '/flash-fonts/FSAlbert.swf',
		ratios: [7, 1.32, 8, 1.31, 12, 1.27, 16, 1.22, 22, 1.2, 28, 1.19, 30, 1.17, 31, 1.18, 39, 1.17, 54, 1.16, 60, 1.15, 61, 1.16, 96, 1.15, 97, 1.14, 100, 1.15, 101, 1.14, 102, 1.15, 104, 1.14, 107, 1.15, 112, 1.14, 113, 1.15, 119, 1.14, 120, 1.15, 1.14]
	};
var FSAlbert_bold = { src: '/flash-fonts/FSAlbert_bold.swf',
		ratios: [7, 1.32, 8, 1.31, 12, 1.27, 19, 1.23, 27, 1.2, 28, 1.18, 29, 1.19, 36, 1.18, 51, 1.17, 56, 1.16, 57, 1.17, 87, 1.16, 91, 1.15, 93, 1.16, 98, 1.15, 99, 1.16, 1.15]
	};
var FSAlbert_light = { src: '/flash-fonts/FSAlbert_light.swf',
		ratios: [7, 1.32, 8, 1.31, 12, 1.27, 19, 1.23, 28, 1.19, 30, 1.17, 36, 1.18, 45, 1.17, 50, 1.16, 51, 1.17, 67, 1.16, 72, 1.15, 73, 1.16, 1.15]
	};
var FSAlbert_thin = { src: '/flash-fonts/FSAlbert_thin.swf',
		ratios: [7, 1.32, 8, 1.31, 12, 1.27, 15, 1.21, 16, 1.22, 22, 1.2, 23, 1.17, 25, 1.19, 33, 1.17, 38, 1.16, 39, 1.17, 42, 1.16, 46, 1.15, 48, 1.16, 69, 1.15, 70, 1.14, 74, 1.15, 77, 1.14, 79, 1.15, 1.14]
	};

// configuration settings. eg.
// sIFR.useStyleCheck = true;
sIFR.fixWrap = true;
sIFR.fixHover  = true;

// activate sIFR:
sIFR.activate(FSAlbert, FSAlbert_bold, FSAlbert_light, FSAlbert_thin);

// 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(FSAlbert_bold, {
  selector: 'h1',
  css:['.sIFR-root {color: #000000; leading: -4;}'],
  fitExactly: true,
  offsetTop: -7,
  tuneHeight: -12,
  transparent: true
});


// H2 ========================================
sIFR.replace(FSAlbert, {
  selector: '#promos-home h2, #promos-landing h2',
  css:['.sIFR-root {color: #666666; leading: -4;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(FSAlbert, {
  selector: '.director-row .director h2',
  css:['.sIFR-root {color: #cc0000; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(FSAlbert_light, {
  selector: 'h2',
  css:['.sIFR-root {color: #333333; leading: -4;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  transparent: true
});



// H3 ========================================
sIFR.replace(FSAlbert, {
  selector: '.promo-col .box h3',
  css:['.sIFR-root {color: #666666; leading: -4;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(FSAlbert_light, {
  selector: '.director-row .director h3',
  css:['.sIFR-root {color: #333333; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -7,
  tuneWidth: 1,
  transparent: true
});

sIFR.replace(FSAlbert_light, {
  selector: '.hi-promo-row h3,.hi-promos h3',
  css:['.sIFR-root {color: #000000; leading: -2;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});


// H4 ========================================


// Misc ========================================
sIFR.replace(FSAlbert_thin, {
  selector: 'ul.hilight-list li',
  css:['.sIFR-root {color: #000000; leading: -4;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});



// p ========================================
sIFR.replace(FSAlbert_light, {
  selector: '.banner .text-layer p.lead',
  css:['.sIFR-root {color: #9A9A9D; leading: -4;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(FSAlbert_light, {
  selector: '.banner .text-layer p.name',
  css:['.sIFR-root {color: #CD1041; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

sIFR.replace(FSAlbert_light, {
  selector: '.banner .text-layer p.position',
  css:['.sIFR-root {color: #000000; leading: -3;}'],
  fitExactly: true,
  offsetTop: -4,
  tuneHeight: -9,
  transparent: true
});

/*






sIFR.replace(HelvNeueCE_45_light, {
  selector: '',
  css:['.sIFR-root {color: #4D4D4F;}',
		'a {color: #f58220; text-decoration: none;}',
		'a:hover {color: #f58220; text-decoration: underline;}'],
  fitExactly: true,
  offsetTop: -5
});
*/

