var narrowband = {src: '/fonts/narrowbandprime.swf'};
var baskerville = {src: '/fonts/newbaskerville.swf'};


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

sIFR.replace(narrowband, {
selector: '.leader h1, body.page #pri h1'
,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
,transparent: 'true'
,css: [
  '.sIFR-root { color:#64696a; background-color:#ffffff; font-size:62px; font-weight:normal; }'
  ,'a {  color:#64696a; text-decoration:none; }'
  ,'a:link {  color:#64696a; text-decoration:none; }'
  ,'a:hover {  color:#000000; text-decoration:none; }'
  ,'a:active {  color:#64696a; text-decoration:none; }'
  ,'a:visited {  color:#64696a; text-decoration:none; }'
]
});

sIFR.replace(narrowband, {
selector: '.story h1 span'
,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
,transparent: 'true'
,fitExactly: 'true'
,offsetTop:-6
,css: [
  '.sIFR-root { color:#64696a; background-color:#ffffff; font-size:62px; font-weight:normal; }'
]
});

sIFR.replace(narrowband, {
selector: '.morestories h4'
,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
//,ratios: [6, 1.53, 7, 1.38, 8, 1.3, 10, 1.24, 11, 1.15, 12, 1.12, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
,transparent: 'true'
//,tuneHeight:-10
,css: [
  '.sIFR-root { color:#64696a; background-color:#ffffff; font-size:48px; font-weight:normal; }'
  ,'a {  color:#64696a; text-decoration:none; }'
  ,'a:link {  color:#64696a; text-decoration:none; }'
  ,'a:hover {  color:#000000; text-decoration:none; }'
  ,'a:active {  color:#64696a; text-decoration:none; }'
  ,'a:visited {  color:#64696a; text-decoration:none; }'
]
});

sIFR.replace(baskerville, {
selector: '#pri .pullquote p'
,ratios: [11, 1.13, 14, 1.05, 18, 1.03, 24, 1.02, 44, 1, 68, 0.98, 113, 0.97, 116, 0.96, 119, 0.97, 120, 0.96, 0.97]
,transparent: 'true'
,css: [
  '.sIFR-root { color:#ffffff; background-color:#000000; font-size:20px; font-weight:normal; font-style:italic; }'
  ,'em { color:#77a732; font-style:italic; }'
]
})

