/*****************************************************************************
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.
*****************************************************************************/

// sIFR.useStyleCheck = true;

// 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.

//To find the ratios of the font enable below
//sIFR.debug.ratios({ src: 'cochin.swf', selector: 'h1' });

/****************************************************************************/


/*------Step 1-------*/
var cochin = { src: 'cochin.swf', ratios: [8, 1.42, 9, 1.33, 12, 1.35, 19, 1.3, 27, 1.27, 28, 1.25, 36, 1.26, 37, 1.24, 38, 1.25, 53, 1.24, 56, 1.23, 57, 1.24, 93, 1.23, 94, 1.22, 96, 1.23, 98, 1.22, 100, 1.23, 103, 1.22, 104, 1.23, 112, 1.22, 113, 1.23, 1.22] };
var rockwell = { src: 'rockwell.swf', ratios: [8, 1.42, 9, 1.33, 12, 1.35, 19, 1.3, 27, 1.27, 28, 1.25, 36, 1.26, 37, 1.24, 38, 1.25, 53, 1.24, 56, 1.23, 57, 1.24, 93, 1.23, 94, 1.22, 96, 1.23, 98, 1.22, 100, 1.23, 103, 1.22, 104, 1.23, 112, 1.22, 113, 1.23, 1.22] };
var garamand = { src: '/Style%20Library/garamond.swf', ratios: [8, 1.42, 9, 1.33, 12, 1.35, 19, 1.3, 27, 1.27, 28, 1.25, 36, 1.26, 37, 1.24, 38, 1.25, 53, 1.24, 56, 1.23, 57, 1.24, 93, 1.23, 94, 1.22, 96, 1.23, 98, 1.22, 100, 1.23, 103, 1.22, 104, 1.23, 112, 1.22, 113, 1.23, 1.22] };



/*------Step 2-------*/
sIFR.activate(garamand);


/*------Step 3-------*/
sIFR.replace(garamand, {
  selector: 'h1',
  css: ['.sIFR-root { color:#333333; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #333333; }'
        ,'a:hover { color: #00aeef; }'
       ],
  transparent: 'true'
});

sIFR.replace(garamand, {
  selector: 'h2',
  css: ['.sIFR-root { color:#8f8f8f; }'
        ,'a { text-decoration: none;color:#8f8f8f; }'
        ,'a:link { color: #8f8f8f; }'
        ,'a:hover { color: #00aeef; }'
       ],
  transparent: 'true'
});

sIFR.replace(garamand, {
  selector: '.heading',
  css: '.sIFR-root { color:#333333; }',
  transparent: 'true'
});

sIFR.replace(garamand, {
  selector: '.subheading',
  css: '.sIFR-root { color:#8f8f8f; }',
  transparent: 'true'
});

sIFR.replace(garamand, {
  selector: '.main_header',
  css: '.sIFR-root { color:#333333; }',
  offsetTop: '-3'
});

sIFR.replace(garamand, {
  selector: 'span.footerheading',
  css: '.sIFR-root { color:#00aeef; }',
  transparent: 'true'
});

sIFR.replace(garamand, {
  selector: '.search_result',
  css: '.sIFR-root { color:#333333; }',
  transparent: 'true'
});

sIFR.domains = ['harpercollins.co.uk'];
