/*****************************************************************************
    The sIFR configuration should typically go in `sifr-config.js`, but in order to
    keep the config file clean, and to give a quick overview, it's done here instead.
    *****************************************************************************/
	
	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();
		}
	}
  
    var mainFont = {
      src: '/bradley-hand.swf'
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(mainFont);

    sIFR.replace(mainFont,{ 
 	onReplacement: function(fi){resetMovie(fi);}, 
	selector:'h1',  
	wmode:'transparent',  
	css:['.sIFR-root { color: #004990; }']  

 });  
 
 sIFR.replace(mainFont,{ 
 	onReplacement: function(fi){resetMovie(fi);}, 
	selector:'h4',  
	wmode:'transparent',  
	css:['.sIFR-root { color: #FFFFFF; text-align:center; }',  
	'.sIFR-root a { color: #FFFFFF; text-decoration: none; }',  
	'.sIFR-root a:hover { color: #F1E9E5; text-decoration: none; }',  
	'.sIFR-root a:visited { color: #FFFFFF; text-decoration: none; }']  

 }); 
 
 sIFR.replace(mainFont,{ 
 	onReplacement: function(fi){resetMovie(fi);}, 
	selector:'h5',  
	wmode:'transparent',  
	css:['.sIFR-root { color: #FFFFFF; }',  
	'.sIFR-root a { color: #FFFFFF; text-decoration: none; }',  
	'.sIFR-root a:hover { color: #F1E9E5; text-decoration: none; }',  
	'.sIFR-root a:visited { color: #FFFFFF; text-decoration: none; }']  

 }); 
 
 sIFR.replace(mainFont,{ 
 	onReplacement: function(fi){resetMovie(fi);}, 
	selector:'h6',  
	wmode:'transparent',  
	css:['.sIFR-root { color: #00657A; }']  

 });

	
