/*****************************************************************************
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 dolly = { src: '/furniture/dolly.swf' };

sIFR.useStyleCheck = true;
sIFR.forceWidth = false;
sIFR.fitExactly = true;
sIFR.repaintOnResize = true;
sIFR.autoInitialize = false;

sIFR.activate(dolly);

sIFR.replace(dolly, {
  selector: '.item_title',
  css: [
    '.sIFR-root { background-color: #FFFFFF; color: #54565b; leading:-12; margin-left:10; font-size:44px; }',
    'h2 { font-weight:bold }',
    'h3 { font-style:italic }',
  ],
  tuneWidth: '20'
});

sIFR.replace(dolly, {
  selector: '#nav',
  css: [
    '.sIFR-root { background-color: #FFFFFF; color: #a5aeb3; margin-left:10; font-size:44px; font-style:italic}',
    'a {color:#a5aeb3; text-decoration:none; }',
    'a:hover {color: #54565b;}',
    'a:active {color: #54565b;}',
    '.active {color: #54565b;}'
  ],
  tuneWidth: '20'
});

sIFR.replace(dolly, {
  selector: '#contact_details p.adr, #contact_details p.tel, #contact_details p.email, #skills p',
  css: [
    '.sIFR-root { background-color: #FFFFFF; color: #54565b; leading:-13; margin-left:10; font-size:44px; font-style:italic}'
  ],
  tuneWidth: '20'
});


document.observe('dom:loaded', function() {
   sIFR.initialize();
});

