var archerLight = {
  src: '/flash/archer_light_2.swf'
  ,ratios: [6, 0.92, 10, 0.96, 15, 1.05, 20, 1.1, 25, 1.12, 30, 1.14, 40, 1.15, 50, 1.16, 70, 1.17, 74, 1.18, 75, 1.17, 110, 1.18, 111, 1.19, 115, 1.18, 119, 1.19, 120, 1.18, 124, 1.19, 1.18]
};

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
sIFR.useStyleCheck = true;

// Yes there is repeated code here (just for a colour change), but sIFR doesn't currently allow inheritance like in CSS

var wmodeOption = jQuery.browser.msie ? 'transparent' : null;
//var wmodeOption = 'wmode: transparent';

// Primary navigation

sIFR.replace(archerLight, {
  selector: 'ul#navigation li.selected'
  ,css: [
		'.sIFR-root { background-color: #013667; }'
    ,'a { color: #ffffff; text-decoration: underline; text-align: center; }'
	  ,'a:hover { color: #ffffff; text-decoration: underline; }'
  ]
  ,wmode: wmodeOption
});

sIFR.replace(archerLight, {
  selector: 'ul#navigation li'
  ,css: [
		'.sIFR-root { background-color: #013667; }'
    ,'a { color: #ffffff; text-decoration: none; text-align: center; }'
	  ,'a:hover { color: #ffffff; text-decoration: underline; }'
  ]
  ,wmode: wmodeOption
});

// General headings

function applyGeneralHeadings() {
// This function is used to force some hidden sifr headings to be visible after a javascript has been triggered, eg: On the House signup panel, Nutrition Top tips
  
	  sIFR.replace(archerLight, {
        selector: '#banner div.intro_content dt.faded'
  , css: [
    '.sIFR-root { color: #D3C4A3; }'
    ,'a { color: #D3C4A3; text-decoration: none; }'
	  ,'a:hover { color: #D3C4A3; text-decoration: underline; }'
  ]
  ,wmode: 'transparent'
    });	

    sIFR.replace(archerLight, {
        selector: '#content h3, #content h4, #banner div.intro_content dt, div.signup_panel h3'
  , css: [
    '.sIFR-root { color: #013667; }'
    ,'a { color: #013667; text-decoration: none; }'
	  ,'a:hover { color: #013667; text-decoration: underline; }'
  ]
  ,wmode: 'transparent'
    });
}
applyGeneralHeadings(); 

// Footer links

sIFR.replace(archerLight, {
  selector: '#footer ul.columns h2'
  ,css: [
  	'.sIFR-root { background-color: #F5F5F5; color: #777777; }'
  ]
  , wmode: 'transparent'
});

// Footer links

sIFR.replace(archerLight, {
  selector: 'tr.type th'
  ,css: [
  	'.sIFR-root { color: #013667; }'
  ]
  , wmode: 'transparent'
});

sIFR.activate(archerLight);
