/*****************************************************************************
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 VAG_bold = { src: '/static/swf/VAG_bold.swf' };
// var VAG_bold = { src: 'static/swf/VAG_bold.swf' }; change to this to work on relative copy //

// 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(VAG_bold);

// 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(VAG_bold, {
  selector: 'h1',
  css: [
  		'.sIFR-root { color: #0240b2;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.adPanel h2.blue',
  css: [
  		'.sIFR-root { font-style: normal; color: #14a1e7; font-size: 15;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.searchBox legend',
  css: [
  		'.sIFR-root { font-style: normal; color: #14a1e7; font-size: 15;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.adPanel h2.pink',
  css: [
  		'.sIFR-root { font-style: normal; color: #f90da9; font-size: 15;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.adPanel h2.green',
  css: [
  		'.sIFR-root { font-style: normal; color: #69b816; font-size: 15;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.adPanel h2.violet',
  css: [
  		'.sIFR-root { font-style: normal; color: #870bc7; font-size: 15;}'
  		],
  wmode: 'transparent'
});

// home page styles 

sIFR.replace(VAG_bold, {
  selector: 'h2.blue',
  css: [
  		'.sIFR-root { font-style: normal; color: #14a1e7; font-size: 19;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: 'h2.pink',
  css: [
  		'.sIFR-root { font-style: normal; color: #f90da9; font-size: 19;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: 'h2.green',
  css: [
  		'.sIFR-root { font-style: normal; color: #69b816; font-size: 19;}'
  		],
  wmode: 'transparent'
});


sIFR.replace(VAG_bold, {
  selector: 'h2.violet',
  css: [
  		'.sIFR-root { font-style: normal; color: #870bc7; font-size: 19;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '#loginBox h2',
  css: [
  		'.sIFR-root { font-style: normal; color: #14a1e7; font-size: 20;}'
  		],
  wmode: 'transparent'
});

// subpage styles

sIFR.replace(VAG_bold, {
  selector: '.login_top h2',
  css: [
  		'.sIFR-root { color: #ffa800;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '#accountBox h2',
  css: [
  		'.sIFR-root { color: #0240b2;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.totalizer p.total',
  css: [
  		'.sIFR-root { color: #ffffff; text-align: center; font-size: 22; }'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.rightad h3',
  css: [
  		'.sIFR-root {} a:link { color: #ee467a; text-decoration: none;} a:hover { color: #189cf3; text-decoration: underline;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.socialLinkBar h3',
  css: [
  		'.sIFR-root { color: #0240b2; text-decoration: none;} a:hover { color: #189cf3; text-decoration: underline;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.rightad_denim h2',
  css: [
  		'.sIFR-root {} a:link { color: #0240b2; text-decoration: none;} a:hover { color: #189cf3; text-decoration: underline;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: 'ul.login li',
  css: [
  		'.sIFR-root { margin-left: 8px; font-size: 13; } a:link { color: #ffffff; text-decoration: none; cursor: pointer;} a:hover { color: #ffff00; text-decoration: underline;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: 'h2.sitemap',
  css: [
  		'.sIFR-root { } a:link { font-style: normal; color: #EC003D; text-decoration: none;} a:hover { color: #ff8400; text-decoration: underline; }'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '#manageAccTop h2',
  css: [
  		'.sIFR-root { color: #ffffff;}'
  		],
  wmode: 'transparent'
});

/* additions for search, June 2010 */

sIFR.replace(VAG_bold, {
  selector: '.homeSearch fieldset legend',
  css: [
  		'.sIFR-root { font-style: normal; color: #14a1e7; font-size: 18;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: 'ul.prettyPager li.pretty',
  css: [
  		'.sIFR-root { font-size: 56; color: #189cf3;;} a:link { color: #189cf3; text-decoration: none;  font-size: 30;} a:hover { color: #189cf3; text-decoration: underline;}'
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.moreResults h2',
  css: [
  		'.sIFR-root { color: #189cf3; font-size: 22; } '
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.moreResults .upper h3',
  css: [
  		'.sIFR-root { color: #fd0198; font-size: 18;} '
  		],
  wmode: 'transparent'
});

sIFR.replace(VAG_bold, {
  selector: '.moreResults .lower h3',
  css: [
  		'.sIFR-root { color: #e31a22; font-size: 18;} '
  		],
  wmode: 'transparent'
});

/* additions for funform, July 2010 */

sIFR.replace(VAG_bold, {
  selector: 'h2.bigyellow',
  css: [
  		'.sIFR-root { font-style: normal; color: #fab623; font-size: 36;}'
  		],
  wmode: 'transparent'
});
