 /*****************************************************************************
    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 cononica = { src: 'Document.Doc?id=97' }; //MGOpenCononica  //Document.Doc?id=97
 var HelveticaNeue = { src: 'Document.Doc?id=98' }; //HelveticaNeueLTSTD  //Document.Doc?id=98
 var adobe = { src: 'Document.Doc?id=106' }; //AdobeGaramondPro //Document.Doc?id=106
 var gothamLightSTD = { src: 'http://www.altarpaint.com/GothamLightStd.swf' }; //GothamLightStd //Document.Doc?id=102
 var gothamLight = { src: 'http://www.altarpaint.com/GothamLight.swf' }; //GothamLight  Document.Doc?id=103
 var HelveticaLight = { src: 'Document.Doc?id=99' }; //HelveticaNeueLight //Document.Doc?id=99
 var futura = { src: 'Document.Doc?id=105' }; //FuturaStd  //Document.Doc?id=105
 

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
   // sIFR.useDomLoaded = true;
    sIFR.useStyleCheck = true;
    sIFR.activate(HelveticaNeue, adobe, cononica, gothamLightSTD, gothamLight, HelveticaLight, futura);

    sIFR.replace(cononica, {
      selector: 'h2.ag'
      ,css: [
        '.sIFR-root { color: #035E92; font-style: normal; font-weight:normal; letter-spacing: -1.5;}'
        ,'a { text-decoration: none; background-color: #ffffff;}'
        ,'a:link { color: #ffffff; }'
        ,'a:hover { color: #CCCCCC; }'
      ],tuneHeight: -5,
		forceSingleLine: false, 
		wmode: 'transparent',
	  selectable: false
    });
	//sIFR.debug.ratios({ src: 'GothamLight.swf', selector: '.glarge h2' });
	sIFR.replace(gothamLight, {
    selector: '.glarge h2',
    forceSingleLine: true,
	ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-size: 28px; letter-spacing:-1.5; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	offsetLeft: 5,
	offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: 6,
	tuneWidth: 50
	});
	
	sIFR.replace(gothamLight, {
    selector: '.gsmall h2',
    forceSingleLine: true,
	ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-size: 14px; letter-spacing:-1.5; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	offsetLeft: 5,
	offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: 6,
	tuneWidth: 50
	});
	
	//sIFR.debug.ratios({ src: 'GothamLightStd.swf', selector: '.glarge h2' });
	sIFR.replace(gothamLightSTD, {
    selector: '.defaultHeader.replace h1',
    forceSingleLine: true,
	ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-size: 22px; letter-spacing:-1.5; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	//offsetLeft: 5,
	//offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: -6,
	selectable: true
	//tuneWidth: 50,
	});
	
	sIFR.replace(gothamLightSTD, {
    selector: '.defaultHeader.flash h2',
    forceSingleLine: true,
	ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#ffffff; font-size: 20px; letter-spacing:-1.5;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	//offsetLeft: 5,
	//offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: -6,
	selectable: true
	//tuneWidth: 50,
	});
	
	//sIFR.debug.ratios({ src: 'HelveticaNeueLTSTD.swf', selector: '.glarge h2' });
	sIFR.replace(HelveticaNeue, {
    selector: '.defaultHeader.replaceHelvetica h1',
    forceSingleLine: true,
	//ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-size: 22px; letter-spacing:-1.15; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	//offsetLeft: 5,
	//offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: -5,
	selectable: true
	//tuneWidth: 50,
	});
	
	sIFR.replace(HelveticaNeue, {
    selector: '.defaultHeader.replaceHelveticaBold h1',
    forceSingleLine: true,
	//ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-weight:bold; font-size: 22px; letter-spacing:-0.75; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	//offsetLeft: 5,
	//offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: -5,
	selectable: true
	//tuneWidth: 50,
	});
	
	//sIFR.debug.ratios({ src: 'FuturaStd.swf', selector: '.glarge h2' });
	sIFR.replace(futura, {
    selector: '.defaultHeader.replaceFutura h1',
    forceSingleLine: true,
	//ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01],
    css: [
        '.sIFR-root { color:#035E92; font-size: 22px; letter-spacing:-0.5; background-color:#ffffff; display:block;}',
        'a {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #999999;}'
        ],
    wmode: 'transparent',
    //fitExactly: true,
    forceWidth: true,
	fixHover: true,
	//offsetLeft: 5,
	//offsetTop: 5,
	//forceTextTransform: true,
	tuneHeight: -5,
	selectable: true
	//tuneWidth: 50,
	});
	
  //EXTRAS
    sIFR.replace(adobe, {
      selector: 'h5#pullquote'
      ,css: 'em { font-style: normal; color: #660000; }'
      ,selectable: false
    });
  
    sIFR.replace(futura, {
      selector: 'h3.sidebox'
      ,css: {
        '.sIFR-root': { 'background-color': '#DCDCDC' }
      }
    });
  
    //sIFR.replace(adobe, {selector: 'h3'});
  
    sIFR.replace(adobe, {
      selector: 'h4.subhead'
      ,css: {
        '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
      }
      ,filters: {
        DropShadow: {
          knockout: true
          ,distance: 1
          ,color: '#330000'
          ,strength: 2
        }
      }
    });
	
	sIFR.replace(cononica, {
		selector: 'h2.subing',
		css: [
		'.sIFR-root { color: #ffffff; font-style:normal; letter-spacing: -0.05; }',
		'a { color: #3589c1; text-decoration: none; }',
		'a:hover { color: #444444; text-decoration: none; }',
		'a:active { color: #444444; text-decoration: none; }'
		],
		tuneHeight: -9,
		forceSingleLine: true, 
		wmode: 'transparent'
		
	});