parseSelector.pseudoClasses = {
  'not': function(nodes, selector) {
    var result = [];
    each: for(var i = 0, node; i < nodes.length; i++) {
      node = nodes[i];
      var ignore = parseSelector(selector, node.parentNode);
      for(var j = 0; j < ignore.length; j++) {
        if(ignore[j] == node) continue each;
      }
      result.push(node);
    }
    return result;
  }
}

var helveticaneue = {
	src: 'js/sifr/helveticaneu35th45.swf',
	ratios: [7,1.32,8,1.31,12,1.27,19,1.23,22,1.2,29,1.19,36,1.18,49,1.17,50,1.16,51,1.17,81,1.16,85,1.15,86,1.16,92,1.15,93,1.16,1.15]
};

sIFR.delayCSS  = false;
sIFR.compatMode = true;

sIFR.activate(helveticaneue);

sIFR.replace(helveticaneue, {
	selector: '#copy h2:not(.logo)',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 32px; color: #534400; text-transform: lowercase; }'
	],
	tuneHeight: 4
});

sIFR.replace(helveticaneue, {
	selector: '.news h3',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 21px; color: #534400; background-color: #f6f9d6; text-transform: lowercase; }'
	],
	wmode: 'transparent'
});

sIFR.replace(helveticaneue, {
	selector: '#latest h3',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 21px; color: #534400; background-color: #f6f9d6; text-transform: lowercase; }'
	],
	wmode: 'transparent'
});

sIFR.replace(helveticaneue, {
	selector: 'h2.sub',
	css: [
		'.sIFR-root { color: #534400; font-size: 15px; font-weight: bold; text-transform: lowercase; }'
	]
});

sIFR.replace(helveticaneue, {
	selector: '.white-label>h3',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 22px; color: #534400; leading: 0; text-transform: lowercase; }',
		'.sIFR-root a { font-weight: bold; color: #96a30d; text-decoration: none; }',
		'.sIFR-root a:hover { font-weight: bold; color: #534400; text-decoration: underline; }'	],
	wmode: 'transparent'
});

sIFR.replace(helveticaneue, {
	selector: 'h3:not(.skip)',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 27px; color: #889100; leading: 0; text-transform: lowercase; }',
		'.sIFR-root a { font-weight: bold; font-size: 80%; color: #96a30d; }',
		'.sIFR-root a:hover { font-weight: bold; font-size: 80%; color: #534400; }'
	]
});

sIFR.replace(helveticaneue, {
	selector: '.site',
	css: [
		'.sIFR-root { font-weight: bold; font-size: 27px; color: #889100; leading: 0; text-transform: lowercase; text-align: right; }',
		'.sIFR-root a { font-weight: bold; font-size: 80%; color: #96a30d; leading: 0; text-transform: lowercase; text-decoration: none; }',
		'.sIFR-root a:hover { font-weight: bold; font-size: 80%; color: #534400; }'
	]
});