var DINMedium = {
    src: '/Content/swf/DINMedium.swf',
    ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

var DINRegular = {
    src: '/Content/swf/DINRegular.swf',
    ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

var DINBlack = {
    src: '/Content/swf/DINBlack.swf',
    ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

var Section = 'default';

if ($('#Live').length) {
    Section = 'live'
}

if ($('#Promote').length) {
    Section = 'promote'
}

if ($('#Invest').length) {
    Section = 'invest'
}

if ($('#Option').length) {
    Section = 'option'
}

if ($('#Visit').length) {
    Section = 'visit'
}

//switcher for fact styles depending on body ID
switch (Section) {

case 'invest':
    sIFR.replace(DINMedium, {
        selector: '#Invest p.blockquote-heading',
        offsetTop: '-6',
        tuneHeight: '-10',
        wmode: 'transparent',
        css: ['.sIFR-root { color: #ffffff; font-weight: bold; leading: -2; }', 'strong { color: #cdde54; }']
    });
    break;

default:
    sIFR.replace(DINMedium, {
        selector: 'p.blockquote-heading',
        offsetTop: '-6',
        tuneHeight: '-10',
        wmode: 'transparent',
        css: ['.sIFR-root { color: #ffffff; font-weight: bold; leading: -2 }', 'strong { color: #ffffff; }']
    });

}

//switcher for intro paragraph depending on body ID
switch (Section) {

case 'live':
    sIFR.replace(DINRegular, {
        selector: '#Live p.intro'
    , offsetTop: '-5'
	, tuneHeight: '-8'
	, wmode: 'transparent'
	, css: [
      '.sIFR-root { color: #04241b; font-weight: normal; leading: 2 }'
      , 'strong { color: #04241b; }'
	  , 'a { color: #F27527; text-decoration: none }'
	  , 'a:hover { color: #F27527; text-decoration: underline }'
    ]
    });
    break;

case 'promote':
    sIFR.replace(DINRegular, {
        selector: '#Promote p.intro'
    , offsetTop: '-5'
	, tuneHeight: '-8'
	, wmode: 'transparent'
	, css: [
      '.sIFR-root { color: #04241b; font-weight: normal; leading: 2 }'
      , 'strong { color: #04241b; }'
	  , 'a { color: #D71C40; text-decoration: none }'
	  , 'a:hover { color: #D71C40; text-decoration: underline }'
    ]
    });
    break;

case 'visit':
    sIFR.replace(DINRegular, {
        selector: '#Visit p.intro'
    , offsetTop: '-5'
	, tuneHeight: '-8'
	, wmode: 'transparent'
	, css: [
      '.sIFR-root { color: #04241b; font-weight: normal; leading: 2 }'
      , 'strong { color: #04241b; }'
	  , 'a { color: #6D2A89; text-decoration: none }'
	  , 'a:hover { color: #6D2A89; text-decoration: underline }'
    ]
    });
    break;

default:
   sIFR.replace(DINRegular, {
    selector: 'p.intro'
    , offsetTop: '-5'
	, tuneHeight: '-8'
	, wmode: 'transparent'
	, css: [
      '.sIFR-root { color: #04241b; font-weight: normal; leading: 2 }'
      , 'strong { color: #04241b; }'
	  , 'a { color: #6BC9C1; text-decoration: none }'
	  , 'a:hover { color: #6BC9C1; text-decoration: underline }'
    ]
});

}

//News feed header on homepage
sIFR.replace(DINBlack, {
    selector: '#Option .news-feed h3',
offsetTop: '-3',
tuneHeight: '-10',
    wmode: 'transparent',
    css: ['.sIFR-root { color: #e61e45; font-weight: bold; font-size:2em; }', 'strong { color: #e61e45; }']
});

sIFR.useStyleCheck = true;
sIFR.activate(DINMedium, DINRegular, DINBlack);
