/*!
* SIFR custom config script for Philips OneCMS Internet
* Date: January 29, 2010
*/

var header = _page.sIFR.getSWFByFont({ language: _page.locale.split("_")[1] });

if (header) {

    // Get sIFR font file locally
    header = {
        src: sifrLocation
        , 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(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'
    });

    sIFR.replace(header, {
        selector: 'div.home2010Title'
	    , css: '.sIFR-root {font-size: 31px;background-color:#FFFFFF;color:#0B5ED7;}'
	    , wmode: 'transparent'
	    , fitExactly: true
	    , forceSingleLine: true
    });

    sIFR.replace(header, {
        selector: 'div.home2010SubTitle'
	    , css: '.sIFR-root {font-size: 21px; background-color:#FFFFFF;color:#0B5ED7; text-align: right;}'
	    , wmode: 'transparent'
	    , fitExactly: true
	    , forceSingleLine: true
    });

    sIFR.replace(header, {
        selector: 'span.homeFeatureSectionTitle'
	    , css: '.sIFR-root {font-size: 18px, font-family: header-Light, color:#252F47;}'
	    , wmode: 'transparent'
    });
    
    sIFR.replace(header, {
        selector: 'div.homeProduct'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none; vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #7CBD2A;text-decoration: none; }'
	    ]
	    , fitExactly: true
	    , forceSingleLine: true
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeEducation'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none; vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #F58F08;text-decoration: none; }'
	    ]
	    , fitExactly: true
	    , forceSingleLine: true
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeSupport'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none;  vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #992C96;text-decoration: none; }'
	    ]
	    , fitExactly: true
	    , forceSingleLine: true
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeContact'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none;  vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #0E5FD8;text-decoration: none; }'
	    ]
	    , fitExactly: true
	    , forceSingleLine: true
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.home2010Title'
	    , css: '.sIFR-root {font-size: 31px;background-color:#FFFFFF;color:#0B5ED7;}'
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.home2010SubTitle'
	    , css: '.sIFR-root {font-size: 21px; background-color:#FFFFFF;color:#0B5ED7;}'
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'span.homeFeatureSectionTitle'
	    , css: '.sIFR-root {font-size: 18px, font-family: header-Light, color:#252F47;}'
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeProduct'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none; vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #7CBD2A;text-decoration: none; }'
	    ]
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeEducation'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none; vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #F58F08;text-decoration: none; }'
	    ]
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeSupport'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none;  vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #992C96;text-decoration: none; }'
	    ]
	    , wmode: 'transparent'
    });

    sIFR.replace(header, {
        selector: 'div.homeContact'
	    , css: [
	    '.sIFR-root {font-size: 20px; color:#666666; text-decoration: none;  vertical-align:middle;}'
	    , 'a:link { color: #666666;text-decoration: none; }'
	    , 'a:visited { color: #666666;text-decoration: none; }'
	    , 'a:hover { color: #0E5FD8;text-decoration: none; }'
	    ]
	    , 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'
    });

    /*********************************/
    /* Lighting Specific */

    sIFR.replace(header, {
        selector: 'h4.appAreaHeading'
	        , css: [
	            '.sIFR-root {color:#252f47;leading:-7}',
		        'a {text-decoration:none}',
		        'a:link {color:#252f47}',
		        'a:hover {color:#252f47}'
	        ]
	        , wmode: 'transparent'
	        , fitExactly: true
    });
    
    sIFR.replace(header, {
        selector: 'h1,h2,h3,h4,h5,h6'
	        , css: [
	            '.sIFR-root {color:#252f47;}',

	            '.white {color:#FFFFFF;}',
	            '.gray {color:#6d6d6d;}',
	            '.orange {color:#F58F08;}',
	            '.orange2 {color:#993300;}',
	            '.purple {color:#992C96;}',
	            '.purple2 {color:#5C005C;}',
	            '.green {color:#7CBD2A;}',
	            '.green2 {color:#005C1F;}',
	            '.blue {color:#0B5ED7;}',
	            '.blue2 {color:#000066;}',
	            '.red {color:#DF2823;}',
	            '.red2 {color:#990033;}',
	            '.turquoise {color:#00A7BC;}',
	            '.turquoise2 {color:#00545C;}',

		        'a {text-decoration:none}',
		        'a:link {color:#252f47}',
		        'a:hover {color:#252f47}'
	        ]
	        , wmode: 'transparent'
	        , fitExactly: true
    });
}
