/*****************************************************************************
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 albatross = { src: '/Controls/Templates/swf/ALBATROSS.swf' };
var handel = { src: '/Controls/Templates/swf/HandelGotDLig.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(albatross,handel);

// 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(albatross, {
  selector: 'h1',
  css: '.sIFR-root { font-size:25px; color: #faae18; }',
  wmode: 'transparent',
  forceSingleLine: true 
});
sIFR.replace(albatross, {
    selector: 'h2',
    css: '.sIFR-root { font-size:17px; color: #faae18; letter-spacing:7; }',
    wmode: 'transparent',
    forceSingleLine: true 
});
sIFR.replace(albatross, {
    selector: 'h3',
    css: '.sIFR-root { font-size:17px; color: #ffffff; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '#header .close ',
    css: '.sIFR-root { color:#8C8C8C; font-size:9px; margin-left:3px; width:75px;} .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root a:hover { color:#8C8C8C; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '#topnav span.orange',
    css: '.sIFR-root { font-size:11px; } .sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent',
    forceSingleLine: true  
});
sIFR.replace(albatross, {
    selector: '#topnav span',
    css: '.sIFR-root { font-size:11px; } .sIFR-root .orange { color:#faae18; text-decoration:none;} .sIFR-root.orange a { color:#8C8C8C; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent',
    forceSingleLine: true
});

/* THESE ARE THE LEFT LINKS LIKE ON THE VINTAGE PAGE */
sIFR.replace(albatross, {
    selector: '.body_col .left_links span.orange',
    css: '.sIFR-root { font-size:12px; line-height:30px; } .sIFR-root a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'  
});

sIFR.replace(albatross, {
    selector: '.body_col .left_links span',
    css: '.sIFR-root { font-size:12px; line-height:30px; } .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'
});


/* THESE ARE THE LEFT NAV LIKE IN INNOVATION LAB */
sIFR.replace(albatross, {
    selector: '.body_col .left_nav span',
    css: '.sIFR-root { font-size:11px; line-height:30px; } .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root .white { color:#FFFFFF; text-decoration:none;} .sIFR-root a:hover { color:#FFFFFF; text-decoration:none;}',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.submit',
    css: '.sIFR-root a { color: #faae18; font-size:17px; leading:5; text-decoration:none; } .sIFR-root a:hover { color: #faae18; font-size:17px; leading:5; text-decoration:none; }',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.body_heading',
    css: '.sIFR-root { color: #FFFFFF; font-size:12px; } .sIFR-root a { color: #FFFFFF; font-size:12px; text-decoration:none; }.sIFR-root a:hover { color: #FFFFFF; font-size:12px; text-decoration:none; }',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.general_form label',
    css: '.sIFR-root { color: #FFFFFF; font-size:11px; text-align:right; }.sIFR-root a { color: #FFFFFF; font-size:11px; text-align:right; text-decoration:none; } .sIFR-root a:hover { color: #FFFFFF; font-size:11px; text-align:right; text-decoration:none; }',
    wmode: 'transparent'
});

