var helveticalight;
var helvetivaroman;

function DoSifrConfig()
{

	sIFR.fromLocal = true;

  helveticalight = {
    src: '/static/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]
     };
	 
	 helveticaroman = {
    src: '/static/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]
     };
  
    // sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
   sIFR.useStyleCheck = true;
   sIFR.activate(helveticalight, helveticaroman);
}

function DoSifrReplacements()
{
	  
	sIFR.replace ( helveticaroman, {selector: 'h2.tt-2'
				    ,css: {
			'.sIFR-root' :{ 'color': '#0D67A2' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#FFFFFF'},
		  'a:hover': {'color': '#149FB7'}
	   }, 
		wmode: 'transparent'
	  });
		
	sIFR.replace ( helveticaroman, {selector: 'h2.tt-3'
				    ,css: {
			'.sIFR-root' :{ 'color': '#1E72A9' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#1E72A9'},
		  'a:hover': {'color': '#149FB7'}
	   }, 
		wmode: 'transparent'
	  });
	
	sIFR.replace ( helveticaroman, {selector: 'h4.tt-5'
				    ,css: {
			'.sIFR-root' :{ 'color': '#186da5' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#186da5'},
		  'a:hover': {'color': '#186da5'}
	   }, 
		wmode: 'transparent'
	  });
	
	sIFR.replace ( helveticaroman, {selector: 'h3.tt-3, h4.tt-4'
				    ,css: {
			'.sIFR-root' :{ 'color': '#0D67A2' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#0D67A2'},
		  'a:hover': {'color': '#149FB7'}
	   }, 
		wmode: 'transparent', fitExactly:true  
	  });
	
	
	sIFR.replace ( helveticaroman, {selector: 'h4.popUp-tt'
				    ,css: {
			'.sIFR-root' :{ 'color': '#0D67A2' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#0D67A2'},
		  'a:hover': {'color': '#149FB7'}
	   }, 
		wmode: 'transparent', fixFocus: true
	  });
	
	
	sIFR.replace ( helveticalight, {selector: 'h1.mainHeading'			  
				   ,css: {
	      '.sIFR-root' :{ 'color': '#0D67A2'}
		  }, wmode: 'transparent', fitExactly: true 
	  });
	
	sIFR.replace ( helveticalight, {selector: 'h2.secondHeading'			  
				   ,css: {
	      '.sIFR-root' :{ 'color': '#0D67A2', 'font-size': '1.5em' }
		  }, wmode: 'transparent'
	  });
	sIFR.replace ( helveticalight, {selector: 'h1.byType'			  
				   ,css: {
	      '.sIFR-root' :{ 'color': '#0D67A2'}
		  }, wmode: 'transparent', fitExactly:true 
	  });
	
	sIFR.replace ( helveticaroman, {selector: 'h2.tt-homeadds'
				    ,css: {
			'.sIFR-root' :{ 'color': '#0D67A2' },
	      'a': {'text-decoration': 'none'},
		  'a:link': {'color': '#FFFFFF'},
		  'a:hover': {'color': '#149FB7'}
	   }, 
		wmode: 'transparent'
	  });
				  
		 
	
	sIFR.replace ( helveticalight, {selector: 'h3.intro'
				  ,css: {
	      '.sIFR-root' :{ 'color': '#27ACC4', 'font-size': '1.3em' }
		  }	, wmode: 'transparent'
	  });


}


DoSifrConfig();
DoSifrReplacements();
