/*****************************************************************************
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 din = { src: 'http://www.leroyandclarkson.com/dev/sifr3/din.swf' };
var dinlight = { src: 'http://www.leroyandclarkson.com/dev/sifr3/dinlight.swf' };
var foundrylight = { src: 'http://www.leroyandclarkson.com/dev/sifr3/foundrylight.swf' };
var foundrymed = { src: 'http://www.leroyandclarkson.com/dev/sifr3/foundrymed.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(din);
sIFR.activate(dinlight);
sIFR.activate(foundrylight);
sIFR.activate(foundrymed);

// 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(din, {
  selector: '.col-header_right .hrcontent',
  css: ['.sIFR-root { color: #373B3A; width:52px;}','a:link{color: #373B3A; text-decoration:none; width:52px;}','a:visited{color:#373B3A; text-decoration:none;}','a:hover {color: #999999;}','a:active {color: #999999;}'],
  wmode: 'transparent', //, tuneHeight:'-2'
  forceSingleLine: true
});

sIFR.replace(din, {
  selector: '.col-header_right .hrcontent-right',
  css: ['.sIFR-root { color: #373B3A; width:52px; text-align:right;}','a:link{color: #373B3A; text-decoration:none; width:52px;}','a:visited{color:#373B3A; text-decoration:none;}','a:hover {color: #999999;}','a:active {color: #999999;}'],
  wmode: 'transparent',
  fitExactly: true, //, tuneHeight:'-2'
  forceSingleLine: true
});

sIFR.replace(din, {
  selector: '.col-center .title',
  css: ['.sIFR-root { color: #bac4c9;}','a:link{color:#bac4c9;text-decoration:none; }','a:visited{color:#bac4c9;text-decoration:none;}','a:hover{ color: #ffffff;}'],
  wmode: 'transparent',//, tuneHeight:'-2'
  forceSingleLine: true
});

sIFR.replace(din, {
  selector: '.box h3',
  css: ['.sIFR-root { color: #bac4c9; margin:0px; padding:0px;}','a:link{color:#bac4c9;text-decoration:none; }','a:visited{color:#bac4c9;text-decoration:none;}','a:hover{ color: #ffffff;}'],
  wmode: 'transparent',//, tuneHeight:'-2'
  forceSingleLine: true

});

/*sIFR.replace(dinlight, {
  selector: '.block .title .titleText',
  css: ['.sIFR-root { color:#999999; margin:0px; padding:0px;}','a:link{color:#999999;text-decoration:none; }' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:7,
  fitExactly: true,
  forceSingleLine: true
});
sIFR.replace(dinlight, {
  selector: '.block .title .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});
*/

// PROJECT LABELS
/*sIFR.replace(dinlight, {
  selector: '.field-field-video-label .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.field-field-video-label .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.field-field-gallery-label .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.field-field-gallery-label .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.field-field-process-label .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.field-field-process-label .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});


sIFR.replace(dinlight, {
  selector: '.col-content_main .main-top .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.col-content_main .main-label .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/
/*
sIFR.replace(dinlight, {
  selector: '.view-home-page .attachment-after .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:6,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-home-page .attachment-after .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});
sIFR.replace(dinlight, {
  selector: '.view-home-page .attachment-before .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:6,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-home-page .attachment-before .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-about-page .views-view-grid .views-field-body .personName .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:6,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-about-page .views-view-grid .views-field-body .personName .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-news-page .views-view-grid .views-field-body .newsName .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:6,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(dinlight, {
  selector: '.view-news-page .views-view-grid .views-field-body .newsName .titleColon',
  css: ['.sIFR-root { color:#00C3FF; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneHeight:-4,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});


sIFR.replace(dinlight, {
  selector: '.view-about-page .views-field-body .aboutInfo .aboutTitle .titleText',
  css: ['.sIFR-root { color:#7F7F7F; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//, tuneHeight:'-2'
  tuneHeight:-4,
  tuneWidth:6,
  fitExactly: true,
  forceSingleLine: true
});*/


// TAGLINE ///////////////////////////////////////////////////////////////
/*sIFR.replace(foundrylight, {
  selector: '.field-field-project-tagline',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/

/*sIFR.replace(foundrylight, {
  selector: '.col-content_main .main-top .field-item',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/

/*sIFR.replace(foundrylight, {
  selector: '.view-home-page .attachment-before .frontTitleTag',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/

/*sIFR.replace(foundrylight, {
  selector: '.view-about-page .attachment-before .frontTitleTag',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(foundrylight, {
  selector: '.view-news-page .attachment-before .frontTitleTag',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(foundrylight, {
  selector: '.region-news_tagline .view-news-tagline .topSection .frontTitleTag',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/

/*sIFR.replace(foundrylight, {
  selector: '.contactTitleTag',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,
  tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/


// BLOCK LABELS
/*sIFR.replace(foundrymed, {
  selector: '.block .cust_label',
  css: ['.sIFR-root { color:#4C4C4C; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(foundrymed, {
  selector: '.view-about-page .views-view-grid .views-field-body .personTitle',
  css: ['.sIFR-root { color:#222222; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});

sIFR.replace(foundrymed, {
  selector: '.view-news-page .views-view-grid .views-field-body .newsTitle',
  css: ['.sIFR-root { color:#222222; margin:0px; padding:0px;}' ],
  wmode: 'transparent',//,tuneHeight:-10,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/

/*sIFR.replace(dinlight, {
  selector: '.block .cust_content',
  css: ['.sIFR-root { color:#F5F5F5; margin:0px; padding:0px;}' ],
  wmode: 'transparent', // tuneHeight:-5,
  tuneWidth:4,
  fitExactly: true,
  forceSingleLine: true
});*/


/*sIFR.replace(din, {
  selector: '.node h2',
  css: ['.sIFR-root { color: #ff6600; font-size:16px;}','a:link{color:#ff6600; text-decoration:none; }','a:visited{color:#ff6600;text-decoration:none;}','a:hover{ color: #ffffff;}'],
  wmode: 'transparent',//, tuneHeight:'-2'
  forceSingleLine: true,
});*/

//sIFR.fitExactly = true;

/*sIFR.replace(gotham, {
  selector: '.nodeTeaser .title',
  css: [ '.sIFR-root { color: #f2150c; font-size: 14px; }', 'a { text-decoration: none; }' ,'a:link { color: #E31824; }' ,'a:hover { color: #ffffff;}' ],
  wmode: 'transparent', tuneHeight:'-2'
});*/