sIFR.replace(handel, {
    selector: '.body_text',
    css: '.sIFR-root { color: #FFFFFF; font-size:11px; leading:8; } .siFR-root .orange { color: #faae18;} .siFR-root .orange_pad { color: #faae18; display:inline; margin-left:5;}',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.search label',
    css: '.sIFR-root { color: #FFFFFF; font-size:11px; text-align:left; }.sIFR-root a { color: #FFFFFF; font-size:11px; text-align:left; text-decoration:none; } .sIFR-root a:hover { color: #FFFFFF; font-size:11px; text-align:right; text-decoration:none; }',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
selector: '.search .resultcategory',
css: '.sIFR-root { color: #999; font-size:10px; text-align:left; }.sIFR-root a { color: #999; font-size:10px; text-align:left; text-decoration:none; } .sIFR-root a:hover { color: #FFF; font-size:10px; text-align:left; text-decoration:none; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
selector: '.search .resultscategory_count',
css: '.sIFR-root { color: #999; font-size:10px; text-align:right; font-style:italic; }.sIFR-root a { color: #999; font-size:10px; text-align:right; text-decoration:none; } .sIFR-root a:hover { color: #FFF; font-size:10px; text-align:right; text-decoration:none; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '.search .resultscategory_count2',
    css: '.sIFR-root { color: #999; font-size:10px; text-align:right; font-style:italic; }.sIFR-root a { color: #999; font-size:10px; text-align:right; text-decoration:none; } .sIFR-root a:hover { color: #FFF; font-size:10px; text-align:right; text-decoration:none; }',
    wmode: 'transparent'
});
 sIFR.replace(albatross, {
selector: '#search_input .label',
    css: '.sIFR-root { color: #666; font-size:8px; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
selector: '.search .resultyellow',
css: '.sIFR-root { color: #faae18; font-size:13px; }.sIFR-root a { color: #faae18; text-decoration:none; } .sIFR-root a:hover { color: #faae18; text-decoration:none; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
selector: '.search .resultsnonetext',
    css: '.sIFR-root { color: #faae18; text-align:center; font-size:13px; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
selector: '.pagertablecell span',
    css: '.sIFR-root { color: #faae18; font-size:10px; font-style:italic; }',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
selector: '.pagertablecell a',
    css: '.sIFR-root { color: #999; font-size:10px; font-style:italic; }.sIFR-root a { color: #999; text-decoration:none; } .sIFR-root a:hover { color: #FFF; text-decoration:none; }',
    wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.langselectmain',
    css: '.sIFR-root { color: #999; font-size:11px; }.sIFR-root a { color: #999; text-decoration:none; } .sIFR-root a:hover { color: #faae18; text-decoration:none; }',
    wmode: 'transparent'
});

function doLangSubSIFR(){
sIFR.replace(albatross, {
    selector: '.langselectsub',
    css: '.sIFR-root { color: #CCC; font-size:11px; }.sIFR-root a { color: #999; text-decoration:none; } .sIFR-root a:hover { color: #faae18; text-decoration:none; }',
    wmode: 'transparent'
});
}
/* FULL SIZE VIDEO PLAYER */
doVideoSIFR()

function doVideoSIFR(){
sIFR.replace(albatross, {
    selector: '#video_title',
    css: '.sIFR-root { font-size:12px; color: #faae18; }',
    wmode: 'transparent',
    forceSingleLine: true
});
sIFR.replace(albatross, {
    selector: '#video_close',
    css: '.sIFR-root { color:#8C8C8C; font-size:9px;} .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent',
    forceSingleLine: true
});
sIFR.replace(albatross, {
    selector: '#footerTopic',
    css: '.sIFR-root{ font-size:12px; color: #999999; } .sIFR-root a { font-size:12px; color: #999999;, text-decoration:none; } .sIFR-root a:hover { font-size:12px; color: #999999;, text-decoration:none; } ',
    wmode: 'transparent'
});
}


/* SOME GENERAL SIFR REPLACEMENTS */
sIFR.replace(albatross, {
    selector: '.white8',
    css: '.sIFR-root { font-size:8px; color: #FFFFFF; } .sIFR-root a { color:#FFFFFF; text-decoration:none;} .sIFR-root a:hover { color:#FFFFFF; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
  selector: '.grey9',
  css: '.sIFR-root { font-size:9px; color: #8C8C8C; } .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root a:hover { color:#8C8C8C; text-decoration:none;}',
  wmode: 'transparent'
});

sIFR.replace(albatross, {
    selector: '.grey11',
    css: '.sIFR-root { font-size:11px; color: #8C8C8C; } .sIFR-root a { color:#8C8C8C; text-decoration:none;} .sIFR-root a:hover { color:#8C8C8C; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '.orange11',
    css: '.sIFR-root { font-size:11px; color: #faae18; }.sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '.orange12',
    css: '.sIFR-root { font-size:12px; color: #faae18; }.sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '.orange8',
    css: '.sIFR-root { font-size:8px; color: #faae18; }.sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'
});
sIFR.replace(albatross, {
    selector: '.orange15',
    css: '.sIFR-root { font-size:15px; color: #faae18; }.sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
    wmode: 'transparent'
});

/*sIFR.replace(albatross, {
  selector: '.orange',
  css: '.sIFR-root { font-size:12px; color: #faae18; }.sIFR-root.orange a { color:#faae18; text-decoration:none;} .sIFR-root.orange a:hover { color:#faae18; text-decoration:none;}',
  wmode: 'transparent'
});*/