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 CgBernhardtMd = {
  src: '/js/CgBernhardtMd.swf'
};
var GeometricSlabserifBd = {
  src: '/js/GeometricSlabserifBd.swf'
};
var CgBernhardtMd_ratio = [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01];
var GeometricSlabserifBd_ratio = [10, 1.13, 13, 1.04, 25, 1, 37, 0.98, 50, 0.96, 69, 0.95, 123, 0.94, 124, 0.93, 0.94];

sIFR.activate(CgBernhardtMd, GeometricSlabserifBd);

sIFR.replace(CgBernhardtMd, {
  	selector: '#nav ul li',
	wmode: 'transparent',
	tuneWidth: 6,
	ratios: CgBernhardtMd_ratio,
	css: [
      '.sIFR-root {	color: #919181; }',
	  '.sIFR-root a { color: #919181; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #515140; }',
	  '.sIFR-root .active { color: #515140; }'
    ]
});
sIFR.replace(GeometricSlabserifBd, {
  	selector: '.gradTop h1 span',
	wmode: 'transparent',
	fitExactly: true,
	repaintOnResize:false,
	tuneHeight: -6,
	tuneWidth: 12,
	ratios: GeometricSlabserifBd_ratio,
	css: [
      '.sIFR-root {	color: #515140;  margin-left: 5; }'
    ]
});
sIFR.replace(GeometricSlabserifBd, {
  	selector: '#banner h1 span, #content h1 span',
	wmode: 'transparent',
	fitExactly: true,
	tuneHeight: -6,
	tuneWidth: 6,
	ratios: GeometricSlabserifBd_ratio,
	css: [
      '.sIFR-root {	color: #FFFFFF;  margin-left: 5; margin-right: 5; }'
    ]
});
sIFR.replace(GeometricSlabserifBd, {
  	selector: '.portfolio h3',
  	wmode: 'transparent',
  	tuneHeight: -6,
  	ratios: GeometricSlabserifBd_ratio,
  	css: [
      '.sIFR-root {	color: #757562; margin-left: 3; margin-right: 3; }' 
	]
});
sIFR.replace(GeometricSlabserifBd, {
  	selector: '#news h2, .twtr-widget h2, .row h2, .feature h3',
  	wmode: 'transparent',
  	tuneHeight: -6,
  	ratios: GeometricSlabserifBd_ratio,
  	css: [
      '.sIFR-root {	color: #FFFFFF; margin-left: 3; margin-right: 3; }' 
	]
});
sIFR.replace(GeometricSlabserifBd, {
  	selector: 'h2, .row h3',
	wmode: 'transparent',
	tuneHeight: -6,
	ratios: GeometricSlabserifBd_ratio,
	css: [
      '.sIFR-root {	color: #757562; }'
    ]
});


//sIFR.debug.ratios({  src: 'js/CgBernhardtMd.swf', selector: '#nav ul li' });

