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 univers_light_uc = { src: '/assets/swf/univers_light_uc.swf' };
var univers_light_c = { src: '/assets/swf/univers_light_c.swf' };
var univers_thin_uc = { src: '/assets/swf/univers_thin_uc.swf' };
var univers_uc = {
	src: '/assets/swf/univers_uc.swf'
	,ratios: [6, 1.1, 7, 1.07, 8, 1.06, 10, 1.05, 16, 0.99, 30, 0.97, 36, 0.93, 37, 0.94, 39, 0.93, 40, 0.94, 56, 0.93, 60, 0.92, 61, 0.93, 92, 0.92, 94, 0.91, 95, 0.92, 96, 0.91, 103, 0.92, 112, 0.91, 113, 0.92, 0.91]	
};
var univers_c = { src: '/assets/swf/univers_c.swf' };
var univers_bold = {
	src: '/assets/swf/univers_bold.swf'
	,ratios: [8, 1.1, 10, 1.05, 12, 1.04, 20, 1, 21, 0.97, 23, 0.98, 30, 0.96, 34, 0.95, 35, 0.96, 46, 0.94, 47, 0.95, 65, 0.94, 69, 0.93, 70, 0.94, 106, 0.93, 107, 0.92, 118, 0.93, 120, 0.92, 124, 0.93, 0.92]
};
sIFR.useDomLoaded = false;
sIFR.useStyleCheck = true;

sIFR.activate(univers_light_uc, univers_thin_uc, univers_uc, univers_light_c, univers_bold);

//sIFR.debug.ratios({ src: '/assets/swf/univers_uc.swf', selector: '#sub_nav ul > li span' });

sIFR.replace(univers_light_uc, {
  selector: 'div:not(.landing_desc)>h4',
  css: '.sIFR-root {color: #ee7512; font-size: 24px;}'
});

sIFR.replace(univers_light_uc, {
  selector: 'h5',
  css: '.sIFR-root {color: #999999;}'
});

sIFR.replace(univers_thin_uc, {
  selector: 'h6',
  css: '.sIFR-root {color: #fa7b13; font-size: 50px; font-weight: normal; padding: 0 0 0 0; margin: 0 0 0 0;}'
});

sIFR.replace(univers_thin_uc, {
  selector: '#home #top h1',
  css: '.sIFR-root {color: #fb881c; letter-spacing: 21;}'
});


sIFR.replace(univers_light_c, {
  selector: '#home #top p',
  css: '.sIFR-root {color: #666666; leading: 6; font-size: 16px; }'
});

sIFR.replace(univers_thin_uc, {
  selector: '.two h1',
  css: '.sIFR-root {color: #333333; letter-spacing: 11; text-transform: uppercase; font-size: 48px;}'
  ,wmode: 'transparent'
});

sIFR.replace(univers_thin_uc, {
  selector: '.one h1',
  css: '.sIFR-root {color: #333333; letter-spacing: 11; text-transform: uppercase; font-size: 72px;}'
  ,wmode: 'transparent'
  ,offsetLeft: 1
});

sIFR.replace(univers_light_c, {
  selector: '#interior #top p'  
  ,css: [
  '.sIFR-root {color: #666666; leading: 6;}'
        ,'a { text-decoration: none;}'
        ,'a:link { color: #fb881c;}'
        ,'a:hover { color: #696056;}'
        ,'.active { color: #696056; }'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(univers_c, {
  selector: '.testimonial p.test_name',
  css: '.sIFR-root {color: #696056; leading: 6; text-transform: uppercase; text-align: right;}'
  ,wmode: 'transparent'
});

sIFR.replace(univers_light_c, {
  selector: '.testimonial p',
  css: '.sIFR-root {color: #b0baa8; leading: 6;}'
  ,wmode: 'transparent'
});

sIFR.replace(univers_thin_uc, {
  selector: 'h2',
  css: '.sIFR-root {color: #ee7512; font-size: 46px; leading: 8;}'
});

sIFR.replace(univers_light_uc, {
  selector: 'h3',
  css: [
  '.sIFR-root {color: #333333; border: 1px solid #ffffff; font-size: 30px;}'
  , '.gray {color: #696056;}'
  ]
});

sIFR.replace(univers_uc, {
  selector: '#sub_nav ul > li span'
  ,css: [
        '.sIFR-root { color: #ffffff; font-size: 16px; cursor: pointer;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #333333;}'
        ,'.active { color: #333333; }'
      ]
  ,wmode: 'transparent'
  ,fixFocus: true
  ,forceSingleLine: true
  ,tuneWidth: '2'
});


