// In Gecko, preceding the sIFR element with a floated element, inside a fixed-width wrapper, gives wrong dimensions. 
// Set this property to true to force the temporary clearing of the sIFR element, which works around the problem. 
sIFR.forceClear = true;

// Force the Flash movie to take it's calculated width, instead of 100%. 
// This may solve issues with the Flash movie being clipped or hidden. 
// It may also have negative side effects. 
//sIFR.forceWidth = true;

// When true the dimensions of the Flash movie will fit exactly around the width and height of the text in the movie. 
// *Note:* this is as reported by Flash, so you might need to manually tune the dimensions.
sIFR.fitExactly = true;
//sIFR.tuneWidth = 100;

// Allow sIFR to run when loaded from the localhost domain. 
//You don't have to add localhost to the domains. 
sIFR.fromLocal = true;

// Specifies the window mode of the Flash movie. 
// When transparent the movie will be transparent. 
// When opaque elements can be displayed on top of the movie. 
// If transparency is not supported wmode will be set to opaque and the background color specified in the CSS will be used. 
// Therefore, it is important to always specify a background color!
sIFR.Wmode = "transparent";

/*
The location of the Flash file is relative to the page it's being displayed in.
When you put the page online it's best to make the location absolute, for example:
  * The page is at http://example.com/pages/page.html
  * The configuration file is at http://example.com/js/sifr-config.js
  * The Flash file is at http://example.com/flash/cochin.swf
  * The relative location is .. /flash/cochin.swf
    * (Note: there's an extra space after the periods, the path wouldn't pass the security filters otherwise…)
  * The absolute location is /flash/cochin.swf
*/  
  
  var futura = {
    src: 'http://www.avispl.com/scripts/futura.swf'
  };

  sIFR.prefetch(futura);
  sIFR.delayCSS  = false;
  // sIFR.domains = ['avispl.com'] // Don't check for domains
  sIFR.activate(futura);
  
  sIFR.replace(futura, 
    {selector: 'div#maincontent h1,div#l-sidebar h1'
    ,css: [
      '.sIFR-root { text-align: left;  color: #519342; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #519342; }'
      ,'a:hover { color: #64C753; }'
    ]
		, wmode: 'transparent'
  });
  
  sIFR.replace(futura, 
  	{selector: 'div#maincontent h2'
	,css: [
      '.sIFR-root { text-align: left; font-weight: bold; color: #1d407b; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #666666; }'
      ,'a:hover { color: #CCCCCC; }'
    ]
		, wmode: 'transparent'
  });
  
  
  sIFR.replace(futura, {
    selector: 'h5#pullquote'
    ,css: 'em { font-style: normal; color: #660000; }'
  });
  
  sIFR.replace(futura, {
    selector: 'h3.sidebox'
    ,css: {
      '.sIFR-root': { 'background-color': '#DCDCDC' }
    }
  });
  
  sIFR.replace(futura, 
  	{selector: 'div#maincontent h3'
	,css: [
      '.sIFR-root { text-align: left; font-weight: bold; color: #000000; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #666666; }'
      ,'a:hover { color: #CCCCCC; }'
    ]
		, wmode: 'transparent'
  });
   
  sIFR.replace(futura, {
    selector: 'div#maincontent h4'
    ,css: {
      '.sIFR-root': { 'color': '#000000' }
    }
   });