/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
	/*var futura = {
      src: '../Fonts/futura-mac.swf'
    };*/

	var futura = {
      src: '../Fonts/futura-mac.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 optima = {
      src: '../Fonts/optima-mac.swf'
      ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
    };

// Next, activate sIFR:
sIFR.activate(futura, optima);

	// Most of the headers will be in Futura font
	// Make ALL sIFR selectors with transparency so the drop-down nav appears above it
	
	sIFR.replace(futura, {
      selector: 'h1'
      ,css: [
        '.sIFR-root { font-weight: bold; color: #003399; z-index: -2; }'
        ,'a { text-decoration: underline; }'
        ,'a:link { color: #0033CC; }'
        ,'a:hover { color: #0033CC; text-decoration: underline; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });
	
	// The Emphasis class will be optima, but here we also change the weight and color of elements within this div that have the EmphasisBold class - Leah
	/*sIFR.replace(optima, {
      selector: 'div.Emphasis'
      ,css: [
        '.sIFR-root { color: #434343; z-index: -2; leading: 2; }'
        ,'.EmphasisBold { color: #003399; font-weight: bold; z-index: -2;}'
		,'strong { color: #003399; font-weight: bold; z-index: -2;}'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });*/
	
	// The HeaderGradient class will contain an h3, which is already sIFR'd above, so we need to set the h3 inside of it to a transparent background so the bg for HeaderGradient shows up - Leah
	sIFR.replace(futura, {
      selector: 'div.HeaderGradient'
      ,css: [
        '.sIFR-root { font-weight: bold; color: #003399; }'
		,'h2 { font-size: 13pt; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });
	  
	/* Leah note: IE does honor applying sIFR to captions!!
	sIFR.replace(futura, {
      selector: 'caption'
      ,css: [
        '.sIFR-root { font-size: 13pt; font-weight: bold; color: #003399; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });*/
	
	/*sIFR.replace(futura, {
      selector: '.Sidebox-Header h3'
      ,css: [
        '.sIFR-root { text-align: center; color: #003399; z-index: -2; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });*/
	
	sIFR.replace(optima, {
      selector: 'div.Quote div'
      ,css: [
        '.sIFR-root { color: #003399; z-index: -2; leading: 2; line-height: 8pt; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });
	
	sIFR.replace(optima, {
      selector: '.BannerTitle'
      ,css: [
        '.sIFR-root { z-index: -2; leading: 2; line-height: 8pt; }'
		,'h1 { font-size: 29pt; color: #003399; }'
      ]
	  ,transparent: true
	  ,wmode: 'transparent'
    });
