// 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
// ,ratios: [value]

// CAUTION: no shorthands possible in the css properties

var frankgothic1 = { src: '/flash/sifr/FrnkGothITC-Hv-BT.swf'};
sIFR.activate (frankgothic1); 

var frankgothic2 = { src: '/flash/sifr/FrnkGothITC-Bk-BT.swf' };
sIFR.activate (frankgothic2); 

var Arial = { src: '/flash/sifr/Arial.swf' };
sIFR.activate (Arial); 


function initSIFR(root)
{
	// popup specific
	if (root.indexOf('popup')>=0) {
		sIFR.replace (frankgothic2, {
		  selector: root+' h3'
			,wmode: 'transparent'
			,css: {
			  '.sIFR-root': { 'color': '#e40083', 'font-weight': 'bold' }
			}
		});
			
		sIFR.replace (frankgothic2, {
		  selector: root+' .imgDetails .title'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#e40083', 'font-weight': 'bold', 'font-size': '14px' }
		    }
		});
		
		sIFR.replace (frankgothic2, {
		  selector: root+' .imgDetails .navInfo'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#555555', 'font-weight': 'bold', 'text-align': 'right', 'font-size': '11px' }
		    }
		});

		sIFR.replace (frankgothic1, {
		  selector: root+' h1'
			,wmode: 'transparent'
			,css: {
			  '.sIFR-root': { 'color': '#e40083' }
			}
		});
			
	
	// werkenbij specific:
	} else if (root.indexOf('werkenbij')>=0) {

		sIFR.replace (frankgothic1, {
		  selector: root+' h1'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#555', 'font-size': '22px' }
		    }
		});

		sIFR.replace (frankgothic2, {
		  selector: root+' h3'
			,wmode: 'transparent'
			,css: {
			  '.sIFR-root': { 'color': '#555', 'font-weight': 'bold' }
			}
		});
		
		sIFR.replace (frankgothic2, {
		  selector: root+' h2'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#555', 'font-weight': 'bold' }
		    }
		});

	// default:
	} else {
		
		sIFR.replace (frankgothic2, {
		  selector: root+' .layoutMiddenvlak h1.default, '+root+' .contBlok1 h3'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#e40083', 'font-weight': 'bold' }
		    }
		});
		
		sIFR.replace (frankgothic2, {
		  selector: root+' .layoutMiddenvlak h1.steps'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#e40083', 'font-weight': 'normal'}
		    }
		});
		
		sIFR.replace (frankgothic1, {
		  selector: root+' span.steps, '+root+' .layoutMiddenvlak h1.bold'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#e40083', 'font-size': '22px' }
		    }
		});
		
		sIFR.replace (frankgothic1, {
		  selector: root+' .zijBlok h2'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#FFFFFF' }
		    }
		});
	
		sIFR.replace (frankgothic2, {
		  selector: root+' .layoutMiddenvlak h2'
		  	,wmode: 'transparent'
		    ,css: {
		      '.sIFR-root': { 'color': '#e40083', 'font-weight': 'bold' }
		    }
		});

		sIFR.replace (frankgothic2, {
		  selector: root+' .jouwIdee h3'
			,wmode: 'transparent'
			,css: {
			  '.sIFR-root': { 'color': '#555', 'font-weight': 'bold' }
			}
		});
	
		sIFR.replace (frankgothic2, {
		  selector: root+' h4'
			,wmode: 'transparent'
			,css: {
			  '.sIFR-root': { 'color': '#e40083', 'font-weight': 'normal', 'font-weight': 'bold'}
			}
		});
	}
}
