﻿var cufonItems_replacementElements = [
".TitleHeading h1",
"#chhdcont #chltcol h1",
".chtxtbx h2",
"#chrtcol h2",
"#chhdcont #chrtcol h3",
".chtbxcolcont.subch h3",
".chatpopbx h3",
"#chhdcont #chrtcol #telnumbx p",
".adhdnum span",
".tx #genpgbycont .txtchhdbx h2",
"#chhdcont #chrtcol h4",
".sbtxthdbx h2",
".sbtxtrtcol  #telnumbx",
"#sbhdcont .sbltcol h1",
"#genpgbycont.faq h2"
];

if (jQuery) {
	// jQuery loaded
	if ($.browser.msie && parseInt($.browser.version, 10) == 7) {
		// Remove problematic items for IE7
		cufonItems_replacementElements = [
			".TitleHeading h1",
			/*"#chhdcont #chltcol h1",
			".chtxtbx h2",
			"#chrtcol h2",
			"#chhdcont #chrtcol h3",*/
			".chtbxcolcont.subch h3",
			".chatpopbx h3",
			/*"#chhdcont #chrtcol #telnumbx p",*/
			".adhdnum span",
			/*".tx #genpgbycont .txtchhdbx h2",
			"#chhdcont #chrtcol h4",*/
			".sbtxthdbx h2"/*,
			".sbtxtrtcol  #telnumbx",
			"#sbhdcont .sbltcol h1",
			"#genpgbycont.faq 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();
