var bodoniBook = {
	src: '/swf/sifr_BodoniBook.swf',
	ratios: [8, 1.3, 11, 1.22, 12, 1.2, 18, 1.19, 23, 1.15, 25, 1.14, 28, 1.13, 39, 1.12, 61, 1.11, 94, 1.1, 95, 1.09, 103, 1.1, 107, 1.09, 110, 1.1, 119, 1.09, 120, 1.1, 1.09],
};

var bodoniBold = {
	src: '/swf/sifr_BodoniBold.swf',
	ratios: [8, 1.3, 11, 1.22, 12, 1.2, 18, 1.19, 23, 1.15, 25, 1.14, 28, 1.13, 39, 1.12, 61, 1.11, 94, 1.1, 95, 1.09, 103, 1.1, 107, 1.09, 110, 1.1, 119, 1.09, 120, 1.1, 1.09],
};

sIFR.useStyleCheck = true;

// activate sIFR:
sIFR.compatMode = true;
sIFR.activate(bodoniBook, bodoniBold);

// example for multiple sifr file setup
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, garamond, rockwell);

// example code to get ratios
//sIFR.debug.ratios({ src: '/path/to/yourFont.swf', selector: 'h1' });

// now we can do the replacements...

//common templates
sIFR.replace(bodoniBold, {
  selector: '#pageTitleWrap h1', wmode: 'transparent', offsetTop:4,
  css: ['.sIFR-root { color:#17394e; letter-spacing:1; }']
});

sIFR.replace(bodoniBold, {
  selector: '#mainContentArea h1', wmode: 'transparent', offsetTop:4,
  css: ['.sIFR-root { color:#275e29; letter-spacing:1; }']
});

sIFR.replace(bodoniBold, {
  selector: '#mainContentArea h2', wmode: 'transparent', offsetTop:4,
  css: ['.sIFR-root { color:#17394e; letter-spacing:1; }']
});

sIFR.replace(bodoniBold, {
  selector: '#prodPreviewName h1', wmode: 'transparent', offsetTop:4,
  css: ['.sIFR-root { color:#ffffff; letter-spacing:1; }']
});
