// these variables are defined dynamically in header.php: left commented as reference
// var SohoStdLight = { src: '/wp-content/themes/veemee/swf/SohoStdLight.swf' };
// var SohoStdReg = { src: '/wp-content/themes/veemee/swf/SohoStdReg.swf' };
// var AauxProMed = { src: '/wp-content/themes/veemee/swf/AauxProMed.swf' };

sIFR.useStyleCheck = true;
sIFR.activate(SohoStdLight, SohoStdReg, AauxProMed);

function fixSifrLinks(FlashInteractor) {
	window.location = FlashInteractor.getAncestor().attributes["href"].value;
}

function postListings() {
	sIFR.replace(SohoStdLight, {
		selector: '.post-body h1, .post-body h2',
		css: [
			'.sIFR-root { background-color: #FFFFFF; color: #252525; }',
			'a { text-decoration: none; color: #252525; }',
			'a:hover { text-decoration: none; color: #e60f17; }'
		],
		fitExactly: true,
		wmode: 'opaque'
	});

	sIFR.replace(AauxProMed, {
		selector: '.post-cats li.dyn a',
		css: '.sIFR-root { color: #FFFFFF; cursor: pointer; }',
		wmode: 'transparent',
		fitExactly: true,
		forceSingleLine: true,
		offsetTop: 7,
		tuneHeight: 8,
		tuneWidth: 3,
		onRelease: fixSifrLinks
	});
}

postListings();

sIFR.replace(SohoStdLight, {
	selector: '#header p.showing',
	css: '.sIFR-root { color: #909090; }',
	wmode: 'transparent',
	fitExactly: true,
	tuneWidth: 5,
	tuneHeight: 5,
	offsetTop: 9
});

sIFR.replace(SohoStdLight, {
	selector: '#other-posts #more-like h3',
	css: '.sIFR-root { color: #252525; }',
	wmode: 'opaque',
	fitExactly: true,
	thickness: 50,
	sharpness: -25
});


sIFR.replace(SohoStdLight, {
	selector: 'body.about h1',
	css: '.sIFR-root { color: #252525; leading: 2; }',
	fitExactly: true,
	wmode: 'opaque',
	tuneHeight: -2
});

sIFR.replace(SohoStdLight, {
	selector: 'body.about h2',
	css: '.sIFR-root { color: #252525; leading: 2; }',
	fitExactly: true,
	wmode: 'opaque'
});

sIFR.replace(SohoStdLight, {
	selector: 'body.terms h1',
	css: '.sIFR-root { color: #252525; }',
	fitExactly: true,
	wmode: 'opaque'
});

sIFR.replace(AauxProMed, {
	selector: 'body.terms h2',
	css: '.sIFR-root { color: #636363; }',
	fitExactly: true,
	wmode: 'opaque',
	thickness: 100,
	sharpness: -150
});



