﻿var path = "http://tryathlon.campaign.com.au/flash/mayfield.swf";
if (location.href.indexOf("weetbix.com.au") > 0)
    path = "http://www.weetbix.com.au/tryathlon/getready/kids/flash/mayfield.swf";
else if (location.href.indexOf("staging1.freestylemedia.com.au/tryathlon") > 0)
    path = "http://staging1.freestylemedia.com.au/tryathlon/tryathlon/getready/kids/flash/mayfield.swf";
else if (location.href.indexOf("kidstryathlon.campaign.com.au/tryathlon") > 0)
    path = "http://kidstryathlon.campaign.com.au/tryathlon/getready/kids/flash/mayfield.swf";
else if (location.href.indexOf("tryathlon/tryathlon") > 0)
    path = "http://red/tryathlon/tryathlon/getready/kids/flash/mayfield.swf";
else if (location.href.indexOf("http://kidstryathlon.campaign.com.au") > 0)
    path = "http://kidstryathlon.campaign.com.au/tryathlon/getready/kids/flash/mayfield.swf";
  
var mayfield = {
src: path
};

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

sIFR.replace(mayfield, {
  selector: 'h1'
  ,css: [
    '.sIFR-root { color:#ed1c24; font-weight:bold; }'
  ],
  wmode: 'transparent'
});

sIFR.replace(mayfield, {
    selector: 'h2'
  , css: [
    '.sIFR-root { color:#ed1b24; font-weight:bold; }'
  ],
    wmode: 'transparent'
});


