// 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 = '#00909a';
	/*
	colorArray = new Array(
		'#0079c0',
		'#dc8431',
		'#6bb545',
		'#be2a73',
		'#114a9c',
		'#6bb545',
		'#643485',
		'#009856'
	);
	*/
	colorArray = new Array(
		'#00909a',
		'#00909a',
		'#00909a',
		'#00909a',
		'#00909a',
		'#00909a',
		'#00909a',
		'#00909a'
	);
	
	
	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; }'
		]
	});
});
