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;
	}
}

/*
A changer pour Kha*/
/*
var rockwell = {
src: '/sites/all/themes/ulfront/library/swf/rockwell.swf',
src: '/sites/all/themes/ulfront/library/swf/rockwell.swf',
*/

var rockwell = {
src: '/sites/all/themes/ulfront/library/swf/rockwell.swf',
	ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
};

sIFR.useStyleCheck = true;
sIFR.activate(rockwell);

sIFR.replace(rockwell, {
	selector: 'div.heading h2',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 14px; font-weight: bold; text-align: center; text-transform: uppercase; }'],
	offsetTop: 7,
	tuneHeight: 10,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: 'div.heading h4',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 13px; font-weight: bold; text-align: center; text-transform: uppercase; }'],
	offsetTop: 7,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: 'div.links h5',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 14px; font-weight: bold; text-align: center; text-transform: uppercase; }'],
	offsetTop: 8,
	offsetLeft: 18,
	tuneHeight: 10,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: 'div.extra h5',
	css: ['.sIFR-root { color: #4867C6; font-size: 14px; font-weight: bold; text-align: center; }'],
	offsetTop: 4,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: 'div.folders h5',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 14px; font-weight: bold; text-align: center; text-transform: uppercase; }'],
	offsetTop: 8,
	tuneHeight: 10,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#intro td h2',
	css: ['.sIFR-root { color: #5874C8; font-size: 30px; font-weight: bold; text-align: left; }'],
	offsetTop: -7,
	tuneHeight: -13,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#intro h2.quiet',
	css: ['.sIFR-root { color: #5874C8; font-size: 30px; font-weight: bold; text-align: left; }'],
	offsetTop: -7,
	tuneHeight: -13,
	wmode: 'transparent'
});
sIFR.replace(rockwell, {
        selector: '#intro h2.quiet2',
        css: ['.sIFR-root { font-size: 30px; font-weight: bold; text-align: left; }'],
        offsetTop: -7,
        tuneHeight: -13,
        wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#intro h2',
	css: ['.sIFR-root { color: #000000; font-size: 35px; font-weight: bold; text-align: left; }', '.red { color: #C90000; }'],
	offsetTop: -4,
	tuneHeight: -6,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#intro h3:not(.plain)',
	css: ['.sIFR-root { color: #333333; font-size: 18px; font-weight: bold; text-align: left; text-transform: uppercase; }'],
	tuneHeight: -9,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#main table.country h3',
	css: ['.sIFR-root { color: #000000; font-size: 12px; font-weight: bold; text-align: center; text-transform: uppercase; }'],
	offsetTop: 7,
	tuneHeight: 8,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#main h3:not(.plain)',
	css: ['.sIFR-root { color: #000000; font-size: 15px; font-weight: bold; text-align: left; }'],
	fitExactly: true,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#in-stock h4',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 18px; font-weight: bold; margin-left: 5px; text-align: left; }'],
	tuneHeight: -4,
	tuneWidth: 9,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#look-through h4',
	css: ['.sIFR-root { color: #000000; font-size: 13px; font-weight: bold; text-align: center; }'],
	tuneHeight: 5,
	offsetTop: 6,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#sidebar h4',
	css: ['.sIFR-root { color: #FFFFFF; font-size: 13px; font-weight: bold; text-align: center; }'],
	offsetTop: 8,
	tuneHeight: 9,
	wmode: 'transparent'
});

sIFR.replace(rockwell, {
	selector: '#in-stock h5',
	css: ['.sIFR-root { color: #000000; font-size: 12px; font-weight: bold; text-align: left; }'],
	tuneHeight: -6,
	wmode: 'transparent'
});


sIFR.replace(rockwell, {
	selector: '#bottom-nav span',
	css: ['a { color: #FFFFFF;text-decoration:none;}','a:hover {color: #FFFFFF;text-decoration:underline;}','.sIFR-root { color: #FFFFFF; font-size: 11px; font-weight: normal; text-align: center;forceSingleLine; }'],
	offsetTop: 10,
	tuneHeight: 14,
	wmode: 'transparent'
});
