/*****************************************************************************
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 Hel_Light = { src: 'swf/Helvetica_Neue_LT_Std_Light.swf' };
var Hel_Roman = { src: 'swf/Helvetica_Neue_LT_Std_Roman.swf' };
var Hel_Medium = { src: 'swf/Helvetica_Neue_LT_Std_Medium.swf' };

var Hel_Ratios = [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01];

sIFR.activate(Hel_Light, Hel_Roman, Hel_Medium);


/* !--- Home ---                                                                                                  */
/* -------------------------------------------------------------------------------------------------------------- */

sIFR.replace(Hel_Medium, {
  	selector: '#home h1',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #242075; }'
});

sIFR.replace(Hel_Roman, {
  	selector: '#home #intro p',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #12ADE5; leading: 2; }'
});


/* !--- Offer of the week ---                                                                                     */
/* -------------------------------------------------------------------------------------------------------------- */

sIFR.replace(Hel_Medium, {
  	selector: '.offer h2 .med',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #FFFFFF; }',
  	tuneHeight: -5,
  	offsetTop: 3,
  	forceSingleLine: true
});

sIFR.replace(Hel_Light, {
  	selector: '.offer h2 .lgt',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
	css: '.sIFR-root { color: #FFFFFF; }',
  	tuneHeight: -5,
  	offsetTop: 3,
	forceSingleLine: false
});

sIFR.replace(Hel_Medium, {
  	selector: '.red .product',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #FFFFFF; leading: 2; }',
  	tuneHeight: -5
});

sIFR.replace(Hel_Medium, {
  	selector: '.blue .product',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #FDE304; leading: 2; }',
  	tuneHeight: -5
});


/* !--- Heading styles ---                                                                                        */
/* -------------------------------------------------------------------------------------------------------------- */

sIFR.replace(Hel_Medium, {
  	selector: '.sifr.style-1',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #242075; }',
  	tuneHeight: -5,
  	forceSingleLine: true
});

// Heading style for alternating medium / light

sIFR.replace(Hel_Medium, {
  	selector: '.sifr.style-2 .med',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #242075; }',
  	tuneHeight: -5,
  	forceSingleLine: true
});

sIFR.replace(Hel_Light, {
  	selector: '.sifr.style-2 .lgt',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #12ADE5; }',
  	tuneHeight: -5,
  	offsetTop: 3,
  	forceSingleLine: false
});
sIFR.replace(Hel_Light, {
  	selector: '.sifr.style-2 .lgtline',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #12ADE5; }',
  	tuneHeight: -5,
  	forceSingleLine: true
});
sIFR.replace(Hel_Light, {
  	selector: '.sifr.style-2 .lgtlinewap',
  	ratios: Hel_Ratios,
  	wmode: 'transparent',
  	css: '.sIFR-root { color: #12ADE5; }',
  	tuneHeight: -5,
  	fitExactly: true,
	tuneWidth: 10,
  	forceSingleLine: false
});