/*****************************************************************************
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 din = { src: '/Sites/main/Templates/js/babyclub/sifr/flash/sifr.swf' };
var dinbold = { src: '/Sites/main/Templates/js/babyclub/sifr/flash/sifr-bold.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.activate(din);
sIFR.activate(dinbold);


// If you want, you can use multiple movies, like so:
//
//    var din = { src: '/path/to/din.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(din, 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 din movie.
// 
// The first argument to `sIFR.replace` is the `din` 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(dinbold, {
  selector: '#tagDetail h1', 
  css: ['.sIFR-root { color: #87c6ed; }'],
  wmode:'transparent',
  tuneHeight:-5,
  fitExactly: true
 });
sIFR.replace(dinbold, {
  selector: '#inhoud_right .tagDetailLong h1',
  css: '.sIFR-root { color: #4dbcbd; }',
  wmode:'transparent',
  fitExactly:true
});
sIFR.replace(dinbold, {
  selector: '#tagDetailPage h1',
  css: '.sIFR-root { color: #87c6ed; }',
  wmode:'transparent',
  fitExactly:true,
  tuneHeight:-30
});
sIFR.replace(dinbold, {
  selector: '#home h1',
  css: '.sIFR-root { color: #B7B7B7;  }',
  wmode:'transparent'
});
sIFR.replace(dinbold, {
  selector: 'h1',
  css: '.sIFR-root { color: #75bdea; }',
  wmode:'transparent'
});
sIFR.replace(dinbold, {
  selector: 'h2.subtitle-blue',
  css: '.sIFR-root { color: #75bdea; }',
  wmode:'transparent'
});
sIFR.replace(din, {
  selector: '.homeblock_blue h2',
  css: '.sIFR-root { color: #366c85; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '.homeblock_white h2',
  css: '.sIFR-root { color: #4ca8d4; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '.homeblock_pink h2',
  css: '.sIFR-root { color: #FFFFFF; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '#reactions h2',
  css: ['.sIFR-root { color: #d45faa; }'],
  wmode:'transparent'
 });
 sIFR.replace(din, {
  selector: '.reactionForm h2',
  css: ['.sIFR-root { color: #d45faa; }'],
  wmode:'transparent'
 });
sIFR.replace(din, {
  selector: '.bg_articles_home .dossiers h2',
  css: ['.sIFR-root { color: #FFFFFF; }','.sIFR-root a {color:#FFFFFF; text-decoration:none;}','.sIFR-root a:hover {color:#FFFFFF; text-decoration:underline}'],
  wmode:'transparent',
  fitExactly:true,
  tuneHeight:0
});
sIFR.replace(din, {
  selector: '.bg_articles_home h2',
  css: '.sIFR-root { color: #FFFFFF; }',
  wmode:'transparent',
  fitExactly:true,
  tuneHeight:-30
});
sIFR.replace(din, {
  selector: '#tagDetailPage .thumb p',
  css: ['.sIFR-root {color: #4a4a4a;}', 'a {color: #4a4a4a; cursor:pointer; text-decoration:none; }', 'a:hover {color: #4a4a4a; text-decoration:underline }'],
  wmode:'transparent'
});
sIFR.replace(din, {
  selector: '#tagDetail p.baseline',
  css: '.sIFR-root { color: #87c6ed; }',
  wmode:'transparent',
  forceSingleLine:true
});
sIFR.replace(din, {
  selector: '#tagDetailPage  p.baseline',
  css: '.sIFR-root { color: #87c6ed; }',
  wmode:'transparent'
});
sIFR.replace(din, {
  selector: '.bg_articles_home p.baseline',
  css: '.sIFR-root { color: #FFFFFF; }',
  wmode:'transparent'
});
 sIFR.replace(dinbold, {
  selector: '.border-grey h2', 
  css: ['.sIFR-root { color: #75BDEA; }'],
  wmode:'transparent'
 });
sIFR.replace(din, {
  selector: '#register h2',
  css: '.sIFR-root { color: #4a4a4a; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '#login.register h2',
  css: '.sIFR-root { color: #4a4a4a; }',
  wmode:'transparent'
});
sIFR.replace(din, {
  selector: '#login h2',
  css: '.sIFR-root { color: #FFFFFF; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '#poll h2',
  css: '.sIFR-root { color: #FFFFFF; }',
  wmode:'transparent',
  tuneHeight:-5
});
sIFR.replace(din, {
  selector: '.rightblock_white h2',
  css: '.sIFR-root { color: #4a4a4a; }',
  wmode:'transparent',
  tuneHeight:-3
 });
sIFR.replace(dinbold, {
  selector: '.tag h2',
  css: ['.sIFR-root { color: #4a4a4a; }', '.sIFR-root a {color:#4a4a4a; text-decoration:none;}', '.sIFR-root a:hover {color:#4a4a4a; text-decoration:underline}'],
  wmode:'transparent',
  tuneHeight:-3
 });
sIFR.replace(dinbold, {
  selector: '.experts_yellow h2', 
  css: ['.sIFR-root { color: #4a4a4a; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
 sIFR.replace(dinbold, {
  selector: '.experts_purple h2', 
  css: ['.sIFR-root { color: #4a4a4a; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
  sIFR.replace(dinbold, {
  selector: '.experts_purple h3', 
  css: ['.sIFR-root { color: #FFFFFF; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
 sIFR.replace(dinbold, {
  selector: '.experts_yellow h2', 
  css: ['.sIFR-root { color: #4a4a4a; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
 sIFR.replace(dinbold, {
  selector: '.experts_yellow h3', 
  css: ['.sIFR-root { color: #FFFFFF; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
  sIFR.replace(dinbold, {
  selector: '.experts_pink h3', 
  css: ['.sIFR-root { color: #FFFFFF; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
  sIFR.replace(dinbold, {
  selector: '.experts_blue h3', 
  css: ['.sIFR-root { color: #FFFFFF; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
 
sIFR.replace(din, {
  selector: '.blue_block h2', 
  css: ['.sIFR-root { color: #FFFFFF; }'],
  wmode:'transparent',
  tuneHeight:-3
 });
sIFR.replace(din, {
  selector: '.pink_block h2', 
  css: ['.sIFR-root { color: #FFFFFF; text-align:right; }'],
  wmode:'transparent',
  tuneHeight:-3
 });

 sIFR.replace(din, {
  selector: 'span.welcome', 
  css: ['.sIFR-root { color: #4a4a4A;  font-size:18px;}'],
  wmode:'transparent',
  forceSingleLine:true
 });
 sIFR.replace(dinbold, {
  selector: 'span.firstname', 
  css: ['.sIFR-root { color: #4a4a4A; font-size:18px; }'],
  wmode:'transparent',   
  forceSingleLine:true

 });
sIFR.replace(din, {
  selector: 'h2', 
  css: ['.sIFR-root { color: #4a4a4A; }'],
  wmode:'transparent'
 });
 sIFR.replace(din, {
  selector: '#subnav li.menuActive', 
  css: ['.sIFR-root { color: #FFFFFF; text-transform:lowercase; }','a {color:#FFFFFF; text-decoration:none}','a:hover {text-decoration:none; color:#FFFFFF}'],
  wmode:'transparent',
  ratios: [8, 1.42, 9, 1.33, 12, 1.35, 18, 1.3, 20, 1.26, 27, 1.27, 28, 1.25, 32, 1.26, 33, 1.24, 34, 1.25, 53, 1.24, 56, 1.23, 57, 1.24, 82, 1.23, 85, 1.22, 86, 1.23, 94, 1.22, 95, 1.23, 1.22],
  fitExactly:true,
   forceSingleLine:true

   });
sIFR.replace(din, {
  selector: '#subnav li', 
  css: ['.sIFR-root { color: #4a4a4A; text-transform:lowercase; }','a {color:#4a4a4a; text-decoration:none}','a:hover {text-decoration:underline; color:#4A4A4A}'],
  wmode:'transparent',
ratios: [8, 1.42, 9, 1.33, 12, 1.35, 18, 1.3, 20, 1.26, 27, 1.27, 28, 1.25, 32, 1.26, 33, 1.24, 34, 1.25, 53, 1.24, 56, 1.23, 57, 1.24, 82, 1.23, 85, 1.22, 86, 1.23, 94, 1.22, 95, 1.23, 1.22],
 fitExactly:true,
 forceSingleLine:true
 
   });
sIFR.replace(din, {
  selector: '.tagdescription', 
  css: ['.sIFR-root { color: #4a4a4A; }', 'a { color: #4a4a4A; text-decoration:none; }', 'a:hover { color: #4a4a4A;}'],
  wmode:'transparent'
 });

