
/*****************************************************************************
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 HelvNeueCE_45_light = { src: '/cps/rde/xbcr/SID-20D9DEC9-9961CCBB/ds_compass_internet_uk/HelvNeueCE_45_light.swf',
        ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 27, 1.27, 28, 1.25, 32, 1.26, 33, 1.24, 34, 1.25, 53, 1.24, 77, 1.23, 78, 1.22, 80, 1.23, 81, 1.22, 82, 1.23, 85, 1.22, 86, 1.23, 1.22]
    };
var HelvNeueCE_55_roman = { src: '/cps/rde/xbcr/SID-20D9DEC9-9961CCBB/ds_compass_internet_uk/HelvNeueCE_55_roman.swf',
        ratios: [8, 1.42, 9, 1.33, 12, 1.35, 21, 1.3, 31, 1.27, 32, 1.25, 40, 1.26, 41, 1.24, 46, 1.25, 72, 1.24, 73, 1.23, 74, 1.24, 77, 1.23, 78, 1.24, 86, 1.23, 87, 1.24, 1.23]
    };
var HelvNeueCE_65_medium = { src: '/cps/rde/xbcr/SID-20D9DEC9-9961CCBB/ds_compass_internet_uk/HelvNeueCE_65_medium.swf',
        ratios: [8, 1.42, 9, 1.33, 12, 1.35, 21, 1.3, 31, 1.27, 44, 1.26, 45, 1.24, 53, 1.25, 58, 1.24, 59, 1.25, 62, 1.24, 63, 1.25, 89, 1.24, 90, 1.23, 91, 1.24, 94, 1.23, 95, 1.24, 98, 1.23, 99, 1.24, 103, 1.23, 104, 1.24, 1.23]
    };
// configuration settings. eg.
// sIFR.useStyleCheck = true;
sIFR.fixWrap = true;
sIFR.fixHover  = true;
// activate sIFR:
sIFR.activate(HelvNeueCE_45_light, HelvNeueCE_55_roman, HelvNeueCE_65_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>.
// H1 ========================================
sIFR.replace(HelvNeueCE_45_light, {
  selector: '.home-col1 h1',
  css:['.sIFR-root {color: #666666; leading: -8;}'],
  fitExactly: true,
  offsetTop: -8,
  tuneHeight: -10,
  transparent: true
});
sIFR.replace(HelvNeueCE_45_light, {
  selector: 'h1',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -8,
  tuneHeight: -10,
  transparent: true
});

// H2 ========================================
sIFR.replace(HelvNeueCE_55_roman, {
  selector: 'h2.article',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -2,
  tuneHeight: -8,
  transparent: true
});

// H3 ========================================
sIFR.replace(HelvNeueCE_55_roman, {
  selector: '#chartwells .promo-big h3, #ess .promo-big h3, #eurest .promo-big h3, #levy .promo-big h3, #medirest .promo-big h3, #restacc .promo-big h3, #whiteoaks .promo-big h3',
  css:['.sIFR-root {color: #ffffff;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(HelvNeueCE_55_roman, {
  selector: '.promo-col .promo-big h3',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(HelvNeueCE_45_light, {
  selector: '.home-col2 .promo-big h3',
  css:['.sIFR-root {color: #666666;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(HelvNeueCE_55_roman, {
  selector: '.signpost h3',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
sIFR.replace(HelvNeueCE_45_light, {
  selector: '.promo-big h3',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -8,
  tuneWidth: 1,
  transparent: true
});
// p ========================================
sIFR.replace(HelvNeueCE_45_light, {
  selector: 'p.lead',
  css:['.sIFR-root {color: #666666; leading: -4;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -7,
  transparent: true
});


/*
sIFR.replace(HelvNeueCE_65_medium, {
  selector: 'h1.search-result',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -9,
  transparent: true
});
sIFR.replace(HelvNeueCE_45_light, {
  selector: 'h2.search-result',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -5,
  tuneHeight: -9,
  transparent: true
});
sIFR.replace(HelvNeueCE_55_roman, {
  selector: '#faq_container h2',
  css:['.sIFR-root {color: #333333; cursor: pointer;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -4,
  transparent: true
});
sIFR.replace(HelvNeueCE_65_medium, {
  selector: '#faq_container .faq_content h3',
  css:['.sIFR-root {color: #333333;}'],
  fitExactly: true,
  offsetTop: -3,
  tuneHeight: -4,
  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
});
*/


