/*****************************************************************************
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.
*****************************************************************************/

var din = { src: 'themes/bouke/fonts/din.swf' };
var din_black = { src: 'themes/bouke/fonts/din_black.swf' };
var din_bold = { src: 'themes/bouke/fonts/din_bold.swf' };
var din_light = { src: 'themes/bouke/fonts/din_light.swf' };
var din_medium = { src: 'themes/bouke/fonts/din_medium.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:
// Remember, there must be *only one* `sIFR.activate()`!
sIFR.activate(din, din_black, din_bold, din_light, din_medium);


// --------------------------------------------------------------------------------
// SPLASH PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din, {
   selector: '.boukeTagline',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #5C3D1E; font-size: 17px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   tuneHeight: -4
});

sIFR.replace(din_medium, {
   selector: '.enterBtn',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
	  'a { background-color: #FFFFFF; color: #94B301; font-size: 16px; text-decoration: none; }',
	  'a:hover { color: #765139; }'
   ],
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -2
});

sIFR.replace(din_medium, {
   selector: '.revelTxt',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #5C3D1E; font-size: 16px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

sIFR.replace(din_bold, {
   selector: '.boukeTxt',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #5C3D1E; font-size: 16px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

// --------------------------------------------------------------------------------
// NAVIGATION STYLES
// --------------------------------------------------------------------------------

// MENU1
//sIFR.debug.ratios(din, {
sIFR.replace(din_bold, {
   selector: '.menu1.current, .menu1.section',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
	  'a { background-color: #FFFFFF; color: #35220F; font-size: 12px; text-decoration: none; width: 200px; text-align: right; }',
	  'a:hover { color: #765139; }'
   ],
   wmode: 'transparent',
   preventWrap: true,
   //forceSingleLine: true,
   tuneHeight: -5
   //tuneWidth: 5
});
sIFR.replace(din, {
   selector: '.menu1',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
	  'a { background-color: #FFFFFF; color: #35220F; font-size: 12px; text-decoration: none; width: 200px; text-align: right; }',
	  'a:hover { color: #765139; }'
   ],
   wmode: 'transparent',
   preventWrap: true,
   //forceSingleLine: true,
   tuneHeight: -5
   //tuneWidth: 5
});

// MENU2
sIFR.replace(din, {
   selector: '.menu2Link',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
	  'a { background-color: #FFFFFF; color: #765139; font-size: 12px; text-decoration: none; width: 200px; text-align: right; }',
	  'a:hover { color: #35220F; }'
   ],
   wmode: 'transparent',
   preventWrap: true,
   //forceSingleLine: true,
   tuneHeight: -5,
   offsetTop: 2
   //tuneWidth: 5
});

// --------------------------------------------------------------------------------
// WINE PAGE STYLES
// --------------------------------------------------------------------------------

// WINE TITLE
sIFR.replace(din_black, {
   selector: '#Title, .pageTitle',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; text-transform: uppercase; font-size: 12px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});

// WINE DESCRIPTOR TITLE
sIFR.replace(din_bold, {
   selector: '.wineDescriptorTitle',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -6
});

// --------------------------------------------------------------------------------
// CREATORS PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: '.creatorLink',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
	  'a { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-decoration: none; }',
	  'a:hover { color: #93B300; }'
   ],
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

