/***************************************************************************** It is adviced to place the sIFR JavaScript calls in this file, keeping it separate from the `sifr.js` file. That way, you can easily swap the `sifr.js` file for a new version, while keeping the configuration. You must load this file *after* loading `sifr.js`. That said, you're of course free to merge the JavaScript files. Just make sure the copyright statement in `sifr.js` is kept intact. *****************************************************************************/ // Make an object pointing to the location of the Flash movie 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 helveticaw = { src: 'http://www.nationalexpressgroup.com/ar2008/sifr/helvetica-w.swf' }; var helveticag = { src: 'http://www.nationalexpressgroup.com/ar2008/sifr/helvetica-g.swf' }; var helveticaneue = { src: 'http://www.nationalexpressgroup.com/ar2008/sifr/helvetica_neue.swf' }; // sIFR.useStyleCheck = true; // Next, activate sIFR: sIFR.activate(helveticaw, helveticag, helveticaneue); // If you want, you can use multiple movies, like so: // // var futura = { src: '/path/to/futura.swf' }; // var garamond = { src '/path/to/garamond.swf' }; // var rockwell = { src: '/path/to/rockwell.swf' }; // // sIFR.activate(futura, garamond, rockwell); // // Remember, there must be *only one* `sIFR.activate()`! // The second argument determines what the Flash text looks like. The main text // is styled via the `.sIFR-root` class. Here we've specified `background-color` // of the entire Flash movie to be a light grey, and the `color` of the text to // be red. Read more about styling at . //sIFR.replace(helveticaneue, {selector: "#slinks h2:not(#bk)"}); //sIFR.replace(helveticaw, { // selector: '#slinks h2', // css: '.sIFR-root { color: #000000; }', // wmode: 'transparent' // //}); sIFR.replace(helveticaw, { selector: '#homeSplash h1', css: '.sIFR-root { background: transparent; color: #fff;line-height: 1em; }', wmode: 'transparent' }); sIFR.replace(helveticaneue, { selector: 'h1.title', css: '.sIFR-root { color: #828282;font-size: 1.2em}', wmode: 'transparent' }); sIFR.replace(helveticaneue, { selector: 'p.title', css: '.sIFR-root { color: #828282;font-size: 1.2em}', wmode: 'transparent' }); sIFR.replace(helveticaneue, { selector: '#contentContainer h1', css: [ '.sIFR-root { color: #1b232a;font-size: 1.2em}', ], wmode: 'transparent' }); sIFR.replace(helveticaneue, { selector: '#contentContainer h1', css:'.sIFR-root span{ color: #5bb4e5;font-size: 1.2em}', wmode: 'transparent', fitExactly : true }); sIFR.replace(helveticaneue, { selector: '.threeColContent h2.subhead, .twoColContent h2.subhead', css: '.sIFR-root { color: #5bb4e5;}', wmode: 'transparent', fitExactly : false }); //sIFR.replace(helveticaneue, { // selector: '.threeColContent h2, .twoColContent h2', // css: '.sIFR-root { color: #5bb4e5;}', // wmode: 'transparent', // fitExactly : false //}); //sIFR.replace(helveticaneue, { // selector: '#rightColumn h2.rc', // css: [ // '.sIFR-root { color: #1b232a;font-size: 1.2em}', // ], // wmode: 'transparent' //});