var gaJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
gaJsHost = gaJsHost + location.hostname;

var helveticaroman = {
    src: gaJsHost + '/js/helveticaroman.swf'
	,ratios:[10,1.32,16,1.27,23,1.23,24,1.21,25,1.22,31,1.21,38,1.2,42,1.19,43,1.2,62,1.19,66,1.18,67,1.19,113,1.18,114,1.17,119,1.18,120,1.17,1.18]
  };

  var helveticalight = {
    src: gaJsHost + '/js/helveticalight.swf'
	,ratios:[6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,28,1.23,34,1.22,38,1.21,39,1.22,46,1.21,50,1.2,51,1.21,80,1.2,83,1.19,84,1.2,88,1.19,89,1.2,1.19]
  };

  // sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
  sIFR.useStyleCheck = true;
  sIFR.activate(helveticaroman, helveticalight);
		 
  sIFR.replace(helveticalight, {
    selector: 'h1.type'
    ,css: [
      '.sIFR-root { color: #186DA5; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #000000; }'
      ,'a:hover { color: #27ACC4; }'
    ],
		wmode: 'transparent', fitExactly:true
  });

  sIFR.replace(helveticalight, {
    selector: 'h2.type,h2.border'
    ,css: [
      '.sIFR-root { color: #186DA5; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #000000; }'
      ,'a:hover { color: #27ACC4; }'
    ],
		wmode: 'transparent', fitExactly:true
  });
  
  
  sIFR.replace(helveticaroman, {
    selector: 'h3.sidebartitle, h3.sidebartitle_nobg'
    ,css: [
      '.sIFR-root { color: #0D67A2;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #0D67A2; }'
      ,'a:hover { color: #27ACC4; }'
    ],
	wmode: 'transparent', fitExactly:true    
  });  
  
  sIFR.replace(helveticaroman, {
    selector: 'h5#pullquote'
    ,css: 'em { font-style: normal; color: #660000; }'
    ,selectable: false
  });
  
  sIFR.replace(helveticalight, {
    selector: 'h3.type,h3.typelarge'
    ,css: [
      '.sIFR-root { color: #27ACC4; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #27ACC4; }'
      ,'a:hover { color: #CCCCCC; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });
  
  sIFR.replace(helveticaroman, {
    selector: 'h3.type-db'
    ,css: [
      '.sIFR-root { color: #186DA5; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #27ACC4; }'
      ,'a:hover { color: #CCCCCC; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });
  
  sIFR.replace(helveticaroman, {
    selector: 'h3.type-db2'
    ,css: [
      '.sIFR-root { color: #ffffff; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #27ACC4; }'
      ,'a:hover { color: #CCCCCC; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });    
  
  
  sIFR.replace(helveticaroman, {
    selector: 'h4.type'
    ,css: [
      '.sIFR-root { color: #0D67A2;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #0D67A2; }'
      ,'a:hover { color: #27ACC4; }'
    ],
	wmode: 'transparent'    
  }); 
  
  sIFR.replace(helveticaroman, {
    selector: 'legend'
    ,css: {
      '.sIFR-root': { 'color': '#186DA5' }
    },
    wmode: 'transparent',fitExactly:true
  });

    sIFR.replace(helveticaroman, {
    selector: 'p.strapline'
    ,css: [
      '.sIFR-root { color: #ffffff; font-style: italic; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });

/* Home page */  

    sIFR.replace(helveticaroman, {
    selector: 'h1.strapline'
    ,css: [
      '.sIFR-root { color: #ffffff; font-style: italic; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });
   sIFR.replace(helveticalight, {
    selector: 'h2.hph2'
    ,css: [
      '.sIFR-root { color: #ffffff; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });
     sIFR.replace(helveticaroman, {
    selector: 'h4.hph4'
    ,css: [
      '.sIFR-root { color: #ffffff; }'
    ],
		wmode: 'transparent', fitExactly:true  
  });

 /* Standard headers */
     sIFR.replace(helveticalight, {
    selector: 'h1'
    ,css: [
      '.sIFR-root { color: #186DA5; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #186DA5; }'
      ,'a:hover { color: #27ACC4; }'
    ],
		wmode: 'transparent', fitExactly:true
  });
  sIFR.replace(helveticalight, {
    selector: 'h2'
    ,css: [
      '.sIFR-root { color: #186DA5; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #186DA5; }'
      ,'a:hover { color: #27ACC4; }'
    ],
		wmode: 'transparent', fitExactly:true
  });
  
  sIFR.replace(helveticaroman, {
    selector: 'h3, h3.promo_h3'
    ,css: [
      '.sIFR-root { color: #149FB7;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #0D67A2; }'
      ,'a:hover { color: #27ACC4; }'
    ],
	wmode: 'transparent', fitExactly:true    
  });  
  
