/*****************************************************************************
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.
*****************************************************************************/

// give the path to the font
var gillSans = { src: 'http://images.tvnz.co.nz/tvnz_site_images/flash/gillsans-light.swf' };

// Activate the font
sIFR.activate(gillSans);

// Replacements
sIFR.replace(gillSans, {
  selector: '.cfb h2, #blogPanel h2, #sportsPage h1, #worldPage h1, #videoHighlights h2',
  css: [
			'.sIFR-root { color: #CC3300; }',
			'a { text-decoration: none; }',
			'a:link { color: #CC3300; }',
			'a:hover { color: #CC3300; }'
		],
  wmode: 'transparent'
});

/*sIFR.replace(gillSans, {
  selector: '#latestNews h2',
  css: [
			'.sIFR-root { color: #FFFFFF; }',
			'a { text-decoration: none; }',
			'a:link { color: #FFFFFF; }',
			'a:hover { color: #FFFFFF; }'
		],
  wmode: 'transparent'
});*/
