// Presumes global.css is the first <link> in the page

var rootpath = document.getElementsByTagName('link')[0].getAttribute('href').replace(/css\/global\.css/i,'');

var itclegacysans = {
  src: rootpath + 'flash/itclegacysans.swf'
};

sIFR.prefetch(itclegacysans.swf);
sIFR.activate();


sIFR.replace(itclegacysans, {
  selector: '.section1 h1'
  ,css: [
  '.sIFR-root {color: #678f00;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: '.section2 h1'
  ,css: [
  '.sIFR-root {color: #7e2b97;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: '.section3 h1'
  ,css: [
  '.sIFR-root {color: #e87202;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: '.section4 h1'
  ,css: [
  '.sIFR-root {color: #d41a19;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: '.section5 h1'
  ,css: [
  '.sIFR-root {color: #006973;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: '.section6 h1'
  ,css: [
  '.sIFR-root {color: #ad7129;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(itclegacysans, {
  selector: 'h1'
  ,css: [
  '.sIFR-root {color: #003698;}'
  ]
  ,wmode: 'transparent'
});

 sIFR.replace(itclegacysans, {
    selector: '.pnl-iwant h2, .blue-title h2, .green-title h2, .purple-title h2, .orange-title h2'
    ,css: [
      '.sIFR-root {color: #ffffff; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ffffff; }'
      ,'a:hover { color: #ffffff;}'
    ]
    ,wmode: 'transparent'
  });
  
 
  sIFR.replace(itclegacysans, {
    selector: '.section1 .mod-content h2,.section1 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #678f00; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #678f00; }'
      ,'a:hover { color: #678f00; }'
    ]
    ,wmode: 'transparent'
  }); 
  
  sIFR.replace(itclegacysans, {
    selector: '.section2 .mod-content h2,.section2 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #7e2b97; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #7e2b97; }'
      ,'a:hover { color: #7e2b97; }'
    ]
    ,wmode: 'transparent'
  }); 
  
  sIFR.replace(itclegacysans, {
    selector: '.section3 .mod-content h2,.section3 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #e87202; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #e87202; }'
      ,'a:hover { color: #e87202; }'
    ]
    ,wmode: 'transparent'
  }); 
  
  sIFR.replace(itclegacysans, {
    selector: '.section4 .mod-content h2,.section4 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #d41a19; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #d41a19; }'
      ,'a:hover { color: #d41a19; }'
    ]
    ,wmode: 'transparent'
  }); 

  sIFR.replace(itclegacysans, {
    selector: '.section5 .mod-content h2,.section5 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #006973; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #006973; }'
      ,'a:hover { color: #006973; }'
    ]
    ,wmode: 'transparent'
  }); 

  sIFR.replace(itclegacysans, {
    selector: '.section6 .mod-content h2,.section6 .mod-contentpanel h2'
    ,css: [
      '.sIFR-root {color: #ad7129; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ad7129; }'
      ,'a:hover { color: #ad7129; }'
    ]
    ,wmode: 'transparent'
  });   
  
  sIFR.replace(itclegacysans, {
    selector: 'h2'
    ,css: [
      '.sIFR-root {color: #003698; font-weight: bold; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #003698; }'
      ,'a:hover { color: #003698; }'
    ]
    ,wmode: 'transparent'
  }); 
  
