//****************************************************************************
//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.
var goudy = { src: '/resources/sifr/flash/goudy.swf' };
var donnyshand = { src: '/resources/sifr/flash/donnyshand.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;

// Next, activate sIFR:

sIFR.ua.supported = sIFR.ua.supported && (!sIFR.ua.ie || sIFR.ua.ieVersion > 6);

sIFR.activate(goudy, donnyshand);
//sIFR.activate(donnyshand);

// 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>.

sIFR.replace(goudy, {
  selector: '#content #main .even div.meal h3, #content #main div.recipe h5, #content #main .even div.meal h4',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #612cb6;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content #main div.meal h3, #content #main div.meal h4',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #b70253;}',
  wmode: 'transparent'
});


sIFR.replace(goudy, {
  selector: '#signup-login h2, #nearest-group h2, .home-additional h3, h3.microsite-side ',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #cc0000; text-transform: lowercase;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content .extra-easy h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #DD9004;}',
  wmode: 'transparent'
});

//JOINING A GROUP HEADINGS

sIFR.replace(goudy, {
  selector: '#content.joining-a-group #main h3, h2.browsegroups',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #56A403;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.joining-a-group #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #006600; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.joining-a-group .emphasis',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #006600; font-size: 22px; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.joining-a-group .consultant-name',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #006600; font-size: 26px; font-weight: bold;}',
  wmode: 'transparent'
});

//JOINING ONLINE HEADINGS
sIFR.replace(goudy, {
  selector: '#content.joining-online #main h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #0522C8;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.joining-online #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #006600; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.joining-a-group #main h5',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #316A0E; font-size: 28px; margin: 0 0 10px;}'],
  wmode: 'transparent'
});

//LOSING WEIGHT HEADINGS

sIFR.replace(goudy, {
  selector: '#content.losing-weight #main h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #F17B00;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.losing-weight #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #DF4400; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

//HEALTHY EATING HEADINGS

sIFR.replace(goudy, {
  selector: '#content.healthy-eating h3',
  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],
	css: ['.sIFR-root { background-color: #ffffff; color: #5A9509; }','.sIFR-root a { color: #468303; }','.sIFR-root a:hover { color: #468303; }'],
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.healthy-eating #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #316A0E; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

//GETTING ACTIVE HEADINGS

sIFR.replace(goudy, {
  selector: '#content.getting-active h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #0568BB;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.getting-active #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #00299F; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

//AMAZING SUPPORT HEADINGS

sIFR.replace(goudy, {
  selector: '#content.amazing-support h3',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #E36300; }','.sIFR-root a { color: #E36300; }','.sIFR-root a:hover { color: #E36300; }'],
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.amazing-support #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #D33F00; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

//OUR MEMBERS HEADINGS

sIFR.replace(goudy, {
  selector: '#content.our-members h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #830AAF;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content.our-members #main h4',
  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],
  css: ['.sIFR-root { background-color: #ffffff; color: #5A048B; }','.sIFR-root a { color: #006600; }','.sIFR-root a:hover { color: #006600; }'],
  wmode: 'transparent'
});

//ROOT HEADINGS

sIFR.replace(goudy, {
  selector: '#content #main h3, .central-td h3',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #E80000;}',
  wmode: 'transparent'
});

sIFR.replace(goudy, {
  selector: '#content #main h4',
  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],
  css: '.sIFR-root { background-color: #ffffff; color: #cc0000;}',
  wmode: 'transparent'
});


//CONSULTANT SIGNATURE

sIFR.replace(donnyshand, {
  selector: '.signature, .signature-signoff',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #006600; font-weight: bold;}',
  wmode: 'transparent'
});


//GROUP SIGNATURE

sIFR.replace(donnyshand, {
  selector: '.group, .group-signoff',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #5A048B; font-weight: bold;}',
  wmode: 'transparent'
});

//JOIN A GROUP FOOTERS

sIFR.replace(donnyshand, {
  selector: '.group-footer-about-us',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #cc0000; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-amazing-support',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #D33F00; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-getting-active',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #0568BB; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-losing-weight',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #FF6600; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-our-members',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #5A048B; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-magazine',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #5A048B; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-healthy-eating',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #006600; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-joining-a-group',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #56A403; font-weight: bold;}',
  wmode: 'transparent'
});

sIFR.replace(donnyshand, {
  selector: '.group-footer-joining-online',
  ratios: [8, 1.63, 10, 1.61, 11, 1.54, 13, 1.55, 19, 1.53, 28, 1.5, 29, 1.48, 33, 1.49, 37, 1.48, 39, 1.49, 40, 1.47, 48, 1.48, 67, 1.47, 69, 1.46, 71, 1.47, 73, 1.46, 76, 1.47, 1.46],
  css: '.sIFR-root {background-color: #ffffff; color: #0522C8; font-weight: bold;}',
  wmode: 'transparent'
});





//sIFR.debug.ratios(goudy, { selector: '.healthy-eating #subnav h2' });
