var mainfont = { src: BaseURI+'/static/sifr3/flash/mainfont.swf' };

sIFR.fixHover = true;
sIFR.activate(mainfont);

toSmallCaps = function(str) {
    str=str.replace(/([A-Z!?])/g,'<strong>$1</strong>');
    return str.toUpperCase();
};


sIFR.replace(mainfont, {
  selector: '.mainmenu',
  transparent: true,
  preventWrap: true,
  thickness: 96,
  sharpness: 96,
  offsetTop: 2,
  /*tuneHeight: -4,*/
  tuneHeight: 2,
  fixHover: true,
  modifyContentString: toSmallCaps,

  css: '.sIFR-root { background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: pointer;} .sIFR-root strong {font-size: 120%;} .sIFR-root a {color: #1a4887; text-decoration:none; } .sIFR-root a:hover {color: #00b0f0;}'
});
sIFR.replace(mainfont, {
  selector: '#sitemap > li > span',
  transparent: true,
  preventWrap: true,
  thickness: 96,
  sharpness: 96,
  forceSingleLine: true,
  offsetTop: 2,
  tuneWidth: 2,
  fixHover: true,
  modifyContentString: toSmallCaps,

  css: '.sIFR-root { background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: pointer;} .sIFR-root strong {font-size: 120%;} .sIFR-root a {color: #1a4887; text-decoration:none; } .sIFR-root a:hover {color: #00b0f0;}'
});


sIFR.replace(mainfont, {
  selector: '#produkt h1',
  transparent: true,
  thickness: 96,
  sharpness: 96,
  offsetTop: -6,
  tuneHeight: -13,
  modifyContentString: toSmallCaps,
  css: '.sIFR-root {background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: arrow; } .sIFR-root strong {font-size: 120%;}'
});

sIFR.replace(mainfont, {
  selector: 'h1',
  transparent: true,
  thickness: 96,
  sharpness: 96,
  offsetTop: -2,
  tuneHeight: -4,
  modifyContentString: toSmallCaps,
  css: '.sIFR-root { background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: arrow;  } .sIFR-root strong {font-size: 120%;}'
});

   sIFR.replace(mainfont, {
     selector: 'h2.right',
     transparent: true,
     thickness: 96,
     sharpness: 96,
     offsetTop: -2,
     tuneHeight: -4,
     modifyContentString: toSmallCaps,
     css: '.sIFR-root { background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: arrow; text-align: right;  } .sIFR-root strong {font-size: 120%;}'
   });

sIFR.replace(mainfont, {
  selector: '#content-in > h2, h2.styled',
  transparent: true,
  thickness: 96,
  sharpness: 96,
  offsetTop: -2,
  tuneHeight: -4,
  modifyContentString: toSmallCaps,
  css: '.sIFR-root { background-color: #f4f9fc; color: #1a4887; font-weight: bold; cursor: arrow;  } .sIFR-root strong {font-size: 120%;}'
});

sIFR.replace(mainfont, {
  selector: '.contentnavi .menuitem',
  transparent: true,
  thickness: 96,
  sharpness: 96,
  forceSingleLine: true,
  offsetTop: 2,
  tuneWidth: 2,
  modifyContentString: toSmallCaps,
  fixHover: true,
  css: '.sIFR-root {background-color: #f4f9fc; color: #AAAAAA; font-weight: bold; cursor: pointer;} .sIFR-root strong {font-size: 120%;} .sIFR-root a {color: #AAAAAA; text-decoration:none;} .sIFR-root a:hover {color: #00b0f0;} .sIFR-root .active {color: #00b0f0;}'
});

sIFR.replace(mainfont, {
  selector: 'h3',
  transparent: true,
  preventWrap:true,
  offsetTop: -1,
  tuneHeight: -5,
  modifyContentString: toSmallCaps,
  css: '.sIFR-root { background-color: #4cadd6; color: #FFFFFF; font-weight: bold;  cursor: arrow; } .sIFR-root strong {font-size: 120%;}'
});