sIFR.replace(din, {
   selector: '.creatorText',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

sIFR.replace(din_black, {
   selector: 'h2.creatorNameHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

sIFR.replace(din, {
   selector: 'h3.creatorTitleHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});

// --------------------------------------------------------------------------------
// CHEESE PAIRINGS PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: 'h2#CheesePairingTitle, #ContactPage h2',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; padding: 0; margin: 0; text-transform: uppercase; }',
   wmode: 'transparent',
   forceSingleLine: true
});

// --------------------------------------------------------------------------------
// NEWS & EVENTS PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_bold, {
   selector: 'h2.newsAndEventsTitleHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #93b300; font-size: 16px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});
sIFR.replace(din_bold, {
   selector: 'h3.newsAndEventsTitleSuperHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -3
});

sIFR.replace(din_black, {
   selector: '.newsDate',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #403526; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4,
   tuneWidth: 4
});
sIFR.replace(din_black, {
   selector: '.eventDate',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4,
   tuneWidth: 4
});

// --------------------------------------------------------------------------------
// AWARDS & RECOGNITION PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_bold, {
   selector: '#AwardsContent h2',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});
sIFR.replace(din_bold, {
   selector: '#AwardsContent h3',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #4A3E2D; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -4
});


// --------------------------------------------------------------------------------
// FIND BOUKÉ PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: 'h2.findTitleHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 14px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});

//sIFR.replace(din_bold, {
//   selector: '.countyName.selectedArchiveCounty',
//   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
//   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
//	  'a { background-color: #FFFFFF; color: #93B300; font-size: 12px; text-decoration: none; text-transform: uppercase; }',
//	  'a:hover { color: #93B300; }'
//   ],
//   wmode: 'transparent',
//   forceSingleLine: true,
//   tuneHeight: -4,
//   onRelease: function(fi) { return false; }
//});
//sIFR.replace(din_bold, {
//   selector: '.countyName',
//   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
//   css: [ '.sIFR-root { padding: 0px; margin: 0px; }',
//	  'a { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-decoration: none; text-transform: uppercase; }',
//	  'a:hover { color: #93B300; }'
//   ],
//   wmode: 'transparent',
//   forceSingleLine: true,
//   tuneHeight: -4,
//   onRelease: function(fi) { countyClick( fi.getAncestor() ); }
//});
//function countyClick(li) {
//    var $li = $(li),
//    $a = $(li).find('a');
//    //$li points at a jQuery'd list item
//    //$a points at the original anchor
//
//    return $.handleCountyClick($(li).attr('id'));
//}

// --------------------------------------------------------------------------------
// FRIENDS AND LINKS PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: 'h2#FriendsAndLinks',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 14px; padding: 0; margin: 0; text-transform: uppercase; }',
   wmode: 'transparent',
   forceSingleLine: true
});

// --------------------------------------------------------------------------------
// TELL A FRIEND and JOIN PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: '#TellAFriendForm_TellAFriendForm_Title1, #TellAFriendForm_TellAFriendForm_Title2, #TellAFriendForm_TellAFriendForm_action_doTellAFriend, #JoinForm_JoinForm_Title1',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 14px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});

sIFR.replace(din, {
   selector: '#JoinForm_JoinForm_Title2, #JoinForm_JoinForm_Title3',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   tuneHeight: -4
});
sIFR.replace(din, {
   selector: '.left',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});

sIFR.replace(din_black, {
   selector: '.thankYouMessage h2',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #725F43; font-size: 12px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -5
});


// --------------------------------------------------------------------------------
// TERMS & CONDITIONS PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: '#TermsPageContent h2',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #472F14; font-size: 14px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true,
   tuneHeight: -5
});


// --------------------------------------------------------------------------------
// FOR THE PRESS AND TRADE PAGE STYLES
// --------------------------------------------------------------------------------

sIFR.replace(din_black, {
   selector: 'h2#PressAndTradeTitleHeading',
   ratios: [7, 1.47, 12, 1.43, 14, 1.37, 18, 1.36, 24, 1.34, 25, 1.32, 31, 1.33, 32, 1.31, 35, 1.32, 37, 1.3, 47, 1.31, 69, 1.3, 71, 1.29, 72, 1.3, 75, 1.29, 76, 1.3, 1.29],
   css: '.sIFR-root { background-color: #FFFFFF; color: #93B300; font-size: 14px; text-transform: uppercase; padding: 0; margin: 0; }',
   wmode: 'transparent',
   forceSingleLine: true
});


