/*****************************************************************************
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 frutigerbold = { src: '/fileadmin/templates/meda/fonts/frutigerltstd-bold.swf' };
var frutigerroman = { src: '/fileadmin/templates/meda/fonts/frutigerroman.swf' };


sIFR.activate(frutigerbold, frutigerroman);

sIFR.replace(frutigerbold, {
  selector:'h4.sifr',
  css:['.sIFR-root{color:#666666; text-transform:uppercase; cursor:pointer;}',
  '.sIFR-root a{color:#666666; text-decoration:none; cursor:pointer;}',
  '.sIFR-root a:hover{color:#666666; text-decoration:underline; cursor:pointer;}'],
  offsetTop:'3',
  wmode:'transparent'
});


sIFR.replace(frutigerbold, {
  selector: 'h4.frutiger',
  css: ['.sIFR-root{color:#323234; text-transform:uppercase;}'],
  offsetTop:'3',
  wmode:'transparent'
});


sIFR.replace(frutigerroman, {
  selector: 'li.news-amenu-item-year',
  css: ['.sIFR-root{color:#6d6c6c; text-transform:uppercase; cursor:pointer;}'],
  wmode:'transparent',
  onRelease: function(fi) { switchMenu(fi.getAncestor().parentNode); }
});

