/*****************************************************************************
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 avenir_35_light = { src: '/fonts/avenir_35_light.swf' };
var avenir_55_roman = { src: '/fonts/avenir_55_roman.swf' };
var avenir_65_medium = { src: '/fonts/avenir_65_medium.swf' };
var avenir_85_heavy = { src: '/fonts/avenir_85_heavy.swf' };
var avenir_95_black = { src: '/fonts/avenir_95_black.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(avenir_35_light, avenir_55_roman, avenir_65_medium, avenir_85_heavy, avenir_95_black);

// 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(futura, {
  selector: 'h1',
  css: '.sIFR-root { background-color: #F9F9F9; color: #FF0000; }'
});
*/
sIFR.replace(avenir_35_light, {
	wmode: 'transparent',
	selector: '#feature_content h1',
	css: '.sIFR-root {kerning:false; color:#ffffff; font-size:28px; leading:4;letter-spacing:.4;}'
});
sIFR.replace(avenir_35_light, {
	wmode: 'transparent',
	selector: '#feature_content p',
	css: '.sIFR-root {kerning:false; color:#ffffff; font-size:14px; leading:5;letter-spacing:.3;}'
});
sIFR.replace(avenir_65_medium, {
	wmode: 'transparent',
	selector: '#content_body h1',
	css: '.sIFR-root {kerning:true; color:#777; font-size:14px;text-transform:uppercase;}'
});
/*sIFR.replace(avenir_95_black, {
  wmode: 'transparent',
  selector: '#content_body h2',
  css: '.sIFR-root {kerning:true; color:#1C76B7;font-size:18px;leading:5;}'
});

*/
sIFR.replace(avenir_95_black, {
	wmode: 'transparent',
	selector: 'body#page_technology_how_lpt_works #content_body dt, dl.styled_list dt',
	css: '.sIFR-root {kerning:true; color:#1C76B7; font-size:16px;}'
});

sIFR.replace(avenir_85_heavy, {
	wmode: 'transparent',
	selector: '#section_header h2',
	css: '.sIFR-root {kerning:true; color:#ffffff; font-size:16px;}'
});

sIFR.replace(avenir_95_black, {
	wmode: 'transparent',
	selector: '#sidebar .block h4',
  tuneHeight: '-5',
	css: '.sIFR-root {kerning:true; color:#1c76b7; font-size:14px;text-transform:uppercase;}'
});
sIFR.replace(avenir_85_heavy, {
	wmode: 'transparent',
	selector: '#recent .block h4',
  tuneHeight: '-5',
	css: ['.sIFR-root {kerning:true;font-size:13px; text-transform:uppercase;letter-spacing:1;}',
		'a { color:#333333; text-decoration:none; }',
		'a:hover {color:#333333; text-decoration:underline; }'
	]	
});
sIFR.replace(avenir_95_black, {
	wmode: 'transparent',
  tuneHeight: '-5',
	selector: '#callouts h3',
	css: ['.sIFR-root {kerning:true;font-size:14px; text-transform:uppercase;letter-spacing:1;}',
		'a { color:#1b73b2; text-decoration:none;}',
		'a:hover {color:#1b73b2;text-decoration:underline;}'
	]	
});
sIFR.replace(avenir_85_heavy, {
	wmode: 'transparent',
  tuneHeight: '-5',
	selector: 'body#page_news .content .block h4',
	css: ['.sIFR-root {font-size:16px;}',
		'a { color:#000000; text-decoration:none;}',
		'a:hover {color:#000000;text-decoration:underline;}'
	]	
});

sIFR.replace(avenir_95_black, {
	wmode: 'transparent',
	selector: '#page_bsii .content h4',
  tuneHeight: '-5',
	css: '.sIFR-root {kerning:true; color:#1c76b7; font-size:14px;text-transform:uppercase;}'
});
/*

#recent .block h4.block_header
#callout_technology h3
*/
/*
sIFR.replace(gotham_book, {
	wmode: 'transparent',
  selector: '#nav_sub li.normal',
	tuneHeight: '-3',
	css: ['.sIFR-root {font-size:11px; text-transform:uppercase; color: #FEB000; background-color:transparent;letter-spacing: 1;kerning: true; }',
		'a { color: #FEB000;text-transform:uppercase;}',
		'a:link { color: #FEB000; text-decoration:none; text-transform:uppercase; line-height:1.2em; background: transparent url(/img/right_arrow.png) no-repeat scroll 30px center; }',
		'a:hover { color: #ce5a05; text-decoration:underline;}',
	]
});
sIFR.replace(gotham_bold, {
	wmode: 'transparent',
  selector: '#nav_sub li.here',
	tuneHeight: '-3',
	css: ['.sIFR-root {font-size:11px; text-decoration:none;text-transform:uppercase; font-weight:bold;color: #000; background-color:transparent;letter-spacing: 1;kerning: true; }',
		'a {color: #83869d;font-weight:bold; text-decoration:none;}',
		'a:hover { color: #83869d; font-weight:bold; text-decoration:none;}',
	]
});

sIFR.replace(gotham_bold, {
	wmode: 'transparent',
	selector: 'p.page_overview, div.page_overview p',
	css: '.sIFR-root {color:#879DAA; font-size:14px;leading: 7;}'
});

sIFR.replace(gotham_bold, {
	wmode: 'transparent',
	selector: '#main_column h2',
	css: '.sIFR-root {color:#FEB000; font-size:26px; leading: 3;}',
});

sIFR.replace(gotham_bold, {
	wmode: 'transparent',
	selector: '#sub_content h3',
	css: '.sIFR-root {color:#ffffff; font-size:20px; leading: 3;}',
});


sIFR.replace(gotham_book, {
	wmode: 'transparent',
	selector: '#sub_content h4',
	css: '.sIFR-root {color:#FFC20E; font-size:16px; leading: 3;}',
});

sIFR.replace(gotham_black, {
	wmode: 'transparent',
	selector: '.block h4',
	css: '.sIFR-root {color:#ce5a05; font-size:14px; letter-spacing: 1; text-transform: uppercase; leading: 3;}',
});
*/
