var rootpath = document.getElementsByTagName('link')[0].getAttribute('href').replace(/css\/global\.css/i,'');
var apexstlight = {
  src: rootpath + 'flash/apexst-light.swf'
};
var apexstmedium = {
  src: rootpath + 'flash/apexst-medium.swf'
};

sIFR.activate(apexstlight,apexstmedium);

sIFR.replace(apexstmedium, {
  selector: '.client h1'
  ,css: [
  '.sIFR-root {color: #000000; leading: 5px; margin: 0; padding: 0;  text-transform: uppercase;}'
  ]
  ,wmode: 'transparent'
  ,offsetTop: 4
});

sIFR.replace(apexstmedium, {
  selector: 'h1'
  ,css: [
  '.sIFR-root {color: #ffffff; leading: 5px; margin: 0; padding: 0;  text-transform: uppercase;}'
  ]
  ,wmode: 'transparent'
  ,offsetTop: 4
});

sIFR.replace(apexstmedium, {
  selector: '.default h2'
  ,css: [
  '.sIFR-root {color: #ee4611; leading: 5px; margin: 0; padding: 0;  text-transform: uppercase;}',
  '.sIFR-root {color: #ee4611; leading: 8px; margin: 0; padding: 0; font-weight: normal;}',
    'a { color: #ee4611; text-decoration: none; }',
    'a:hover { color: #ee4611; text-decoration: none; }',
    'em {color: #666666; font-style: normal; font-weight: bold;}'
  ]
  ,wmode: 'transparent'
  ,offsetTop: 4
});

sIFR.replace(apexstlight, {
  selector: '.default .large-text'
  ,css: [
    '.sIFR-root {color: #ffffff; leading: 8px; margin: 0; padding: 0; font-weight: normal;}',
    'a { color: #ffffff; text-decoration: none; }',
    'a:hover { color: #ffffff; text-decoration: none; }',
    'em {color: #ee4611; font-style: normal; font-weight: bold;}'

  ]
  ,wmode: 'transparent'
  ,offsetTop: 3
});

sIFR.replace(apexstlight, {
  selector: '.client .large-text'
  ,css: [
    '.sIFR-root {color: #333333; leading: 8px; margin: 0; padding: 0; font-weight: normal;}',
    'a { color: #ff0000; text-decoration: none; }',
    'a:hover { color: #ff0000; text-decoration: none; }'

  ]
  ,wmode: 'transparent'
  ,offsetTop: 3
});

sIFR.replace(apexstlight, {
  selector: '.large-text'
  ,css: [
    '.sIFR-root {color: #cccccc; leading: 8px; margin: 0; padding: 0; font-weight: normal;}',
    'a { color: #ee4611; text-decoration: none; }',
    'a:hover { color: #ff9900; text-decoration: none; }'
  ]
  ,wmode: 'transparent'
  ,offsetTop: 3
});

sIFR.replace(apexstmedium, {
  selector: '.blogpost .title-wrapper h2'
  ,css: [
  '.sIFR-root {color: #ee4611; leading: 5px; margin: 0; padding: 0;}',
  'a { color: #ee4611; text-decoration: none; }',
  'a:hover { color: #ff9900; text-decoration: none; }'
  ]
  ,wmode: 'transparent'
  ,offsetTop: 4
});
