var GillSans = {
  src: 'http://www.abo.org.uk/sIFR3-beta2/GillSans.swf'
};

sIFR.activate(GillSans);

sIFR.replace(GillSans, {
	selector: 'h1.purple,h2.purple,h3.purple,h4.purple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#9d3397; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.darkpurple,h2.darkpurple,h3.darkpurple,h4.darkpurple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#864f90; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pink,h2.pink,h3.pink,h4.pink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ea4e98; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.green,h2.green,h3.green,h4.green',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#00a650; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.lightpurple,h2.lightpurple,h3.lightpurple,h4.lightpurple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#bf3e9b; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.blue,h2.blue,h3.blue,h4.blue',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#67abd0; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.mediumblue,h2.mediumblue,h3.mediumblue,h4.mediumblue',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#2f6798; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.red,h2.red,h3.red,h4.red',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#d8220c; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.mediumpink,h2.mediumpink,h3.mediumpink,h4.mediumpink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#bf4180; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.darkpink,h2.darkpink,h3.darkpink,h4.darkpink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#993365; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.white,h2.white,h3.white,h4.white',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:none; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.black,h2.black,h3.black,h4.black',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#000000; font-weight:bold; background:none; text-align:left; }'
	]
});


//Page Header are below!
sIFR.replace(GillSans, {
	selector: 'h1.pageheader-mediumblue,h2.pageheader-mediumblue,h3.pageheader-mediumblue,h4.pageheader-mediumblue',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#2F6798; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-purple,h2.pageheader-purple,h3.pageheader-purple,h4.pageheader-purple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#9d3397; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-darkpurple,h2.pageheader-darkpurple,h3.pageheader-darkpurple,h4.pageheader-darkpurple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#864f90; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-green,h2.pageheader-green,h3.pageheader-green,h4.pageheader-green',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#00a650; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-pink,h2.pageheader-pink,h3.pageheader-pink,h4.pageheader-pink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#ea4e98; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-lightpurple,h2.pageheader-lightpurple,h3.pageheader-lightpurple,h4.pageheader-lightpurple',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#bf3e9b; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-blue,h2.pageheader-blue,h3.pageheader-blue,h4.pageheader-blue',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#67abd0; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-red,h2.pageheader-red,h3.pageheader-red,h4.pageheader-red',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#d8220c; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-mediumpink,h2.pageheader-mediumpink,h3.pageheader-mediumpink,h4.pageheader-mediumpink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#bf4180; text-align:left; }'
	]
});

sIFR.replace(GillSans, {
	selector: 'h1.pageheader-darkpink,h2.pageheader-darkpink,h3.pageheader-darkpink,h4.pageheader-darkpink',
	wmode: 'transparent',
	css: [
		'.sIFR-root { color:#ffffff; font-weight:bold; background:#003365; text-align:left; }'
	]
});
