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 avenir = { src: 'img/flash/avenir.swf' };
var aventegarde = { src: 'img/flash/aventegarde.swf' }; 

//sIFR.ua.supported = sIFR.ua.supported && (!sIFR.ua.ie || sIFR.ua.ieVersion > 6);


sIFR.activate(avenir, aventegarde);

 sIFR.useStyleCheck = true;

sIFR.replace(avenir, {
  selector: 'h1.avenir',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #ffffff; font-size: 38px;}',
	  	'em { font-style: normal; color: #62bf3b; }' ]
});



sIFR.replace(avenir, {
  selector: 'h2.avenir',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #62bf3b; font-size: 18px; font-weight: bold;}',
	  	'em { font-style: normal; color: #62bf3b; }' ]
});

sIFR.replace(avenir, {
  selector: 'h3.avenir',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #ffffff; font-size: 16px;}',
	  	'em { font-style: normal; color: #62bf3b; }' ]
});

sIFR.replace(aventegarde, {
  selector: '#menu .aventegarde',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #ffffff; font-size: 13px;  }',
		'a {color: #ffffff; text-decoration: none; font-weight: normal;}',
		'a:hover { color: #62bf3b }'
		]
});

if(!sIFR.ua.ie || sIFR.ua.ieVersion > 6){
sIFR.replace(aventegarde, {
  selector: '#leftbar ul ul li.innergarde',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #ffffff;  font-size: 12px;	}',
		'a {  color: #ffffff; text-decoration: none; margin-left: 47px;  font-weight: normal;	clear: both; background: url(img/ulullibg.gif) no-repeat 36px 4px;	list-style-type: none;	margin: 0px;	padding: 0px;	width: 153px;	height: auto !important;	min-height: 15px;	height: 15px;	line-height: 15px;}',
		'a:hover { color: #62bf3b }'
		]
});


sIFR.replace(aventegarde, {
  selector: '#leftbar ul li.aventegarde:not(.nosifr)',
  wmode: 'transparent',
  css: [
	  	'.sIFR-root { color: #ffffff;  font-size: 13px;	}',
		'a {  color: #ffffff; text-decoration: none; margin-left: 47px; line-height: 35px; font-weight: normal;}',
		'a:hover { color: #62bf3b }'
		]
});

}