/*****************************************************************************
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 gothamRoundedMed = { src: '/themes/ljwb/sifr/gotham-rounded-med.swf' };
// var gothambook = { src: 'swf/gothambook.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.ua.supported = sIFR.ua.supported && (!sIFR.ua.ie || sIFR.ua.ieVersion > 6);
sIFR.activate(gothamRoundedMed);

// 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>.

/* HSFA HOME OVERRIDE */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-hsfa.page-home .article-block h1', 
	css: ['.sIFR-root { font-size:14px; font-weight:normal; color:#005396; text-transform: uppercase; }' , 'a { text-decoration: none; color:#005396; }' , 'a:link { color:#005396; }' , 'a:hover { color:#005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* MAZCC HOME OVERRIDE */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-mazcc.page-home .article-head h1', 
	css: ['.sIFR-root { font-size:15px; font-weight:normal; color:#960000; text-transform: uppercase; }' , 'a { text-decoration: none; color:#960000; }' , 'a:link { color:#960000; }' , 'a:hover { color:#960000; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* FUNDRAISING HOME OVERRIDE */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-fundraising.page-home .article-block h1', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#005396; text-transform: uppercase; }' , 'a { text-decoration: none; color:#960000; }' , 'a:link { color:#960000; }' , 'a:hover { color:#960000; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* WHITE 24 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: '.section-heading h1', 
	css: ['.sIFR-root { font-size:24px; font-weight:normal; color:#ffffff; text-transform: uppercase; }' , 'a { text-decoration: none; }' , 'a:link { color:#ffffff; }' , 'a:hover { color:#ffffff; text-decoration: none; cursor: pointer; }'],
	wmode: 'transparent'
});


/* GENERIC BLUE 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.category-home h1, body.category-home h2.panel-title, body.section-hsfa .panel-sub-nav h2, .panel-form .panel-title', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#005396; text-transform: uppercase; }' , 'a { text-decoration: none; color: #005396; }' , 'a:link { color: #005396; }' , 'a:hover { color: #005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


sIFR.replace(gothamRoundedMed, {
  selector: 'body.category-home .mini-calendar h2, body.section-fundraising .mini-calendar h2, body.section-hsfa .mini-calendar h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#005396; text-transform: uppercase; text-align: center; }' , 'a { text-decoration: none; }' , 'a:link { color: #005396; }' , 'a:hover { color: #005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});




/* WHITE 16 POINT UPPERCASE */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.category-services .article-block h1, body.section-ops h2.panel-title span.title, .gallery-panel .panel-title span.title, body.section-mazcc .article-block h1, body.section-hsfa .article-block h1, .panel-activities .panel-title, .panel-events .panel-title, body.section-business-review .panel-title, body.section-latest-news .panel-title, body.section-fundraising .article-block h1, body.section-faqs .article-block h1, body.section-partners .article-block h1, body.section-policies .panel-title, body.section-partners .article-block h1, body.section-working-for-us .article-block h1, body.section-green-issues .panel-title, body.section-contact-ljwb .article-block h1, body.section-about-ljwb .article-block h1, body.section-activity-and-classes-calendar .article-block h1', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#ffffff; text-transform: uppercase; }' , 'a { text-decoration: none; }' , 'a:link { color: #005396; }' , 'a:hover { color: #005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

sIFR.replace(gothamRoundedMed, {
  selector: '.gallery-panel .panel-title span.info ', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#ffffff; text-transform: uppercase; text-align: right; }' , 'a { text-decoration: none; }' , 'a:link { color: #005396; }' , 'a:hover { color: #005396; text-decoration: none; cursor: default;; }'],
	wmode: 'transparent'
});


/* WHITE 16 POINT Titlecase */
sIFR.replace(gothamRoundedMed, {
  selector: '.section-heading h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#ffffff; }' , 'a { text-decoration: none; }' , 'a:link { color: #ffffff; }' , 'a:hover { color: #ffffff; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


/* OPS 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-ops .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#CC0065; text-transform: uppercase; }' , 'a { text-decoration: none; color:#CC0065; }' , 'a:link { color:#CC0065; }' , 'a:hover { color:#CC0065; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


/* LJBS 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-ljbs .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#FF6500; text-transform: uppercase; }' , 'a { text-decoration: none; color:#FF6500; }' , 'a:link { color:#FF6500; }' , 'a:hover { color:#FF6500; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


/* RAINBOW 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-rainbow .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#FF9E00; text-transform: uppercase; }' , 'a { text-decoration: none; color:#FF9E00; }' , 'a:link { color:#FF9E00; }' , 'a:hover { color:#FF9E00; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


/* MCFP 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-mcfp .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#00CCCC; text-transform: uppercase; }' , 'a { text-decoration: none; color:#00CCCC; }' , 'a:link { color:#00CCCC; }' , 'a:hover { color:#00CCCC; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* NESHAMA 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-neshama .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#0098CB; text-transform: uppercase; }' , 'a { text-decoration: none; color:#0098CB; }' , 'a:link { color:#0098CB; }' , 'a:hover { color:#0098CB; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* MOORCARE 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-moorcare .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#FD0000; text-transform: uppercase; }' , 'a { text-decoration: none; color:#FD0000; }' , 'a:link { color:#FD0000; }' , 'a:hover { color:#FD0000; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* ABOUT LJWB */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-about-ljwb .panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#005396; text-transform: uppercase; }' , 'a { text-decoration: none; color: #005396; }' , 'a:link { color: #005396; }' , 'a:hover { color: #005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

/* MAZCC */
sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-mazcc .panel-sub-nav h2, body.section-mazcc.page-home .article-head h1', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#960000; text-transform: uppercase; }' , 'a { text-decoration: none; color:#960000; }' , 'a:link { color:#960000; }' , 'a:hover { color:#960000; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

sIFR.replace(gothamRoundedMed, {
  selector: 'body.section-mazcc .mini-calendar h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#960000; text-transform: uppercase; text-align: center; }' , 'a { text-decoration: none; }' , 'a:link { color: #960000; }' , 'a:hover { color: #960000; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});


/* GENERAL SUBNAVS 16 POINT */
sIFR.replace(gothamRoundedMed, {
  selector: '.panel-sub-nav h2', 
	css: ['.sIFR-root { font-size:16px; font-weight:normal; color:#005396; text-transform: uppercase; }' , 'a { text-decoration: none; color:#005396; }' , 'a:link { color:#005396; }' , 'a:hover { color:#005396; text-decoration: none; cursor: default; }'],
	wmode: 'transparent'
});

