/*****************************************************************************
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 dinbold = { src: '/flash/dinbold.swf' };
var dinblack = { src: '/flash/dinblack.swf' };
var dinmedium = { src: '/flash/dinmedium.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(dinbold, dinblack, dinmedium);

// 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.replace(dinbold, {
  selector: '.calltoactioncallout p'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #141618; leading:3 }'
    ]
	//,fitExactly: true
	,ratios:[10, 1.32, 16, 1.27, 23, 1.23, 24, 1.21, 25, 1.22, 31, 1.21, 38, 1.2, 42, 1.19, 43, 1.2, 62, 1.19, 66, 1.18, 67, 1.19, 113, 1.18, 114, 1.17, 119, 1.18, 120, 1.17, 1.18]
});

sIFR.replace(dinblack, {
  selector: '#innercontent .headerbar h1.text'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #ffffff; text-transform:uppercase }'
    ]
	//,fitExactly: true
	,ratios:[9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.productxigonow .productsummary .productprice'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #8abb40; text-transform:uppercase }'
    ]
	//,fitExactly: true
	,ratios:[9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.productxigopro .productsummary .productprice'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #f8991d; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.productxigoenterprise .productsummary .productprice'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #0094b3; text-transform:uppercase }'
    ]
	//,fitExactly: true
	,ratios:[9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.xigonowcolumn .registerpricing'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #8abb40; text-transform:uppercase }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.xigoprocolumn .registerpricing'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #f8991d; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '#registerhead h1'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #54606c; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinmedium, {
  selector: '#tagline'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #a9afb5; font-style:italic }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[6, 1.55, 7, 1.46, 10, 1.43, 15, 1.36, 16, 1.34, 23, 1.32, 27, 1.31, 28, 1.3, 31, 1.29, 34, 1.3, 39, 1.28, 40, 1.29, 52, 1.28, 55, 1.27, 56, 1.28, 84, 1.27, 85, 1.26, 88, 1.27, 91, 1.26, 92, 1.27, 95, 1.26, 96, 1.27, 1.26]
});
sIFR.replace(dinblack, {
  selector: '#homefeaturetabs .headermain'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #ffffff; text-transform:uppercase; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '#homefeaturetabs .headersub'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #ffffff; text-transform:uppercase; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinbold, {
  selector: '#homefeaturetabs ul li'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #a2d94e; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,offsetTop: '-3'
	,ratios:[7, 1.45, 10, 1.32, 16, 1.27, 23, 1.23, 24, 1.21, 25, 1.22, 31, 1.21, 38, 1.2, 42, 1.19, 43, 1.2, 62, 1.19, 66, 1.18, 67, 1.19, 113, 1.18, 114, 1.17, 119, 1.18, 120, 1.17, 1.18]
});
sIFR.replace(dinblack, {
  selector: '.producttype strong'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #f8f9fa; text-transform:uppercase; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});
sIFR.replace(dinblack, {
  selector: '.producttype span'
	,wmode: 'transparent'  
	,css: [
      '.sIFR-root { color: #f8f9fa; }'
    ]
	//,fitExactly: true
	,tuneHeight: '-6'
	,ratios:[7, 1.32, 8, 1.18, 11, 1.13, 18, 1.08, 29, 1.05, 49, 1.03, 74, 1.02, 1.01]
});

