/* ########################################################################### *
/* ***** ECLIPSE GROUP  ****************************************************** *
/* ########################################################################### *
 * ##### DOCUMENT NAME:  custom_typography.js
 * ##### DOCUMENT INFO: 
 * ##### Original v1.0: 16/01/08 (George Hiley, Eclipse Group)
/* ########################################################################### *

/* ########################################################################### *
/* ***** INDEX *************************************************************** *
/* ########################################################################### *
/* ##### TYPOGRAPHY
/* ########################################################################### */

//////////////////
// TYPOGRAPHY
// NB: custom.js should be included after this function is declared.
//////////////////
function ecl_init_typography()
{
	if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac)
	{
		//sIFR.setup(); // set to setup for prod
		//sIFR.debug();
		sIFR.replaceElement(".content h1", named({sFlashSrc: ecl_sifr_font, nPaddingBottom:20, sColor: "#333333", sFlashVars: 'name=header', sWmode: "opaque"}));
		sIFR.replaceElement(".homePage .rightColumn h1", named({sFlashSrc: ecl_sifr_font, nPaddingBottom:20, sColor: "#333333", sFlashVars: 'name=header', sWmode: "opaque"}));	

		// Do not replace h2 elements on the home page
		if ($(".homePage").length == 0)
		{
			sIFR.replaceElement(".rightColumn h2", named({sFlashSrc: ecl_sifr_font, nPaddingTop:0, sColor: "#000000", sFlashVars: 'name=header', sWmode: "opaque"}));	
		}
	};
}