/*****************************************************************************
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 futura = { src: '/path/to/futura.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(futura);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, 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 Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` 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.debug.ratios({ src: '/swf/century_gothic.swf', selector: 'h1' });

    var century = {
      src: '/swf/century_gothic.swf'
      ,ratios: [6, 1.63, 7, 1.46, 8, 1.41, 10, 1.33, 11, 1.22, 12, 1.09, 13, 1.53, 15, 1.46, 16, 1.38, 17, 1.29, 18, 1.37, 19, 1.42, 20, 1.36, 21, 1.3, 22, 1.29, 23, 1.35, 24, 1.28, 25, 1.23, 26, 1.25, 27, 1.23, 29, 1.3, 30, 1.26, 31, 1.23, 32, 1.25, 33, 1.37, 35, 1.29, 36, 1.31, 37, 1.28, 38, 1.49, 39, 1.46, 40, 1.43, 42, 1.39, 43, 1.44, 44, 1.42, 45, 1.39, 46, 1.36, 47, 1.34, 48, 1.47, 49, 1.45, 50, 1.43, 51, 1.4, 52, 1.38, 53, 1.42, 54, 1.41, 56, 1.39, 57, 1.37, 58, 1.41, 59, 1.39, 60, 1.37, 61, 1.34, 62, 1.33, 63, 1.31, 64, 1.29, 66, 1.27, 67, 1.25, 69, 1.34, 70, 1.31, 71, 1.3, 72, 1.29, 73, 1.32, 74, 1.3, 77, 1.29, 78, 1.35, 79, 1.33, 80, 1.31, 81, 1.3, 82, 1.28, 83, 1.27, 85, 1.25, 86, 1.22, 87, 1.21, 88, 1.19, 89, 1.18, 90, 1.17, 91, 1.15, 92, 1.14, 93, 1.18, 94, 1.17, 95, 1.16, 96, 1.15, 97, 1.13, 98, 1.17, 99, 1.16, 101, 1.15, 102, 1.13, 103, 1.17, 104, 1.15, 105, 1.14, 106, 1.13, 107, 1.12, 108, 1.16, 109, 1.15, 110, 1.14, 111, 1.13, 112, 1.12, 113, 1.19, 114, 1.18, 115, 1.17, 116, 1.16, 117, 1.15, 118, 1.27, 119, 1.26, 121, 1.25, 122, 1.23, 123, 1.26, 1.25]
    };
	
	//sIFR.debug.ratios({ src: '/swf/century_gothic.swf', selector: 'h1' });
	
    sIFR.activate(century);

    sIFR.replace(century, {
      selector: 'h1'
      ,css: [
        '.sIFR-root { text-align: left; text-transform: uppercase; font-size: 14px;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #3e3e3e; }'
        ,'a:hover { color: #8d8d8d; }'
      ],
	transparent: true
	});
    sIFR.replace(century, {
      selector: 'h2'
      ,css: [
        '.sIFR-root { text-align: left; text-transform: uppercase; font-size: 20px; background-color: #e5e5e5;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #3e3e3e; }'
        ,'a:hover { color: #8d8d8d; }'
      ],
	transparent: true
    });
