// The font
var daxpro = { src: '/include/flash/daxpro-regular.swf' };

// Now you can set some configuration settings.
sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(daxpro);


$(document).ready(function(){
	// Now we can do the replacements.
	selector = '#title-holder h1';
	color = '#009dd1';
	colorArray = new Array(
		'#009DD1',
		'#EB690A',
		'#6AB90A',
		'#C50073',
		'#004B95',
		'#6AB023',
		'#890F75',
		'#39A642'
	);
	
	for(i = 1; i <= 8; i++) {
		testSelector = ".color-schema-"+i+" #title-holder h1";
		if($(testSelector).length > 0) {
			selector = testSelector;
			color = colorArray[i-1];
			break;
		}
	}
	
	sIFR.replace(daxpro, {
		selector: selector,
		wmode: 'transparent',
		css: [
			'.sIFR-root { color: '+color+'; leading: -5; }'
			,'a { text-decoration: none; }'
		]
	});
	
	// Now we can do the replacements.
	sIFR.replace(daxpro, {
		selector: '#title-holder h2',
		wmode: 'transparent',
		css: [
			'.sIFR-root { color: #333333; leading: -5; }'
			,'a { text-decoration: none; }'
		]
	});
	
	// Now we can do the replacements.
	sIFR.replace(daxpro, {
		selector: 'a.active',
		wmode: 'transparent',
	
		css: [
			'.sIFR-root { color: #ffffff; leading: -5; cursor: pointer; }'
			,'a { text-decoration: none; color: #ffffff;}'
			,'a:hover { color: #ffffff; }'
		]
	});
});