/*To hide certain classes from sifr*/
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;
  }
}
/*****************************Hide Options
   1. If the element that is supposed to be shown as plain text (i.e. not  replaced by sIFR) has a specific ID or class it’s simply: sIFR.replace(cochin, {selector: "h1, h2:not(.example)"});
– in real words this means: every h2 that does not have the class “example” will be replaced, i.e. the h2s that have that class will not be replaced but shown as plain default text.
   2. If the element has no specific ID or class then you must use a selector that is the parent of that element. Let’s assume that our h2 that shouldn’t be replaced is in a div with the class “example” (while the other ones that are replaced are not in such a div) then we would write: sIFR.replace(cochin, {selector: "h1, div:not(.example) h2"});
– in real words that means: Every h2 that is in a div that does not have the class “example” should be replaced, i.e. h2s in divs with that class should not be replaced but shown as plain default text.
*****************************End hides*/
/*****************************************************************************
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 on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.
var blakely = { src: 'http://www.psfollies.com/uploads/application/plug-ins/font-replacement/sifr/flash/blakely.swf' };
var fabul50n = { src: 'http://www.psfollies.com/uploads/application/plug-ins/font-replacement/sifr/flash/fabul50n.swf' };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

// sIFR.useStyleCheck = true;
//Make sIFR embed fit the the font size exactly calculated by flash - but kills centering so use tuneWidth
//sIFR.fitExactly = true;
sIFR.repaintOnResize = true;
// Next, activate sIFR:
sIFR.activate(blakely, fabul50n);

// 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()`!

// Now we can do the replacements. You can do as many as you like, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// 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 <http://wiki.novemberborn.net/sifr3/Styling>.

// Elements with classes
sIFR.replace(fabul50n, {
  selector: 'span.big',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #c60b46; text-align: left; text-decoration: underline; }','a:link { color: #c60b46;  text-decoration: underline;}','a:hover { color: #c60b46; text-decoration: none; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
// Fixed Width 475
sIFR.replace(blakely, {
  selector: 'h1.h1475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 475; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent',  filters: {
  DropShadow: {distance: 2, angle: 20, color: '#000000',strength: 1, alpha: .5}}
  });
sIFR.replace(blakely, {
  selector: 'h2.h2475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 475; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h3.h3475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 475; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h4.h4475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 475; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(blakely, {
  selector: 'h5.h5475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 475; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(fabul50n, {
  selector: 'h6.h6475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 475; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
sIFR.replace(fabul50n, {
  selector: 'span.big475',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #c60b46; text-align: left; text-decoration: underline; width: 475; }','a:link { color: #c60b46;  text-decoration: underline;}','a:hover { color: #c60b46; text-decoration: none; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
// Fixed Width 430
sIFR.replace(blakely, {
  selector: 'h1.h1430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: center; width: 430; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent',  filters: {
  DropShadow: {distance: 2, angle: 20, color: '#000000',strength: 1, alpha: .5}}
  });
sIFR.replace(blakely, {
  selector: 'h2.h2430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; width: 430; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h3.h3430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; width: 430; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h4.h4430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 430; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(blakely, {
  selector: 'h5.h5430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 430; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(fabul50n, {
  selector: 'h6.h6430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 430; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
sIFR.replace(fabul50n, {
  selector: 'span.big430',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #c60b46; text-align: left; text-decoration: underline; width: 430; }','a:link { color: #c60b46;  text-decoration: underline;}','a:hover { color: #c60b46; text-decoration: none; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
// Fixed Width 395
sIFR.replace(blakely, {
  selector: 'h1.h1395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: center; width: 395; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent',  filters: {
  DropShadow: {distance: 2, angle: 20, color: '#000000',strength: 1, alpha: .5}}
  });
sIFR.replace(blakely, {
  selector: 'h2.h2395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; width: 395; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h3.h3395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; width: 395; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h4.h4395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 395; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(blakely, {
  selector: 'h5.h5395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 395; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(fabul50n, {
  selector: 'h6.h6395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 395; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
sIFR.replace(fabul50n, {
  selector: 'span.big395',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #c60b46; text-align: left; text-decoration: underline; width: 395; }','a:link { color: #c60b46;  text-decoration: underline;}','a:hover { color: #c60b46; text-decoration: none; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
// Fixed Width 295 Align Left
sIFR.replace(blakely, {
  selector: 'h1.h1295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 295; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent',  filters: {
  DropShadow: {distance: 2, angle: 20, color: '#000000',strength: 1, alpha: .5}}
  });
sIFR.replace(blakely, {
  selector: 'h2.h2295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 295; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h3.h3295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 295; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h4.h4295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 295; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(blakely, {
  selector: 'h5.h5295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; width: 295; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(fabul50n, {
  selector: 'h6.h6295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; width: 295; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
sIFR.replace(fabul50n, {
  selector: 'span.big295',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #c60b46; text-align: left; text-decoration: underline; width: 295; }','a:link { color: #c60b46;  text-decoration: underline;}','a:hover { color: #c60b46; text-decoration: none; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });

// Basic Header Elements
sIFR.replace(blakely, {
  selector: 'h1',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: center; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent',  filters: {
  DropShadow: {distance: 2, angle: 20, color: '#000000',strength: 1, alpha: .5}}
});
sIFR.replace(blakely, {
  selector: 'h2',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h3',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: center; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent'
  });
sIFR.replace(blakely, {
  selector: 'h4',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(blakely, {
  selector: 'h5',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #d63394; text-align: left; }','a:link { color: #d63394;  text-decoration: none;}','a:hover { color: #d63394; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true
  });
sIFR.replace(fabul50n, {
  selector: 'h6',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #000000; text-align: left; }','a:link { color: #000000;  text-decoration: none;}','a:hover { color: #000000; text-decoration: underline; }'], wmode: 'transparent', fitExactly: true, tuneWidth: 3
  });
