 /*****************************************************************************
    The sIFR configuration should typically go in `sifr-config.js`, but in order to
    keep the config file clean, and to give a quick overview, it's done here instead.
    *****************************************************************************/

    var avenir = {
      src: 'http://www.clarustherapeutics.com/images/avenir.swf'
    };
	var aveniralt = {
      src: 'http://www.clarustherapeutics.com/images/avenir.swf'
    };
	var aveniritalic = {
      src: 'http://www.clarustherapeutics.com/images/avenir-italic.swf'
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(avenir);
	sIFR.activate(aveniralt);
	sIFR.activate(aveniritalic);

    sIFR.replace(avenir, {
      selector: 'h1'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#FFFFFF', 'letter-spacing': -1, 'leading': '-25' }
      }
    });

	sIFR.replace(avenir, {
      selector: 'h2'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#3B8484', 'letter-spacing': 0, 'leading': '-4' }
      }
    });

    sIFR.replace(avenir, {
      selector: 'h3'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#3B8484', 'leading': '1' }
      }
    });
	
    sIFR.replace(avenir, {
      selector: 'h4'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#3B8484', 'leading': '0' }
      }
    });
	
	
  //  sIFR.replace(aveniritalic, {
  //    selector: 'h5'
  //    ,wmode: 'transparent'
  //  ,css: {
  //     '.sIFR-root': { 'color': '#FFFFFF', 'leading': '0', 'font-style': 'italic' } // you have to both declare 'italic' and create an italic-only font to get italic lettering
  //    }
  //  });	

	
	sIFR.replace(avenir, {
      selector: 'h5'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#FFFFFF', 'leading': '0' } 
      }
    });	
	

    sIFR.replace(aveniritalic, {
      selector: 'h6'
      ,wmode: 'transparent'
	  ,css: {
        '.sIFR-root': { 'color': '#999999', 'leading': '1', 'font-style': 'italic' }
      }
    });	
	
	//sIFR.replace(aveniralt, {
	 // selector: '#subnav ul li' //DON'T	try to SIFR-replace the 'a' in the subnav, instead just replace the 'li'
	  //,wmode: 'transparent'
	 //,css: {
	//	'.sIFR-root': { 'color': '#3B8484', 'leading': '0' },
	//	'a': { 'text-decoration': 'none' },
	//	'a:link': { 'color': '#3B8484' },
	//	'a:hover': { 'color': '#333333' }
	 // }
//	});

