/*****************************************************************************
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 newsGothic = { src: '/flash/newsGothic.swf' };

sIFR.activate(newsGothic);

function resetMovie(fi)
{
	// JQUERY CHECK BROWSER VERSION - IF IE9 BROWSER THEN RESET FLASH MOVIE //
	if(jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 9 )
	{
		fi.resetMovie();
	}
}

// Homepage sIFR styles
sIFR.replace(newsGothic, {
  onReplacement: function(fi){resetMovie(fi);},
  selector: '#homepage .homeFeatured h2'
  ,css: '.sIFR-root { color:#ffffff;  }'
  ,wmode: 'transparent'
  ,offsetTop: -3
  ,tuneHeight: -9
});
sIFR.replace(newsGothic, {
  onReplacement: function(fi){resetMovie(fi);},
  selector: '#homepage h2'
  ,css: '.sIFR-root { color:#169c9f;  }'
  ,wmode: 'transparent'
  ,offsetTop: -3
  ,tuneHeight: -9
});

// Lower page sIFR styles
sIFR.replace(newsGothic, {
  onReplacement: function(fi){resetMovie(fi);},
  selector: '#title h1'
  ,css: '.sIFR-root { color:#ffffff;  }'
  ,wmode: 'transparent'
  ,offsetTop: -7
  ,tuneHeight: -12
});

sIFR.replace(newsGothic, {
  onReplacement: function(fi){resetMovie(fi);},
  selector: '.content h2'
  ,css: '.sIFR-root { color:#51adaf;  }'
  ,wmode: 'transparent'
  ,offsetTop: -3
  ,tuneHeight: -8
});

sIFR.replace(newsGothic, {
  onReplacement: function(fi){resetMovie(fi);},
  selector: '#subContent h4'
  ,css: '.sIFR-root { color:#636363;  }'
  ,wmode: 'transparent'
  ,offsetTop: -3
  ,tuneHeight: -9
});


