/*****************************************************************************
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 gthm_th = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_th.swf' };
var gthm_th_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_th_it.swf' };

var gthm_xl = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_xl.swf' };
var gthm_xl_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_xl_it.swf' };

var gthm_lt = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_lt.swf' };
var gthm_lt_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_lt_it.swf' };

var gthm_bk = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bk.swf' };
var gthm_bk_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bk_it.swf' };

var gthm_md = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_md.swf' };
var gthm_md_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_md_it.swf' };

var gthm_bd = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bd.swf' };
var gthm_bd_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bd_it.swf' };

var gthm_bl = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bl.swf' };
var gthm_bl_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_bl_it.swf' };

var gthm_ul = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_ul.swf' };
var gthm_ul_it = { src: 'http://www3.arts.umich.edu/mechanisms/sifr_r436/gthm_family/gthm_ul_it.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(gthm_th, gthm_th_it, gthm_xl, gthm_xl_it, gthm_lt, gthm_lt_it, gthm_bk, gthm_bk_it, gthm_md, gthm_md_it, gthm_bd, gthm_bd_it, gthm_bl, gthm_bl_it, gthm_ul, gthm_ul_it);

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

// For Links

//sIFR.replace(gthm_bk, {
//    selector: 'h3',
//    forceSingleLine: true,
    // ratios: [8,1.41,11,1.31,15,1.29,25,1.25,28,1.23,32,1.22,33,1.23,43,1.22,61,1.21,64,1.2,65,1.21,112,1.2,113,1.19,115,1.2,118,1.19,122,1.2,124,1.19,1.2],
//    css: [
//        '.sIFR-root { color:#686a6c; font-size: 20px; }',
//        'a {color: #e50278; text-decoration: none; }',
//        'a:hover {color: #686a6c; }'
//        ],
//    wmode: 'transparent',
//    tuneWidth: '5',
//    forceWidth: true

//});

//

// Genre
sIFR.replace(gthm_bk, {
  selector: '.resources .genre h2',
  css: '.sIFR-root { color: #72afb6;}',
  wmode: 'transparent'
});
sIFR.replace(gthm_md, {
  selector: '.resources h3',
  css: '.sIFR-root { color: #4e5051; text-transform: lowercase; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.resources .news-feed h3',
  css: '.sIFR-root { color: #686a6c; text-transform: lowercase; background-color: #e7e4df; }'
});

// Gallery
sIFR.replace(gthm_lt, {
  selector: '.gallery h2',
  css: '.sIFR-root { color: #ffffff; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_lt, {
  selector: '.gallery h3',
  css: '.sIFR-root { color: #ffffff; }',
  wmode: 'transparent'
});

//Colophon
sIFR.replace(gthm_lt, {
  selector: '.colophon h2',
  css: '.sIFR-root { color: #a2d286; text-align:center; }',
  wmode: 'transparent'
});

//sIFR.replace(gthm_bk, {
//  selector: '.links h3',
//  css: '.sIFR-root { color: #686a6c; text-transform:lowercase; }',
//  wmode: 'transparent'
//});

//sIFR.replace(gthm_bk, {
//  selector: '.work h3, .courses h3',
//  css: '.sIFR-root { color: #cccccc; text-transform:lowercase; }',
//  wmode: 'transparent'
//});

//sIFR.replace(gthm_bk, {
//  selector: '.resources .genre h3',
//  css: '.sIFR-root { color: #686a6c; text-transform:lowercase; }',
//  wmode: 'transparent'
//});

//sIFR.replace(gthm_md, {
//  selector: '.links h4',
//  css: '.sIFR-root { color: #f26532; }',
//  wmode: 'transparent'
//});

sIFR.replace(gthm_md, {
  selector: '.courses h4',
  css: '.sIFR-root { color: #57868b; }',
  wmode: 'transparent'
});


//UR4
sIFR.replace(gthm_bk, {
  selector: '.events #ur4-header h2',
  css: '.sIFR-root { color: #e50278; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.programs #ur4-header h2',
  css: '.sIFR-root { color: #f26532; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.funding #ur4-header h2',
  css: '.sIFR-root { color: #d5e04d; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.about #ur4-header h2',
  css: '.sIFR-root { color: #bbb2a6; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.resources #ur4-header h2',
  css: '.sIFR-root { color: #72afb6; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.archives #ur4-header h2',
  css: '.sIFR-root { color: #68321f; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '#ur4-header h2',
  css: '.sIFR-root { color: #e50278; text-align: right; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_md, {
  selector: 'h3.grid',
  css: '.sIFR-root { color: #cc0066; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_lt, {
  selector: '#t3-header .splash-text',
  css: '.sIFR-root { color: #ffffff; leading: 10; font-size:16px; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '#t3-body h3',
  css: '.sIFR-root { color: #f26532; font-size:20px; }',
  wmode: 'transparent'
});

// Remember that order of these are important, put most specific first

sIFR.replace(gthm_bd, {
  selector: '.events h2.gateway',
  css: '.sIFR-root { color: #F60065; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bd, {
  selector: '.program h2.gateway',
  css: '.sIFR-root { color: #f26532; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bd, {
  selector: '.funding h2.gateway',
  css: '.sIFR-root { color: #72afb6; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_md, { //Home Page
  selector: '.index #arts-today h2',
  css: '.sIFR-root { color: #4e5051; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_md, { //Home Page
  selector: '.index .cnt-section h2',
  css: '.sIFR-root { color: #4e5051; }',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.index h2',
  css: '.sIFR-root { color: #a2d286;}',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.index .splash-text',
  css: '.sIFR-root { color: #ffffff; leading: 10; font-size:16px; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.events h2',
  css: '.sIFR-root { color: #e50278;}',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.programs h2',
  css: '.sIFR-root { color: #f26532;}',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.funding h2',
  css: '.sIFR-root { color: #d5e04d;}',
  wmode: 'transparent'
});
sIFR.replace(gthm_bk, {
  selector: '.funding .splash-text',
  css: '.sIFR-root { color: #4e5051; leading: 10; font-size:16px; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.resources h2',
  css: '.sIFR-root { color: #72afb6;}',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.about h2',
  css: '.sIFR-root { color: #bbb2a6;}',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '.archives h2',
  css: '.sIFR-root { color: #68321f;}',
  wmode: 'transparent'
});

sIFR.replace(gthm_bd, {
  selector: '#ur2-header h2',
  css: '.sIFR-root { color: #68321f; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bd, {
  selector: 'h2',
  css: '.sIFR-root { color: #ffffff; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_md, {
  selector: 'h3',
  css: '.sIFR-root { color: #4e5051; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_bk, {
  selector: '#t1-body h3',
  css: '.sIFR-root { color: #686a6c; }',
  wmode: 'transparent'
});

sIFR.replace(gthm_lt, {
  selector: 'p.splash-text',
  css: '.sIFR-root { color: #ffffff; leading: 10; font-size:16px; }',
  wmode: 'transparent'
});









