var lola = { src: path_to_sifr };
sIFR.activate(lola);

/**
 * Why HBF? Campaign
 * Added by Tundra 
 * Last Modified: 21/03/2011
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div#mainContent div.switchIntro h1',
	css: '.sIFR-root { color: #0044a2; font-weight: bold; }',
	tuneHeight: -5
});
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div#mainContent div.switchIntro p',
	css: '.sIFR-root { color: #afafaf; font-style: italic; font-weight: bold; }',
	tuneHeight: -4
});

sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div#mainContent ul#whyHBFMenu li div.snippet h3',
	css: '.sIFR-root { color: #ffffff; font-weight: bold; }',
	tuneHeight: -4
});
/* end Tundra amends */

/**
 * Hospital Tour Pages
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'body.hospital-tour div.mainBox h2',
	css: '.sIFR-root { color: #FFFFFF; font-weight: bold; }',
	tuneHeight: -5
});

sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'body.hospital-tour div.hospitalBox h1 ',
	css: '.sIFR-root { color: #FFFFFF; font-weight: bold; }',
	tuneHeight: -5
});


sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'body.hospital-tour div.contactBox h2',
	css: '.sIFR-root { color: #333333; font-weight: bold; }',
	tuneHeight: -5
});

sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'body.hospital-tour h2',
	css: '.sIFR-root { color: #00B1B0; font-weight: bold; }',
	tuneHeight: -5
});



/**
 * Product pages
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div.product h1',
	css: '.sIFR-root { color: #FFFFFF; }',
	tuneHeight: -5
});

sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div.product div.priceInfo h2',
	css: '.sIFR-root { color: #666666; font-weight: bold; }',
	tuneHeight: -5
});

/**
 * Provider Registration page
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div#providerBox h2, div#calcBox h2',
	css: '.sIFR-root { color: #FFFFFF; font-weight: bold; }',
	tuneHeight: -5
});

/**
 * 404 error page
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div.error404Container h1 ',
	css: '.sIFR-root { color: #333333; text-align: right;}',
	tuneHeight: -5
});

/**
 * Vanilla template
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div#mainContent h1, div#mainContent div.h1 ',
	css: '.sIFR-root { color: #333333; }',
	tuneHeight: -5
});

sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div.modulesInverted h2, div.modulesProduct h2',
	css: '.sIFR-root { color: #FFFFFF; font-weight: bold; }',
	tuneHeight: -4
});


/**
 * Sitemap headings
 */
sIFR.replace(lola, {
		wmode: 'transparent',
		selector: 'body.info div.section h2',
		css: '.sIFR-root { color: #333333; font-weight: bold; } .sIFR-root a { color: #333333; text-decoration: none; } .sIFR-root a:hover { color: #333333; }',
		tuneHeight: -5
	});




/**
 * Contact Us
 * H2 in expander
 */
 sIFR.replace(lola, {
		wmode: 'transparent',
		selector: 'div.section h2',
		css: '.sIFR-root { color: #333333; font-weight: bold; }',
		tuneHeight: -5,
		onRelease: function(i)
		{
			var grandParent = ($(i.getAncestor()).parent());
			$(grandParent).children('p.expand').eq(0).click();
		}
	});


function replaceH2()
{
	sIFR.replace(lola, {
		wmode: 'transparent',
		selector: 'div#mainContent h2',
		css: '.sIFR-root { color: #333333; font-weight: bold; } .sIFR-root a { color: #333333; text-decoration: none; } .sIFR-root a:hover { color: #333333; }',
		tuneHeight: -5
	});
}

replaceH2();

/**
 * Homepage
 */
sIFR.replace(lola, {
	wmode: 'transparent',
	selector: 'div.module h2',
	css: '.sIFR-root { font-weight: bold; color: #333333; }',
	tuneHeight: -5
});
