// sIFR3, by Mark Wubben
// How to use? See http://wiki.novemberborn.net/sifr3/
// To prevent the Flash movies from abruptly resizing, use Ratio calculation, see http://wiki.novemberborn.net/sifr3/Ratio+Calculation
// CAUTION: no shorthands possible in the css properties

var daxregular = {
  src: '/flash/sifr/daxregular.swf'
  ,ratios: [7, 1.32, 8, 1.31, 12, 1.27, 15, 1.21, 16, 1.22, 22, 1.2, 23, 1.17, 25, 1.19, 33, 1.17, 42, 1.16, 47, 1.15, 48, 1.16, 66, 1.15, 71, 1.14, 72, 1.15, 1.14]
};

var daxmedium = {
  src: '/flash/sifr/dax-medium.swf'
  ,ratios: [7, 1.32, 8, 1.31, 12, 1.27, 15, 1.21, 16, 1.22, 22, 1.2, 23, 1.17, 25, 1.19, 33, 1.17, 42, 1.16, 47, 1.15, 48, 1.16, 66, 1.15, 71, 1.14, 72, 1.15, 1.14]
};

var daxbold = {
  src: '/flash/sifr/dax-bold.swf'
  ,ratios: [7, 1.32, 8, 1.31, 12, 1.27, 15, 1.21, 16, 1.22, 22, 1.2, 23, 1.17, 25, 1.19, 33, 1.17, 42, 1.16, 47, 1.15, 48, 1.16, 66, 1.15, 71, 1.14, 72, 1.15, 1.14]
};

function sIFRinit()
{
	sIFR.activate (daxregular); // From revision 209 and onwards
	sIFR.activate (daxmedium); // From revision 209 and onwards
	sIFR.activate (daxbold); // From revision 209 and onwards
	
	sIFR.replace (daxbold, {
		selector: 'h1'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#ff0400','font-size': '22px' }
		}
	});
	
	sIFR.replace (daxmedium, {
		selector: 'h2, .head2'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#ff0400','font-size': '15px' }
		}
	});
	
	sIFR.replace (daxregular, {
		selector: 'h3, .head3, h4'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#000000','font-size': '18px' }
		}
	});
	
	sIFR.replace (daxregular, {
		selector: 'h5'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#878787','font-size': '14px' }
		}
	});
	
	sIFR.replace (daxregular, {
		selector: '.index3 .date, .contCMSBlok .date, .contInleiding .date'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#9e9e9e','font-size': '14px' }
		}
	});
	
		
	//sIFR.replace (daxregular, {
	//  selector: '.quote'
	//  	,wmode: 'transparent'
	//    ,css: {
	//      '.sIFR-root': { 'color': '#3d3d3d','font-size': '14px' }
	//    }
	//});
}
	
function loadPopupSIFR()
{	
	sIFR.replace (daxbold, {
	  selector: '.popup h1'
		,wmode: 'transparent'
		,css: {
	  	'.sIFR-root': { 'color': '#ffffff','font-size': '18px' }
	  }
	});
	
	sIFR.replace (daxmedium, {
		selector: '#serviceBlok h2'
		,wmode: 'transparent'
		,css: {
			'.sIFR-root': { 'color': '#3d3d3d','font-size': '15px' }
		}
	});	
}

loadPopupSIFR();
sIFRinit();
