var frutiger = {
  src: '/assets/flash/sifr.swf'
};

sIFR.debugMode = false;

sIFR.activate(frutiger);

/* in a function so that these elements can be replaced at any time (in ajax.js for example)*/
sIFRReplace();
// sIFR.debug.ratios({ src: '/assets/flash/sifr.swf', selector: 'h2' });


function sIFRReplace() {
    sIFR.replace(frutiger, {
        selector: 'h3'
    , wmode: 'transparent'
    , css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; font-weight:bold; } em { font-style: normal; color: #1c67ac; }'
    , ratios: [8, 1.01, 13, 1.09, 19, 1.11, 23, 1.13, 24, 1.15, 30, 1.14, 40, 1.15, 50, 1.16, 70, 1.17, 74, 1.18, 75, 1.17, 110, 1.18, 111, 1.19, 115, 1.18, 116, 1.19, 117, 1.18, 118, 1.19, 120, 1.18, 124, 1.19, 1.18]
    });
	
    sIFR.replace(frutiger, {
        selector: 'h4'
    , wmode: 'transparent'
    , css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; font-weight:bold;  } em { font-style: normal; color: #1c67ac; }'
    , ratios: [8, 1.01, 13, 1.09, 19, 1.11, 23, 1.13, 24, 1.15, 30, 1.14, 40, 1.15, 50, 1.16, 70, 1.17, 74, 1.18, 75, 1.17, 110, 1.18, 111, 1.19, 115, 1.18, 116, 1.19, 117, 1.18, 118, 1.19, 120, 1.18, 124, 1.19, 1.18]
    });
    
  

  
    sIFR.replace(frutiger, {
    selector: '.comparison  span.header'
    ,wmode: 'transparent'
    ,forceWidth:true
    ,css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; } '
    ,ratios: [8,1.01,15,1.07,20,1.1,21,1.12,27,1.11,28,1.13,34,1.12,39,1.13,44,1.14,45,1.15,50,1.14,67,1.15,68,1.16,72,1.15,111,1.16,112,1.17,117,1.16,118,1.17,123,1.16,124,1.17,1.16]
    });

    sIFR.replace(frutiger, {
    selector: '.comparison  span.item1'
    ,wmode: 'transparent'
    ,forceWidth:true
    ,css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; display:block; text-align: center; } '
    ,ratios: [8,1.01,15,1.07,20,1.1,21,1.12,27,1.11,28,1.13,34,1.12,39,1.13,44,1.14,45,1.15,50,1.14,67,1.15,68,1.16,72,1.15,111,1.16,112,1.17,117,1.16,118,1.17,123,1.16,124,1.17,1.16]
    });
    

    sIFR.replace(frutiger, {
    selector: '.comparison  span.item2'
    ,wmode: 'transparent'
    ,forceWidth:true
    ,css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; display:block; text-align: center; } '
    ,ratios: [8,0.99,15,1.07,22,1.1,27,1.11,28,1.13,34,1.12,39,1.13,44,1.14,45,1.15,50,1.14,67,1.15,68,1.16,72,1.15,111,1.16,112,1.17,117,1.16,118,1.17,123,1.16,124,1.17,1.16]
    });

/* not in use because click event applied to th not being applied to object in ie
    sIFR.replace(frutiger, {
    selector: '.comparison  .headLevel2 td.col1 span'
    ,wmode: 'transparent'
    ,css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; font-weight:bold;} '
    });

    sIFR.replace(frutiger, {
    selector: '.comparison  .headLevel3 td.col1 span'
    ,wmode: 'transparent'
    ,css: '.sIFR-root { color: #525252; leading: -2; text-transform: uppercase; font-weight:bold;} '
    });
*/
}
