/*****************************************************************************
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 dinengschrift = { src: '/Media/Website%20Resources/flash/dinengschrift.swf' };
var frutigerLight = { src: '/Media/Website%20Resources/flash/frutigerLight.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(dinengschrift, frutigerLight);

sIFR.fitExactly = true;

sIFR.replace(frutigerLight, {
  selector: '.home #zone1 .AC-News .AC-BlockText H4',
  wmode: 'transparent',
  css: [
      '.sIFR-root {color:#234769;}'
      ,'a {color:#234769;text-decoration:none;}'
      ,'a:hover {color:#234769;text-decoration:underline;}'
    ]  
});

sIFR.replace(frutigerLight, {
  selector: '#AC-SpotName',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#234769'}}
});

sIFR.replace(frutigerLight, {
  selector: '.AC-SpotArchive H3',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#224465'}}
});


sIFR.replace(dinengschrift, {
  selector: '#pageTitle H2',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase'}}
});

sIFR.replace(dinengschrift, {
  selector: '.athletics .AC-Sports .AC-BlockHeader H4',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#FFFFFF','text-transform':'uppercase'}}
});

sIFR.replace(dinengschrift, {
  selector: '.AC-Block .AC-BlockHeader H4',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase'}}
});

sIFR.replace(dinengschrift, {
  selector: '.AC-CampusVisitNavigation H4',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase'}}
});

sIFR.replace(dinengschrift, {
  selector: '#AC-Tabs UL.AC-TabCtrl LI',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase','cursor':'pointer'}}
});

sIFR.replace(frutigerLight, {
  selector: '#zone1 .AC-Spot STRONG',
  wmode: 'transparent',
  css: [
      '.sIFR-root {color:#224465;}'
      ,'a {color:#224465;text-decoration:none;}'
      ,'a:hover {color:#224465;text-decoration:underline;}'
    ]  
  
});

/*sIFR.replace(frutigerLight, {
  selector: '#zoneTop .AC-Slider .AC-BlockTitle',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#93DCFE'}}
});*/

sIFR.replace(frutigerLight, {
  selector: '#zone1 #pageText',
  wmode: 'transparent',
  css: {'.sIFR-root':{'margin-bottom':'10px','color':'#393A36','leading':'5'}}
});

sIFR.replace(frutigerLight, {
  selector: '#AC-FullProgram h3',
  wmode: 'transparent',
  css: {'.sIFR-root':{'margin-bottom':'20px','color':'#393A36'}}
});

// Everything here was added so these fonts can be used where we need them. JW.

sIFR.replace(frutigerLight, {
  selector: '.frutigerCN',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#393a36'}}
});

sIFR.replace(frutigerLight, {
  selector: '.frutigerWhite',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#ffffff'}}
});

sIFR.replace(frutigerLight, {
  selector: '.subhead',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#24496C'}}
});

sIFR.replace(frutigerLight, {
  selector: '.headline',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#24496C'}}
});

sIFR.replace(dinengschrift, {
  selector: '.subhead_block',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase'}}
});

sIFR.replace(frutigerLight, {
  selector: '.reversedhead',
  wmode: 'transparent',
  css: {'.sIFR-root':{'color':'#FFFFFF'}}  
});

sIFR.replace(dinengschrift, {
  selector: '.AC-BlockBox .AC-BlockHeader H4',
  wmode: 'transparent',
  css: {'.sIFR-root':{'text-transform':'uppercase'}}
});

