// look for all contenteditor webparts used to just show this title, and then wrap the title in h2 to make it possible for sifr to work with firefox contenteditor webpart.
$("div.ms-WPBody:contains('Ook iets voor jou?')").each(function() {
    if ($(this).html() == 'Ook iets voor jou?') { $(this).html('<h2>Ook iets voor jou?</h2>'); }
});
// somewhat redundant but for possible older pages
$("div.ms-WPBody:contains('Bekijk opleidingen')").each(function() {
if ($(this).html() == 'Bekijk opleidingen') { $(this).html('<h2>Bekijk opleidingen</h2>'); }
});


    
    if (navigator.appVersion.indexOf("Linux") != -1 || navigator.appVersion.indexOf("X11") != -1) {
       
    } else {

        var AvenirMedium = {
            src: '/_layouts/1033/SCRIPTS/ROCvA/avenirmedium.swf'
			, ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
        };

        var AvenirBlack = {
            src: '/_layouts/1033/SCRIPTS/ROCvA/avenirblack.swf'
			, ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
        };

        sIFR.activate(AvenirMedium, AvenirBlack);



        sIFR.replace(AvenirMedium, {
            selector: '#wp-opendagen h3',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 20px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-3'
        });

        sIFR.replace(AvenirMedium, {
            selector: '.blocktitle',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 20px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });


        sIFR.replace(AvenirMedium, {
            selector: 'h1',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#FFFFFF; font-size: 21px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-3'

        });

        sIFR.replace(AvenirMedium, {
            selector: '#domein h2',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#FFFFFF; font-size: 20px; }'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'

        });

        sIFR.replace(AvenirMedium, {
            selector: '.testimonial h2',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#FFFFFF; font-size: 24px; }',
				 'span { font-size: 16px; }'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirMedium, {
            selector: '#bedrijven .wpTitleBox h2',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 20px; }',
				 'a { text-decoration: none; color: #ffffff;}',
				 'a:hover { color: #ffffff; text-decoration: underline; }'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });


        sIFR.replace(AvenirMedium, {
            selector: 'h2',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#333333; font-size: 20px; }',
				 'a { text-decoration: none; color: #333333;}',
				 'a:hover { color: #333333; text-decoration: underline; }'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'


        });

        sIFR.replace(AvenirMedium, {
            selector: '.searchBlock h3',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#ff0033; font-size: 16px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirMedium, {
            selector: 'h3',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#333333; font-size: 18px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-3'
        });

        sIFR.replace(AvenirMedium, {
            selector: 'h4',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 18px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirMedium, {
            selector: '#content.pageContent h5',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#000000; font-size: 18px;}'
				],
            fitExactly: false,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-3'
        });


        sIFR.replace(AvenirBlack, {
            selector: '#kluster li span',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 14px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirBlack, {
            selector: '.kleinekop',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 16px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirMedium, {
            selector: '#content .afkorting .titlelinksvmbo',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#ffffff; font-size: 16px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

        sIFR.replace(AvenirMedium, {
            selector: '.ms-rteCustom-Heading1',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#333333; font-size: 22px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'

        });

        sIFR.replace(AvenirMedium, {
            selector: '.ms-rteCustom-Heading2',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#333333; font-size: 20px; }',
				 'a { text-decoration: none; color: #333333;}',
				 'a:hover { color: #333333; text-decoration: underline; }'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'


        });

        sIFR.replace(AvenirMedium, {
            selector: '.ms-rteCustom-Heading3',
            forceSingleLine: false,
            css: [
				 '.sIFR-root { color:#333333; font-size: 18px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-3'
        });

        sIFR.replace(AvenirBlack, {
            selector: '.ms-rteCustom-Heading4',
            forceSingleLine: true,
            css: [
				 '.sIFR-root { color:#333333; font-size: 18px;}'
				],
            fitExactly: true,
            wmode: 'transparent',
            tuneWidth: '5',
            forceWidth: false,
            tuneHeight: '-5'
        });

    }


