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

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.

// /heinz_main/trunk/web/
// /Heinz/_templates//media/Flash/fonts/

var saunb = {src: '/media/Flash/fonts/saunb.swf'}
var saunbi = {src: '/media/Flash/fonts/saunbi.swf'}
var saunr = {
	src: '/media/Flash/fonts/saunr.swf',
	ratios:[8, 1.31, 12, 1.27, 16, 1.21, 17, 1.2, 23, 1.19, 24, 1.16, 25, 1.18, 27, 1.17, 32, 1.16, 33, 1.17, 41, 1.16, 56, 1.15, 57, 1.14, 58, 1.15, 94, 1.14, 97, 1.13, 100, 1.14, 101, 1.13, 102, 1.14, 105, 1.13, 107, 1.14, 1.13]
}
var englgt = { src: '/media/Flash/fonts/englgt.swf'}

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

sIFR.useStyleCheck = true;
//sIFR.fitExactly = true;
// Next, activate sIFR:

sIFR.activate(saunb, saunr, englgt, saunbi);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, garamond, rockwell);
//
// Remember, there must be *only one* `sIFR.activate()`!

// 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 HEADER
sIFR.replace(saunb, {
  selector: '.bannerTall h1',
  wmode: 'transparent',
  offsetTop: -4,
  //tuneHeight: -5,
  css: '.sIFR-root {text-align:center; color:#ffffff; leading: -7;}'
});

sIFR.replace(saunb, {
  selector: 'h1',
  wmode: 'transparent',
  offsetTop: -4,
  //tuneHeight: -5,
  css: '.sIFR-root {text-align:center; color:#ffffff; leading: -15;}'
});


sIFR.replace(saunb, {
  selector: '#leader',
  wmode: 'transparent',
  //offsetTop: -2,
  //tuneHeight: -6,
  css: '.sIFR-root {color:#443135; leading: -4}'
});

sIFR.replace(saunr, {
  selector: '#fact h2',
  wmode: 'transparent',
  offsetTop: 0,
  tuneHeight: -2,
  css: '.sIFR-root {color:#eeeac9; text-align:center}'
});
sIFR.replace(saunbi, {
  selector: '#fact p',
  wmode: 'transparent',
  //offsetTop: -2,
  //tuneHeight: -6,
  css: '.sIFR-root {color:#eeeac9; text-align:center; letter-spacing:1; leading:-6}'
});


// CAMPAIGN H2
sIFR.replace(saunr, {
	selector: '#campaign h2',
	wmode: 'transparent',
	//offsetTop: -2,
	//tuneHeight: -3,
	css: '.sIFR-root {text-align:center; color:#ffffff;}'
});

sIFR.replace(saunr, {
  selector: '#related_links h2',
  wmode: 'transparent',
  offsetTop: 0,
  tuneHeight: -2,
  css: '.sIFR-root {color:#ffffff; leading:-10}'
});



// BOX H2
sIFR.replace(saunr, {
  selector: '#keystone h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#ffffff; text-align:center;}'
});

sIFR.replace(saunr, {
	selector: '.skin_theme h2, .skin_gold h2, #related_links h2, .skin_green h2, .skin_black h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#ffffff; leading:-10}'
});

sIFR.replace(saunr, {
	selector: '.t_beansBlue h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#007586;leading: -7}'
});

sIFR.replace(saunr, {
  selector: '.t_defaultRed h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#A90027;leading: -7}'
});

sIFR.replace(saunr, {
  selector: '.t_soup h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#7e000d;leading: -7}'
});

sIFR.replace(saunr, {
  selector: '.t_sauces h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#006432;leading: -7}'
});

sIFR.replace(saunr, {
  selector: '.t_pasta h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#a90f14;leading: -7}'
});

sIFR.replace(saunr, {
  selector: '.t_ww h2',
  wmode: 'transparent',
  offsetTop: -3,
  css: '.sIFR-root {color:#4c1759;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_daddies h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#07b4dd;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_hp h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#c9282d;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_leaperrins h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#d05f25;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_leaperrins h2 em',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#d05f25;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_partners h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#0569a8;leading: -7}'
});

sIFR.replace(saunr, {
	selector: '.t_guinness h2',
	wmode: 'transparent',
	offsetTop: -3,
	css: '.sIFR-root {color:#000000;leading: -7}'
});

