var font1 = {
    src: 'swf/TheSerifSemiLight.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 font2 = {
    src: 'swf/TheSerifLight.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 font3 = {
    src: 'swf/TheSerifSemiBold.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 font4 = {
    src: 'swf/TheSerifBold.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]
}; 

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
// sIFR.useStyleCheck = true;
sIFR.activate(font1, font2, font3);
  
// HOMEPAGE

sIFR.replace(font1, {
    selector: '.outer_wrapper_home_head h1'
    , wmode: 'transparent'
    , fitExactly: true
    ,css: [
      '.sIFR-root { color:#FFFFFF; height:36px; font-size:36px; font-weight: bold;}'
      ,'a { text-decoration: none; }'
      , 'a:link { color: #FFFFFF; }'
      , 'a:hover { color: #FFFFFF; text-decoration:underline; }'
    ]
});

sIFR.replace(font4, {
    selector: '.home_pane_b h2'
    , wmode: 'transparent'
    , fitExactly: true
    ,css: [
      '.sIFR-root { color:#8A8A8A; height:19px; font-size:19px; font-weight: bold;}'
      ,'a { text-decoration: none; }'
      , 'a:link { color: #8A8A8A; }'
      , 'a:hover { color: #8A8A8A; text-decoration:underline; }'
    ]
});

sIFR.replace(font1, {
    selector: '.home_pane_b .homeIntro'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
      '.sIFR-root { color:#8A8A8A; height:19px; font-size:19px; font-weight: bold; leading: 2;}'
      , 'a { text-decoration: none; }'
      , 'a:link { color: #8A8A8A; }'
      , 'a:hover { color: #8A8A8A; text-decoration:underline; }'
    ]
});

// GENERAL TEMPLATES

sIFR.replace(font1, {
    selector: 'h1'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
      '.sIFR-root { color:#464646; height:42px; font-size:42px; leading: -4; font-weight: bold;}'
      , 'a { text-decoration: none; }'
      , 'a:link { color: #464646; }'
      , 'a:hover { color: #464646; text-decoration:underline; }'
    ]
});


sIFR.replace(font1, {
    selector: '.HotPink .caseStudySmartList li span, .HotPink .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #FA3599; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #FA3599; }'
    , 'a:hover { color: #FA3599; }'
    ]
});

sIFR.replace(font1, {
    selector: '.Black .caseStudySmartList li span, .Black .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #000000; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #000000; }'
    , 'a:hover { color: #000000; }'
    ]
});

sIFR.replace(font1, {
selector: '.Brown .caseStudySmartList li span, .Brown .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #4C2B26; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #4C2B26; }'
    , 'a:hover { color: #4C2B26; }'
    ]
});

sIFR.replace(font1, {
    selector: '.DarkRed .caseStudySmartList li span,  .DarkRed .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #740F32; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #740F32; }'
    , 'a:hover { color: #740F32; }'
    ]
});

sIFR.replace(font1, {
    selector: '.LightRed .caseStudySmartList li span, .LightRed .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #E32E27; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #E32E27; }'
    , 'a:hover { color: #E32E27; }'
    ]
});

sIFR.replace(font1, {
    selector: '.Orange .caseStudySmartList li span,  .Orange .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #FF9B0F; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #FF9B0F; }'
    , 'a:hover { color: #FF9B0F; }'
    ]
});

sIFR.replace(font1, {
    selector: '.Yellow .caseStudySmartList li span,  .Yellow .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #FFB719; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #FFB719; }'
    , 'a:hover { color: #FFB719; }'
    ]
});

sIFR.replace(font1, {
    selector: '.WorkroomGreen .caseStudySmartList li span, .WorkroomGreen .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #B4D23C; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #B4D23C; }'
    , 'a:hover { color: #B4D23C; }'
    ]
});

sIFR.replace(font1, {
    selector: '.GrassGreen .caseStudySmartList li span, .GrassGreen .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #85BF1F; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #85BF1F; }'
    , 'a:hover { color: #85BF1F; }'
    ]
});

sIFR.replace(font1, {
    selector: '.SkyBlue .caseStudySmartList li span, .SkyBlue .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #00B5E2; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #00B5E2; }'
    , 'a:hover { color: #00B5E2; }'
    ]
});

sIFR.replace(font1, {
    selector: '.DarkBlue .caseStudySmartList li span,  .DarkBlue .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #005BA1; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #005BA1; }'
    , 'a:hover { color: #005BA1; }'
    ]
});

sIFR.replace(font1, {
    selector: '.DeepPurple .caseStudySmartList li span, .DeepPurple .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #321455; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #321455; }'
    , 'a:hover { color: #321455; }'
    ]
});

sIFR.replace(font1, {
selector: '.MidPurple .caseStudySmartList li span,  .MidPurple .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #321455; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #321455; }'
    , 'a:hover { color: #321455; }'
    ]
});

sIFR.replace(font1, {
selector: '.DarkGrey .caseStudySmartList li span,  .DarkGrey .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #464646; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #464646; }'
    , 'a:hover { color: #464646; }'
    ]
});

sIFR.replace(font1, {
    selector: '.LightGrey .caseStudySmartList li span,  .LightGrey .caseStudyList li a.caseStudyListLink'
    , wmode: 'transparent'
    , fitExactly: true
    , css: [
    '.sIFR-root { text-align: left; color: #8A8A8A; font-size: 21px; leading: -2; letter-spacing: 0; cursor: pointer; }'
    , 'a { text-decoration: none; }'
    , 'a:link { color: #8A8A8A; }'
    , 'a:hover { color: #8A8A8A; }'
    ]
});
