/*!
* SIFR config script for Philips Internet
* Check www.crsc.philips.com/crsc/scripts/sifr-config.js for latest version
* Version: 4.5.1
* Build: 2
* Date: February 18, 2009
*/

/* Overriding SIFR function which replaces inline document.write statements within sifr replacements */
sIFR.util.normalize = function(str) {
    var SINGLE_WHITESPACE = ' ';
    str = (str.indexOf("document.write") > -1 ? '' : str);
    if (sIFR.preserveSingleWhitespace) return str.replace(/\s/g, SINGLE_WHITESPACE);
    // Normalize to the first whitespace, and then make sure no nbsp characters are preserved as Flash doesn't seem to support these.
    return str.replace(/(\s)\s+/g, '$1').replace(/\xA0/, SINGLE_WHITESPACE);
}

// Replace the SIFR H1
var header = {
    src: _page.crsc_server + '/crsc/images/sifr_gillsanslight_3.436.swf'
};

sIFR.activate(header);

/*********************************/
/* Healthcare Specific H1 colors */
sIFR.replace(header, {
    selector: 'h1.header_green'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#7CBD2A;}'
		, wmode: 'transparent'
});

sIFR.replace(header, {
    selector: 'h1.header_orange'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#F58F08;}'
		, wmode: 'transparent'
});

sIFR.replace(header, {
    selector: 'h1.header_purple'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#992C96;}'
		, wmode: 'transparent'
});

sIFR.replace(header, {
    selector: 'h1.header_blue'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#005AFF;}'
		, wmode: 'transparent'
});

/*********************************/
/* NewsCenter Specific H2 colors */
sIFR.replace(header, {
selector: 'h2.subtitle_white'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#FFFFFF;}'
		, wmode: 'transparent'
});

sIFR.replace(header, {
    selector: 'span.subtitle_blue'
		, css: '.sIFR-root {background-color:#FFFFFF;color:#005AFF;}'
		, wmode: 'transparent'
});