var newsgothic = {
  src: '/sifr/newsgothicmt3.swf'
};

sIFR.prefetch(newsgothic);

sIFR.activate();

sIFR.replace(newsgothic, {
  selector: 'h1.titlecaps'
  ,css: [
  	  '.sIFR-root { font-weight: normal; color: #efefef; background-color: #8f8f8f; text-transform: uppercase; letter-spacing: 1.5; }'
    ]
  ,fitExactly: true
});

sIFR.replace(newsgothic, {
  selector: '#section-name h3'
  ,css: [
  	  '.sIFR-root { font-weight: bold; color: #efefef; background-color: #8f8f8f; text-transform: uppercase; letter-spacing: 1.5; }'
    ]
  ,offsetLeft: 2	
});

sIFR.replace(newsgothic, {
  selector: 'h1'
  ,css: [
      '.sIFR-root { font-weight: normal; color: #efefef; background-color: #8f8f8f; letter-spacing: -0.6; kerning: true; }'
    ]
  ,offsetLeft: 2
  ,thickness: -100
  ,tuneHeight: -1
});

sIFR.replace(newsgothic, {
  selector: '#left-nav .left_box_active'
  ,css: [
  	  '.sIFR-root { font-weight: bold; color: #b30303; background-color: #f9f9f9; text-transform: uppercase; letter-spacing: 0.4; }'
      ,'a { color: #b30303; text-decoration: none; }'
      ,'a:link { color: #b30303; background-color: #f9f9f9; }'
      ,'a:hover { color: #b30303; background-color: #f9f9f9; }'	  
    ]
  ,transparent: true
  ,tuneWidth: 204
  ,tuneHeight: 19
  ,offsetLeft: 27
  ,offsetTop: 13
});

sIFR.replace(newsgothic, {
  selector: '#left-nav li'
  ,css: [
  	  '.sIFR-root { font-weight: bold; color: #8f8f8f; background-color: #ffffff; text-transform: uppercase; letter-spacing: 0.4; }'
      ,'a { color: #7f7f7f; text-decoration: none; }'
      ,'a:link { color: #7f7f7f; background-color: #f9f9f9; }'
      ,'a:hover { color: #b30303; background-color: #f9f9f9; }'
    ]
  ,transparent: true
  ,tuneWidth: 204
  ,tuneHeight: 19
  ,offsetLeft: 27
  ,offsetTop: 13
  ,onRollOver: function rollover(obj) {
  			//triggered when mouse moves over flash movie - matches #left_nav li hover
			obj.changeCSS([
		  	  '.sIFR-root { font-weight: bold; color: #8f8f8f; letter-spacing: 0.4; }'
		      ,'a { color: #b30303; text-decoration: none; }'
		      ,'a:link { color: #b30303; }'
		      ,'a:hover { color: #b30303; }'
		    ]);	}
  ,onRollOut: function rollout(obj) {
  			//reset the text colour back to normal
			obj.changeCSS([
		  	  '.sIFR-root { font-weight: bold; color: #8f8f8f; letter-spacing: 0.4; }'
		      ,'a { color: #7f7f7f; text-decoration: none; }'
		      ,'a:link { color: #7f7f7f; }'
		      ,'a:hover { color: #b30303; }'
		    ]);	}
});

sIFR.replace(newsgothic, {
  selector: '#team-title h4'
  ,css: [
  	  '.sIFR-root { font-weight: bold; color: #ffffff; background-color: #B30303; text-transform: uppercase; letter-spacing: 0.4; }'
    ]
  ,tuneHeight: 2
  ,offsetTop: 3
  ,fitExactly: true
  //ratios to stop flickering of the flash movie on load and help font size calc - gen from sifr-debug.js
  ,ratios: [8,1.42,9,1.33,12,1.35,14,1.29,15,1.3,19,1.28,27,1.27,28,1.25,32,1.26,33,1.24,34,1.25,53,1.24,82,1.23,85,1.22,86,1.23,1.22]
});

sIFR.replace(newsgothic, {
  selector: '#footer p'
  ,css: [
  	  '.sIFR-root { font-size: 9px; font-weight: normal; color: #676767; background-color: #eeeeee; letter-spacing: 0.5; margin: 0; padding: 0; text-align: left; text-indent: 0; leading: 0; }'
	  ,'strong { color: #676767; background-color: #eeeeee; letter-spacing: 0.5; margin: 0; padding: 0; text-align: left; text-indent: 0; }'
	  ,'legal { color: #676767; background-color: #eeeeee; text-transform: none; letter-spacing: 0.5; margin: 0; padding: 0; text-align: left; text-indent: 0; }'
      ,'a { color: #676767; text-decoration: none; }'
      ,'a:link { color: #8f8f8f; background-color: #eeeeee; }'
      ,'a:hover { color: #b30303; background-color: #eeeeee; }'
    ]
  ,ratios: [8,1.18,13,1.16,23,1.18,26,1.21,54,1.2,55,1.21,59,1.2,60,1.21,64,1.2,65,1.21,66,1.2,69,1.21,71,1.2,75,1.21,76,1.2,99,1.21,100,1.2,1.21]
  //flash displays whitespace at the beginning of lines where the browsers strip it out.
  //Contribute will automatically put a space or linebreak after a br tag so this will strip it out
  ,modifyContentString: function(s) { return s.replace(/(<br>\s){1,}/g,"<br />"); }
});