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;
  }
}

/*****************************************************************************
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 tradegothicbold = { src: '/sites/all/themes/zen/zen_gmn/sifr3-r436/flash/tradegothicbold.swf' };
var tradegothiccond = { src: '/sites/all/themes/zen/zen_gmn/sifr3-r436/flash/tradegothiccond.swf' };
var arial = { src: '/sites/all/themes/zen/zen_gmn/sifr3-r436/flash/arial.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;

// Next, activate sIFR:
sIFR.activate(tradegothicbold,tradegothiccond,arial);

// 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>.

sIFR.replace(tradegothiccond, {
  selector: '.front #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-about-us #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-about-us #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-join-gmn #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-join-gmn #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});
/* 
 * 04-30-2009 B. Tribulski - Added for the GMN Examiner newsletter
 */
sIFR.replace(tradegothiccond, {
  selector: '.page-gmn-examiner-2010-winter #content-header h1.title',
  css: '.sIFR-root {color: #336666; text-align:center;}',
  wmode: 'transparent'
});
sIFR.replace(tradegothiccond, {
  selector: '.page-gmn-examiner-2010-winter #content-area .view-header h2',
  css: '.sIFR-root {text-align:center;}',
  wmode: 'transparent'
});


sIFR.replace(tradegothiccond, {
  selector: '.section-gmn-examiner #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

/*
sIFR.replace(tradegothiccond, {
  selector: '.section-gmn-examiner #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});
*/


/* 
 * 05-11-2009 B. Tribulski - Added for the Reasons to Join GMN page
 */
sIFR.replace(tradegothiccond, {
  selector: '.section-reasons-join-gmn #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-reasons-join-gmn #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

/* 
 * 12-03-2009 B. Tribulski - Added for the Conference Area
 */
sIFR.replace(tradegothiccond, {
  selector: '.section-annual-conference #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-annual-conference #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-support-gmn #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-support-gmn #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});
/* 
 * 04-15-2011 B. Tribulski - Added for the GM Guide Page
 */
 sIFR.replace(tradegothiccond, {
  selector: '.section-gm-guide h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});
/* 
 * 01-12-2010 B. Tribulski - Added for the Member Community Help Area
 */
 sIFR.replace(tradegothiccond, {
  selector: '.section-help #content h1.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '.section-help #content h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});
sIFR.replace(tradegothiccond, {
  selector: '.section-join-gmn #sidebar-right h2.title',
  css: '.sIFR-root {color: #336666;}',
  wmode: 'transparent'
});

sIFR.replace(tradegothiccond, {
  selector: '#block-block-4 p',
  css: '.sIFR-root {color: #ffffff;}',
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: 'h1.title',
  css: '.sIFR-root {color: #87986c;}',
  wmode: 'transparent'
});

/*
sIFR.replace(arial, {
  selector: '.section-groups #content .views-field-title .field-content',
  css: [
		'.sIFR-root {color: #416261; font-size: 21px; font-weight: bold;}',
		'a:link {color: #416261; text-decoration: none;}',
        'a:hover {color: #416261; text-decoration: underline;}'
		],
  wmode: 'transparent'
});
*/

sIFR.replace(arial, {
  selector: '.section-users .profile #left_panel h1#display_name, .section-user .profile #left_panel h1#display_name ',
  css: [
		'.sIFR-root {color: #416261; font-size: 21px; font-weight: bold;}',
		'a:link {color: #416261; text-decoration: none;}',
        'a:hover {color: #416261; text-decoration: underline;}'
		],
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '#block-gmn_blocks-0 h2.title',
  css: [
		'.sIFR-root {color: #ffffff; font-size: 16px;}',
		'a:link {color: #ffffff; text-decoration: none;}',
		'a:visited {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #ffffff; text-decoration: underline;}',
		'.active {color: #ffffff; text-decoration: none;}'
		],
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '#block-local_menu-0 h2.title, #block-menu_block-1 h2.title',
  css: [
		'.sIFR-root {color: #ffffff; font-size: 16px;}',
		'a:link {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #ffffff; text-decoration: underline;}',
		'.active {color: #ffffff; text-decoration: none;}'
		],
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '#block-gmn_blocks-1 .content',
  css: [
		'.sIFR-root {color: #ffffff; text-transform: uppercase;}',
		'a:link {color: #ffffff; text-decoration: none;}',
		'a:visited {color: #ffffff; text-decoration: none;}',
        'a:hover {color: #ffffff; text-decoration: underline;}',
		'.active {color: #ffffff; text-decoration: none;}'
		],
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: 'h1#group_title',
  css: [
		'.sIFR-root {color: #87986c; font-size: 21px; font-weight: bold;}',
		'a:link {color: #87986c; text-decoration: none;}',
		'a:visited {color: #87986c; text-decoration: none;}',
        'a:hover {color: #87986c; text-decoration: underline;}',
		'.active {color: #87986c; text-decoration: none;}'
  		],
  wmode: 'transparent'
});


sIFR.replace(arial, {
  selector: '#block-views-group_tips-block_1 h2.title',
  css: '.sIFR-root {color: #ffffff;}',
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '.section-groups .node h2',
  css: [
		'.sIFR-root {color: #416261; font-weight: bold;}',
		'a:link {color: #416261; text-decoration: none;}',
		'a:visited {color: #416261; text-decoration: none;}',
        'a:hover {color: #416261; text-decoration: underline;}',
		'.active {color: #416261; text-decoration: none;}'
  		],
  wmode: 'transparent'
});

/*
sIFR.replace(arial, {
  selector: '.section-groups h2.title',
  css: [
		'.sIFR-root {color: #87986c;}',
		'a:link {color: #87986c; text-decoration: none;}',
		'a:visited {color: #87986c; text-decoration: none;}',
        'a:hover {color: #87986c; text-decoration: underline;}',
		'.active {color: #87986c; text-decoration: none;}'
  		],
  wmode: 'transparent'
});
*/

sIFR.replace(arial, {
  selector: '.section-users #right_panel h2, .section-user #right_panel h2',
  css: [
		'.sIFR-root {color: #87986c;}',
		'a:link {color: #87986c; text-decoration: none;}',
		'a:visited {color: #87986c; text-decoration: none;}',
        'a:hover {color: #87986c; text-decoration: underline;}',
		'.active {color: #87986c; text-decoration: none;}'
  		],
  wmode: 'transparent'
});


sIFR.replace(arial, {
  selector: '.section-groups .node h2.title',
  css: [
		'.sIFR-root {color: #416261; font-weight: bold;}',
		'a:link {color: #416261; text-decoration: none;}',
		'a:visited {color: #416261; text-decoration: none;}',
        'a:hover {color: #416261; text-decoration: underline;}',
		'.active {color: #416261; text-decoration: none;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '.section-og h2.title',
  css: '.sIFR-root {color: #87986c;}',
  wmode: 'transparent'
});

sIFR.replace(arial, {
  selector: '.section-node-add h2.title',
  css: '.sIFR-root {color: #87986c;}',
  wmode: 'transparent'
});

/*
sIFR.replace(arial, {
  selector: '.views-exposed-widgets label',
  css: '.sIFR-root {color: #87986c;}',
  wmode: 'transparent'
});
*/

