var oxford = {
    src: '/scripts/sIFR/fonts/oxford.swf',
	ratios: [8,1.41,10,1.33,14,1.31,16,1.26,20,1.27,24,1.26,25,1.24,26,1.25,35,1.24,42,1.23,45,1.22,46,1.23,67,1.22,1.21]
};

var p22_grenville = {
    src: '/scripts/sIFR/fonts/p22_grenville.swf',
	ratios: [7,1.58,8,1.48,10,1.5,14,1.45,17,1.43,20,1.41,23,1.4,29,1.39,38,1.38,40,1.37,43,1.38,58,1.37,63,1.36,64,1.37,66,1.36,67,1.37,106,1.36,107,1.35,109,1.36,110,1.35,112,1.36,113,1.35,114,1.36,118,1.35,119,1.36,121,1.35,122,1.36,124,1.35,1.36]
};

sIFR.activate(oxford, p22_grenville);

// Setup some misc options
sIFR.useStyleCheck = true;
sIFR.fitExactly = true;
sIFR.forceClear = true;
sIFR.repaintOnResize = true;

// To get ratios for each font use the following code
//sIFR.debug.ratios({src: '/scripts/sIFR/fonts/p22_grenville.swf', selector: 'h1' });

/* Replace our top menu links */
sIFR.replace(oxford, {
	selector: '.menu_item',
	css: [
		'.sIFR-root { color: #421e0f; font-size: 12px; }',
		'a { text-decoration: none; }',
		'a:link { color: #421e0f; }',
		'a:hover { color: #b34b1e; }'
	],
	forceSingleLine: true,
	transparent: true
});

/* Replace all H1 tags */
sIFR.replace(p22_grenville, {
	selector: 'h1',
	css: [
		'.sIFR-root { color: #b34b1e; font-size: 41px; }'
	],
	offsetTop: 20,
	tuneHeight: 20,
	tuneWidth: 15,
	transparent: true
});

/* Replace oxford text */
sIFR.replace(oxford, {
	selector: '.oxford',
	css: [
		'.sIFR-root { color: #421e0f; font-size: 12px; }',
		'a { text-decoration: none; }',
		'a:link { color: #421e0f; }',
		'a:hover { color: #b34b1e; }'
	],
	transparent: true
});