var rootpath = document.getElementsByTagName('link')[0].getAttribute('href').replace(/css\/\w+\/global\.css/i,'');
var mic_regular = {
  src: rootpath + 'Flash/mic_regular.swf'
};
var mic_bold = {
  src: rootpath + 'Flash/mic_bold.swf'
};
var agg_bold = {
  src: rootpath + 'Flash/agg_bold.swf'
};
var rw_regular = {
  src: rootpath + 'Flash/rw_regular.swf'
};
sIFR.activate(mic_regular, mic_bold, agg_bold, rw_regular);

// PAGE TITLES
sIFR.replace(mic_regular, {
  selector: '.saca h1.pagetitle'
  ,css: [
  '.sIFR-root {color: #c60000; leading: 0px; margin: 0; padding: 0; font-weight: normal;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(agg_bold, {
    selector: '.redbacks h1.pagetitle'
  , css: [
  '.sIFR-root {color: #de0000; leading: 0px; margin: 0; padding: 0; font-weight: normal;}'
  ]
  , wmode: 'transparent'
});

sIFR.replace(mic_regular, {
  selector: '.oval h1.pagetitle'
  ,css: [
  '.sIFR-root {color: #193682; leading: 0px; margin: 0; padding: 0; font-weight: normal;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(rw_regular, {
    selector: '.functions h1.pagetitle'
  , css: [
  '.sIFR-root {color: #8b2346; leading: 0px; margin: 0; padding: 0; font-weight: normal;}'
  ]
  , wmode: 'transparent'
});

// PANEL TITLES
sIFR.replace(mic_bold, {
  selector: '.saca h2.panel-title'
  ,css: [
  '.sIFR-root {color: #c60000; leading: 0px; margin: 0; padding: 0; font-weight: bold; text-transform: uppercase;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(agg_bold, {
    selector: '.redbacks .con-supp-1 h2.panel-title'
  , css: [
  '.sIFR-root {color: #000000; leading: 0px; margin: 0; padding: 0; font-weight: bold; text-transform: uppercase;}'
  ]
  , wmode: 'transparent'
});
sIFR.replace(agg_bold, {
    selector: '.redbacks h2.panel-title,.redbacks .mod-latest-video h2,.redbacks .con-supp-2 h2'
  , css: [
  '.sIFR-root {color: #de0000; leading: 0px; margin: 0; padding: 0; font-weight: bold; text-transform: uppercase;}'
  ]
  , wmode: 'transparent'
});


sIFR.replace(mic_bold, {
  selector: '.oval .con-supp-2 h2.panel-title'
  ,css: [
  '.sIFR-root {color: #ffffff; leading: 0px; margin: 0; padding: 0; font-weight: bold; text-transform: uppercase;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(rw_regular, {
    selector: '.functions .con-supp-2 h2.panel-title, .functions h2.panel-title, .functions .con-supp-2 h2, .functions .mod-latest-video h2'
  , css: [
  '.sIFR-root {color: #666666; leading: 0px; margin: 0; padding: 0; font-weight: normal;}'
  ]
  , wmode: 'transparent'
});

sIFR.replace(mic_bold, {
  selector: '.oval h2.panel-title'
  ,css: [
  '.sIFR-root {color: #193682; leading: 0px; margin: 0; padding: 0; font-weight: bold; text-transform: uppercase;}'
  ]
  ,wmode: 'transparent'
});


