/*****************************************************************************
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 futura = { src: '/path/to/futura.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(futura);

// 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(futura, {
  //		selector: 'h1',
  //		css: '.sIFR-root { background-color: #F9F9F9; color: #FF0000; }'
//		});


var HelveticaNeueLTStd45 = {
      src: '/_js/sifr/HelveticaNeueLTStd45.swf',
	  ratios: [6, 0.96, 7, 0.86, 8, 1.22, 9, 1.13, 12, 1.04, 13, 1.13, 14, 1.09, 16, 1.03, 17, 0.96, 18, 1.1, 20, 1.04, 22, 1.02, 23, 1.09, 24, 1.05, 27, 1.01, 28, 1.06, 30, 1.04, 31, 0.99, 32, 0.98, 34, 1.04, 37, 1.01, 39, 1.04, 40, 1.02, 43, 1, 44, 1.03, 47, 1.01, 49, 1.03, 50, 1.02, 52, 1, 54, 1.04, 55, 1.01, 57, 0.99, 59, 1.03, 60, 1.01, 62, 0.99, 63, 1.03, 65, 1.02, 67, 0.99, 69, 1.03, 70, 1.01, 71, 1, 72, 0.99, 73, 1.03, 74, 1.02, 76, 1, 77, 0.99, 79, 1.03, 80, 1.01, 81, 1, 82, 0.99, 83, 1.03, 84, 1.01, 86, 1, 87, 0.99, 89, 1.02, 90, 1.01, 91, 1, 92, 0.99, 93, 1.02, 94, 1.01, 96, 1, 97, 0.99, 98, 1.02, 99, 1.01, 101, 1, 102, 0.98, 103, 1.02, 104, 1.01, 106, 1, 107, 0.98, 108, 1.02, 109, 1.01, 111, 1, 112, 0.98, 113, 1.02, 114, 1.01, 116, 1, 117, 0.98, 118, 1.02, 119, 1.01, 121, 1, 122, 0.98, 123, 1.02, 124, 1.01, 1]
};

var HelveticaNeueLTStd35 = {
      src: '/_js/sifr/HelveticaNeueLTStd35.swf',
	  ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
};


sIFR.repaintOnResize = false;
sIFR.useStyleCheck = true;	
sIFR.domains = ['www.hentai-vital.com', 'localhost'];
sIFR.fixHover = true;

// Next, activate sIFR:
sIFR.activate(HelveticaNeueLTStd45, HelveticaNeueLTStd35);

// For getting the ratios - uncomment and ensure it isn't defined yet further down this script
// sIFR.debug.ratios({ src: '/vital/_js/sifr/HelveticaNeueLTStd35.swf', selector: 'h1' });

/* Home H2 */
sIFR.replace(HelveticaNeueLTStd45, {
      selector: '.home-wrapper h2'
      ,css: [
        '.sIFR-root { color: #99999; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #999999; }'
        ,'a:hover { color: #FFFFFF; }'
        ,'a:active { color: #FFFFFF; }'
      ],
  tuneHeight:-4,
  wmode: 'transparent'
});

/* H1 */
sIFR.replace(HelveticaNeueLTStd45, {
      selector: 'h1'
      ,css: [
        '.sIFR-root { color: #FFFFFF; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #FC0303; }'
        ,'a:active { color: #FC0303; }'
      ],
  tuneHeight:-4,
  wmode: 'transparent'
});

/* H2 */
sIFR.replace(HelveticaNeueLTStd45, {
      selector: 'h2'
      ,css: [
        '.sIFR-root { color: #FC0303; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FC0303; }'
        ,'a:hover { color: #FFFFFF; }'
        ,'a:active { color: #FFFFFF; }'
      ],
  tuneHeight:-4,
  wmode: 'transparent'
});

/* Price */
sIFR.replace(HelveticaNeueLTStd45, {
      selector: '.price'
      ,css: [
        '.sIFR-root { color: #FFFFFF; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #FC0303; }'
        ,'a:active { color: #FC0303; }'
      ],
  tuneHeight:-4,
  wmode: 'transparent'
});

/* Massive */
sIFR.replace(HelveticaNeueLTStd35, {
      selector: '.massive'
      ,css: [
        '.sIFR-root { color: #FFFFFF; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #FC0303; }'
        ,'a:active { color: #FC0303; }'
      ],
  tuneHeight:-4,
  wmode: 'transparent'
});

