/* 

Yet another Contribute workaround 
C. puts stuff in temp sub-directories for preview / review. This breaks the 
url to the flash file, which means no headers. This workaround looks for instance of _MMtmp
which appears in both review, and preview urls, then retargets the src appropriately. 

*/
var curURI = location.href;
var regEXP = "_MMtmp";
var resultRegEXP = curURI.search(regEXP)
if(resultRegEXP > 0){
  var news_gothic = {
    src: '../../_flash/news_gothic.swf'
  };
}else{
  var news_gothic = {
    src: '../_flash/news_gothic.swf'
  };
}
sIFR.activate(news_gothic);

sIFR.replace(news_gothic, {
  selector: 'h1.sifr'
  ,ratios:[6,1.22,10,1.21,13,1.23,24,1.25,53,1.26,54,1.27,64,1.26,65,1.27,66,1.26,69,1.27,70,1.26,72,1.27,75,1.26,84,1.27,85,1.26,88,1.27,89,1.26,99,1.27,100,1.26,1.27]
  ,wmode:'transparent'
  ,css: {
    '.sIFR-root': { 
      'background-color': '#FFFFFF',
      'color': '#f35000',
      'font-size': '29px'
    }
  }
});

sIFR.replace(news_gothic, {
  selector: 'h2.sifr'
  ,ratios:[6,1.22,10,1.21,13,1.23,24,1.25,53,1.26,54,1.27,64,1.26,65,1.27,66,1.26,69,1.27,70,1.26,72,1.27,75,1.26,84,1.27,85,1.26,88,1.27,89,1.26,99,1.27,100,1.26,1.27]
  ,wmode:'transparent'
  ,css: {
    '.sIFR-root': { 
      'background-color': '#FFFFFF',
      'color': '#f35000',
      'font-size': '21px'
    }
  }
});

sIFR.replace(news_gothic, {
  selector: 'h3.sifr'
  ,ratios:[6,1.22,10,1.21,13,1.23,24,1.25,53,1.26,54,1.27,64,1.26,65,1.27,66,1.26,69,1.27,70,1.26,72,1.27,75,1.26,84,1.27,85,1.26,88,1.27,89,1.26,99,1.27,100,1.26,1.27]
  ,wmode:'transparent'  
  ,css: {
    '.sIFR-root': { 
      'background-color': '#FFFFFF',
      'color': '#f35000',
      'letter-spacing': -1,
      'font-size': '18px'
    }
  }
});

sIFR.replace(news_gothic, {
  selector: 'h4.sifr'
  ,ratios:[6,1.22,10,1.21,13,1.23,24,1.25,53,1.26,54,1.27,64,1.26,65,1.27,66,1.26,69,1.27,70,1.26,72,1.27,75,1.26,84,1.27,85,1.26,88,1.27,89,1.26,99,1.27,100,1.26,1.27]
  ,wmode:'transparent'  
  ,css: {
    '.sIFR-root': { 
      'background-color': '#FFFFFF',
      'color': '#f35000',
      'letter-spacing': -1,
      'font-size': '16px'
    }
  }
});

/*
sIFR.debug.ratios( {
  src: '../_flash/news_gothic.swf',
  selector: 'h3.sifr'
});
*/
