/*****************************************************************************
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.
*****************************************************************************/

parseSelector.pseudoClasses = {
  'not': function(nodes, selector) {
    var result = [];
    each: for(var i = 0, node; i < nodes.length; i++) {
      node = nodes[i];
      var ignore = parseSelector(selector, node.parentNode);
      for(var j = 0; j < ignore.length; j++) {
        if(ignore[j] == node) continue each;
      }
      result.push(node);
    }
    return result;
  }
}

var KnockoutBlack = { src: '/flash/sifr/KnockoutBlack.swf' };
var KnockoutMedium = { src: '/flash/sifr/KnockoutMedium.swf' };

sIFR.activate(KnockoutMedium);
sIFR.activate(KnockoutBlack);

// sIFR.replace(KnockoutBlack, {
// 	selector: 'div.leftNav ul li ul li span',
// 	wmode: 'transparent',
// 	forceSingleLine: true,
// 	tuneHeight: (-5),
// 	css: [
// 		'.sIFR-root { text-align:right; leading: -11;}',
// 		'a { text-decoration: none; color: #ffffff;}',
// 		'a:link { color: #ffffff;}',
// 		'a:hover { color: #ffffff; text-decoration: underline; }'
// 	]
// });

// sIFR.replace(KnockoutMedium, {
// 	selector: 'div.leftNavHome.secondary ul li span.topNav',
// 	wmode: 'transparent',
// 	fitExactly: true,
// 	forceSingleLine: true,
// 	tuneHeight: (-5),
// 	css: [
// 		'.sIFR-root { leading: -11;}',
// 		'a { text-decoration: none; color: #92CCF4;}',
// 		'a:link { color: #92CCF4;}',
// 		'a:hover { color: #92CCF4; text-decoration: underline; }'
// 	]
// });
// 
// sIFR.replace(KnockoutMedium, {
// 	selector: 'div.leftNavHome ul li span.topNav',
// 	wmode: 'transparent',
// 	fitExactly: true,
// 	forceSingleLine: true,
// 	tuneHeight: (-5),
// 	css: [
// 		'.sIFR-root { leading: -11;}',
// 		'a { text-decoration: none; color: #ffffff;}',
// 		'a:link { color: #ffffff;}',
// 		'a:hover { color: #ffffff; text-decoration: underline; }'
// 	]
// });


// sIFR.replace(KnockoutBlack, {
// 	selector: 'div.leftNav ul li span.topNav',
// 	wmode: 'transparent',
// 	forceSingleLine: true,
// 	tuneHeight: (-5),
// 	css: [
// 		'.sIFR-root { leading: -11;}',
// 		'a { text-decoration: none; color: #000000;}',
// 		'a:link { color: #000000;}',
// 		'a:hover { color: #000000; text-decoration: underline; }'
// 	]
// });

sIFR.replace(KnockoutMedium, {
	selector: 'div.introTextStandard h5 strong',
	wmode: 'transparent',
	fitExactly: true,
	tuneHeight: (-12),
	css: [
		'.sIFR-root { color: #000000; font-size: 34px;}'
	]
});

sIFR.replace(KnockoutMedium, {
	selector: 'div.content h2, div.content h3, div.content h4',
	wmode: 'transparent',
	tuneHeight: (-5),
	fitExactly: true,
	css: [
		'.sIFR-root { color: #000000; leading: -2; }',
		'a { color: #1f8fc4;}',
		'a:hover { color: #1f8fc4;}',
	]
});

sIFR.replace(KnockoutMedium, {
	selector: 'div.content h1',
	wmode: 'transparent',
	tuneHeight: (-5),
	offsetTop: (-2),
	fitExactly: true,
	css: [
		'.sIFR-root { color: #000000; font-size: 40px; leading: -2; }',
		'a { color: #1f8fc4;}',
		'a:hover { color: #1f8fc4;}',
	]
});

sIFR.replace(KnockoutMedium, {
	selector: 'div.secondary h4',
	wmode: 'transparent',
	tuneHeight: (-5),
	fitExactly: true,
	css: [
		'.sIFR-root { color: #000000; font-size: 23px; leading: -2; }',
	]
});

sIFR.replace(KnockoutMedium, {
	selector: 'body#home h5',
	wmode: 'transparent',
	fitExactly: true,
	css: [
		'.sIFR-root { color: #92CCF4; font-size: 22px; }',
		'a { color: #92CCF4;}',
		'a:hover { color: #92CCF4; text-decoration: underline;}',
	]
});




