//
// SIFR replacement function
function renderSubFonts() {
	var titleFontArial = { src: 'scripts/arial.swf' };
	sIFR.activate(titleFontArial);

	sIFR.replace(titleFontArial, {
		selector: '#primary .boxed h3',
		css: [
		'.sIFR-root { font-weight: bold; color: #003366; }',
		],
		wmode: 'transparent'
	});

	sIFR.replace(titleFontArial, {
		selector: '#primary h2',
		css: [
		'.sIFR-root { font-weight: bold; color: #003366; }',
		],
		wmode: 'transparent'
	});

	sIFR.replace(titleFontArial, {
		selector: '#primary .forumTitle h3',
		css: [
		'.sIFR-root { font-weight: bold; color: #ffffff; }',
		],
		wmode: 'transparent'
	});

	sIFR.replace(titleFontArial, {
		selector: '#primary h3',
		css: [
		'.sIFR-root { font-weight: bold; color: #cc0033; }',
		],
		wmode: 'transparent'
	});
}
function renderFonts() {
	var titleFontMarydale = { src: 'scripts/marydale.swf' };
	sIFR.activate(titleFontMarydale);

	sIFR.replace(titleFontMarydale, {
		selector: '#primary .intro h2',
		css: [
		'.sIFR-root { color: #ffffff; }',
		],
		wmode: 'transparent'
	});
	
	sIFR.replace(titleFontMarydale, {
		selector: '#primary .note h3, #expertBack h3, #primary .iNetsIntroHome h4',
		css: [
		'.sIFR-root { color: #cc0033; }',
		],
		wmode: 'transparent'
	});

	sIFR.replace(titleFontMarydale, {
		selector: '#header h3',
		css: [
		'.sIFR-root { color: #64879e; }',
		],
		wmode: 'transparent'
	});
	
	var prefix = document.location.protocol;
	if (prefix.indexOf("http:")!= -1) {
		renderSubFonts();
	}

}
renderFonts();