
var hotel = { src: '/flash/hotel_coral_essex.swf' };
var jd = { src: '/flash/jd.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(hotel, jd);

// 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(jd, { selector: 'h2'});


sIFR.replace(hotel, {
  selector: 'h1',
  ratios: [8, 1.3, 12, 1.27, 16, 1.21, 19, 1.17, 24, 1.18, 26, 1.16, 27, 1.17, 35, 1.16, 44, 1.15, 63, 1.14, 64, 1.13, 67, 1.14, 68, 1.13, 70, 1.14, 76, 1.13, 77, 1.14, 1.13],
  css: '.sIFR-root { color: #ffffff; letter-spacing: 2; margin-left: 2; }',
  wmode: 'transparent',
  filters: {
        DropShadow: {
          knockout: false
          ,distance: 1
          ,color: '#330000'
          ,strength: 2
        }
	}
});

sIFR.replace(jd, {
  selector: 'h2',
  ratios: [8, 1.43, 11, 1.38, 16, 1.33, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 45, 1.28, 73, 1.27, 76, 1.26, 77, 1.27, 1.26],
  css: '.sIFR-root { color: #0c3e66; }',
  wmode: 'transparent'

});