//<[CDATA[  
if (typeof convioPage != "undefined" && convioPage == true) {
	//var rootURL = 'https://www327.safesecureweb.com/aneraorg';
	var rootURL = 'https://www.anera.org';
} else {
	var rootURL = 'http://www.anera.org';
}
var interRegURL = rootURL + '/includes/sifr/flash/interstate-regular.swf';
var interBoldURL = rootURL + '/includes/sifr/flash/interstate-bold.swf';
var unitRegURL = rootURL + '/includes/sifr/flash/unit-regular.swf';
var unitBoldURL = rootURL + '/includes/sifr/flash/unit-bold.swf';

  var interstateReg = {
    src: interRegURL
  };
  var interstateBold = {
    src: interBoldURL
  };
    var unitReg = {
    src: unitRegURL
  };
    var unitBold = {
    src: unitBoldURL
  };


  //sIFR.fitExactly = true;
  //sIFR.debugMode = true;
  //sIFR.delayCSS  = true;
  sIFR.prefetch(interstateReg);
  sIFR.activate(interstateReg);
  sIFR.prefetch(interstateBold);
  sIFR.activate(interstateBold);
  sIFR.prefetch(unitReg);
  sIFR.activate(unitReg);
  sIFR.prefetch(unitBold);
  sIFR.activate(unitBold);
  
  
  // THE MAIN PAGE TITLES
  // Set some variables
  var mainTitleSize = '20';
  var homeTitleSize = '18';
  var h2size = '16';
  var h3size = '14';
  var titleColor = '#951617';
  var rightNavSize = '18';
  var rightNavColor = '#ffffff';
  var rightNavBGcolor = '#B57100';
  
  // Standard main title  
  sIFR.replace(unitReg, {
	selector: '#mainTitle h1',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': '#860b0c',
						'font-size': mainTitleSize }
    	},
	tuneHeight: '-5'
  });
  
    // Home page main title  
  sIFR.replace(unitReg, {
	selector: '#homeBottom h1',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': '#860b0c',
						'font-size': homeTitleSize },
		'a:link': { 'color': '#860b0c',
				'text-decoration': 'none' },
		'a:visited': { 'color': '#860b0c',
				'text-decoration': 'none' },
		'a:hover': { 'color': '#860b0c',
				'text-decoration': 'underline' },
		'a:active': { 'color': '#860b0c',
				'text-decoration': 'underline' }
    	},
	tuneHeight: '-4'
  });
  
  // Main titles, pages without hightlight box
  sIFR.replace(unitReg, {
	selector: '#mainTitleNoHighlightBox h1',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': mainTitleSize }
    	},
	tuneHeight: '-5'
  });
  
  // Main titles, list pages. Unlike the other titles, these don't have a special container. They live right in the page.
  sIFR.replace(unitReg, {
	selector: '#mainContent.listPage h1',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': mainTitleSize }
    	},
	tuneHeight: '-5'
  });
  
  
  
  // Header 2 titles, list pages. Unlike the other titles, these don't have a special container. They live right in the page.
 /* sIFR.replace(unitBold, {
	selector: '#docBody h2',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': h2size }
    	},
	tuneHeight: '-5'
  });
  
  // Header 3 titles, list pages. Unlike the other titles, these don't have a special container. They live right in the page.
  sIFR.replace(unitReg, {
	selector: '#docBody h3',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': h3size }
    	},
	tuneHeight: '-5'
  });*/
  
  	// THE TITLES AT THE BOTTOM OF THE HOME PAGE
    sIFR.replace(unitReg, {
	selector: '#homeBottom h1',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': homeTitleSize }
    	},
	tuneHeight: '-5'
  });
  
    // THE TITLES IN THE RIGHT MARGIN REPEATABLE REGION
    sIFR.replace(interstateBold, {
	selector: '.rightMarginRepeatable h4',
	wmode: 'transparent',
	css: {
    	'.sIFR-root': { 'background-color': '#ebf4f8',
						'color': titleColor,
						'font-size': '14',
						'font-weight': 'bold',
						'text-transform': 'uppercase' }
    	},
	tuneHeight: '-5'
  }); 
	
  // Right Nav title  
  sIFR.replace(unitReg, {
	selector: '#rightMarginNav strong',
	wmode: 'opaque',
	tuneWidth: '97',
	//preventWrap: 'true',
	css: {
    	'.sIFR-root': { 'background-color': rightNavBGcolor,
						'color': rightNavColor,
						'font-size': rightNavSize }
    	},
	tuneHeight: '-5'
  });
  
  // Right Sidebar title  
  sIFR.replace(unitReg, {
	selector: '#sideBarBlockTitle h4',
	wmode: 'opaque',
	tuneWidth: '97',
	//preventWrap: 'true',
	css: {
    	'.sIFR-root': { 'background-color': rightNavBGcolor,
						'color': rightNavColor,
						'font-size': rightNavSize }
    	},
	tuneHeight: '-5'
  });
//]]>