﻿var cufonItems_replacementElements = [
".hdtpbx h1",
".subhdltcol h1",
".hdtpbx h2",
"#progbarcont h2",
".hdtpbx h3",
".TitleHeading h1",
"#hmcont h1",
"#hmbd h1",
"#hmbd h2",
"#hmcont li",
"#hmlwcont li a",
"#hmlwltadbx .subbx .rtcol p",
"#hmlwrtcol .loginWrapper h2",
"#hmlwltadbx h2",
"#hmbd #midrtbx li",
"#hmlwrtcol .subbx .adnum",
"#hmlwrtcol .subbx h4",
"#hmlwrtcol .subbx h5",
"#adcont.ip h2 a",
"#adcont.ip #phchadbx .subbx h4",
"#adcont.ip #phchadbx .subbx h5",
"#adcont.ip #phchadbx .subbx .adnum",
"#registrationTitle h1",
".bgtxtbx h2",
"#maincont h1",
".popbx h3",
"#regltcol h2",
".locsubhdbx h2",
"#mnphrtcol h2",
"#chhdcont #chltcol h1",
".chtxtbx h2",
".chtbxcolcont.subch h3",
".rhsadcont h3",
".rhsadcont h4",
".adhdnum",
".ltadnum",
"#noresbx h2",
"#noresbx p",
".chatpopbx h3",
".tx #chhdcont #chrtcol h2",
".proferror h3",
".proferror p",
".txtchhdbx h2",
".txtchrtcol #telnumbx #telnumtxt",
".sb .chhdsec #midrtbx li",
".vpopbxhd h2",
".vpopbxhd h3"
];

if(jQuery){
	// jQuery loaded
	if ($.browser.msie && parseInt($.browser.version, 10) == 7)
	{
		// Remove problematic items for IE7
		cufonItems_replacementElements = 
		jQuery.grep(cufonItems_replacementElements,
			function(value) {
				return value != ".chtxtbx h2";
			});
	}
}

function replaceCufonItems() {
	try {
		//Cufon styles
		if (typeof (Cufon) != 'undefined' && Cufon != null) {
			Cufon.replace(cufonItems_replacementElements);
		}
	} catch (error) {
		if (typeof (errorHandler) != 'undefined') {
			errorHandler(error, "cufon-items.js", null);
		}
	}
}

// Call replacement on page load
replaceCufonItems();
