var avenir = {
  src: 'avenir-med.swf'
  ,ratios:[8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22]
  };
  
var fontin = {
  src: 'fontin-sans.swf'
  ,ratios:[7, 1.32, 8, 1.31, 12, 1.27, 16, 1.22, 22, 1.2, 28, 1.19, 30, 1.17, 31, 1.18, 39, 1.17, 44, 1.16, 45, 1.17, 54, 1.16, 60, 1.15, 61, 1.16, 96, 1.15, 97, 1.14, 100, 1.15, 101, 1.14, 103, 1.15, 104, 1.14, 107, 1.15, 112, 1.14, 113, 1.15, 119, 1.14, 120, 1.15, 1.14]
  };

sIFR.useStyleCheck = true;
sIFR.activate(avenir,fontin);

/*sIFR.debug.ratios({ src: 'fontin-sans.swf', selector: 'h1' });*/

sIFR.replace(fontin, {
    selector: 'h2.green'
	,css: [
      '.sIFR-root {text-align: left; color: #3d9512;}'
	  ,'a {color: #3d9512; text-decoration:none;}'
	  ,'a:hover {color: #3d9512; text-decoration:none;}'
    ]
	,wmode: 'transparent'
  }); 

sIFR.replace(avenir, {
    selector: '.portfolio_preview h2'
	,css: [
      '.sIFR-root {text-align: right; color: #800000;}'
	  ,'a {color: #800000; text-decoration:none;}'
	  ,'a:hover {color: #800000; text-decoration:none;}'
    ]
	,wmode: 'transparent'
  }); 

sIFR.replace(fontin, {
    selector: 'h2, .col_2_cont h3'
	,css: [
      '.sIFR-root {text-align: left; color: #800000;}'
	  ,'a {color: #800000; text-decoration:none;}'
	  ,'a:hover {color: #800000; text-decoration:none;}'
    ]
	,wmode: 'transparent'
  }); 
  
sIFR.replace(fontin, {
    selector: 'h1'
	,css: [
      '.sIFR-root {text-align: left;color: #800000; font-weight:bold;letter-spacing:-.5;}'
	  ,'a {color: #800000; text-decoration:none;}'
	  ,'a:hover {color: #800000; text-decoration:none;}'
    ]
	,wmode: 'transparent'
  }); 
