
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 din = {
  src: '/_common/swf/sifr.swf'
  ,ratios: [8, 1.42, 9, 1.33, 12, 1.35, 21, 1.3, 31, 1.27, 44, 1.26, 45, 1.24, 50, 1.25, 58, 1.24, 59, 1.25, 79, 1.24, 81, 1.23, 85, 1.24, 86, 1.23, 87, 1.24, 90, 1.23, 91, 1.24, 1.23]
};

sIFR.activate(din);

sIFR.replace(din, {
    selector: 'h2#pageheader',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#999999', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'div.welcome h2',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#669999', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'div.eventwrap h2',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#565656', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'h2',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#5a2458', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'div.feature h3',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#669999', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'div.countdown h3',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#ffffff', 'font-weight': 'bold' }
    }
  });
sIFR.replace(din, {
    selector: 'ul.news h3',
	wmode:'transparent'
    ,css: [
      '.sIFR-root { color:#7f7f7f; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #669999;  }'
      ,'a:hover { color: #5a2458; }'
    ]
  });
sIFR.replace(din, {
    selector: 'h3',
	wmode:'transparent'
    ,css: [
      '.sIFR-root { color:#666666; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #669999;  }'
      ,'a:hover { color: #5a2458; }'
    ]
  });
sIFR.replace(din, {
    selector: 'div.summary h4',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#669999', 'font-weight': 'bold' }
    }
  });

if(Browser.Engine.trident && Browser.Engine.version == 4){

}else{
	sIFR.replace(din, {
    selector: 'div.related h4',
	wmode:'transparent'
    ,css: {
      '.sIFR-root': { 'color': '#666666', 'font-weight': 'bold' }
    }
  });	
}
/*sIFR.replace(din, {
    selector: 'ul.nav3 li',
	wmode:'transparent'
    ,css: [
      '.sIFR-root { color:#666666; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #666666;  }'
      ,'a:hover { color: #5a2458; }'
    ]
  });*/
