/*****************************************************************************
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 font1 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };
var	font2 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };
var	font3 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };	
var	font4 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };
var	font5 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };	
var	font6 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };
var	font7 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
    };	
var	font8 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
};
var	font9 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
};
var	font10 = {
      src: 'addons/sifr/vegur_bold.swf'
      ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
};

    // sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
    sIFR.useStyleCheck = true;
	
	sIFR.activate(font1, font2, font3, font4, font5, font6, font7, font8, font9);

    sIFR.replace(font1, {
      selector: '#top_menu .first-level span',
      css: [
		'.sIFR-root { text-transform: uppercase; }'
        ,'a { text-decoration: none; font-size: 12px; color: #FFFFFF; }'
        ,'a:link { color: #ffffff; }'
        ,'a:visited { color: #ffffff; }'
        ,'a:hover { color: #ffffff; }'
        ,'a:active { color: #ffffff; }'

      ],
	  wmode: 'transparent',
	  forceSingleLine: true,
	  selectable: false,
	  offsetTop: 8,
	  offsetLeft: 1,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  onReplacement: function(){
		$('#top_menu .first-level span').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font2, {
      selector: 'h3.sidebox-title span',
      css: [
        '.sIFR-root { font-size: 15px; text-transform: uppercase; color: #ec008c;}'
      ],
	  wmode: 'transparent',
	  transparent: true,
	  offsetTop: 0,
	  offsetLeft: 1,
	  antiAliasType: 'normal',
	  onReplacement: function(){
		$('h3.sidebox-title span').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font3, {
      selector: '.mainbox-title span',
      css: [
		'.sIFR-root { font-size: 28px; color: #ec008c; text-decoration: none; text-transform: uppercase;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 0,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: true,
	  onReplacement: function(){
		$('.mainbox-title span').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font4, {
      selector: '.product-detailed-title',
      css: [
		'.sIFR-root { font-size: 18px; color: #414136; text-decoration: none;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 1,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: false,
	  onReplacement: function(){
		$('.product-detailed-title').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font5, {
      selector: '.clink0',
      css: [
		'.sIFR-root { text-transform: uppercase; }'
        ,'a { text-decoration: none; font-size: 14px; color: #414136; }'
        ,'a:link { color: #414136; }'
        ,'a:visited { color: #414136; }'
        ,'a:hover { color: #414136; }'
        ,'a:active { color: #414136; }'
      ],
	  wmode: 'transparent',
	  forceSingleLine: true,
	  selectable: false,
	  offsetTop: 5,
	  offsetLeft: 1,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  onReplacement: function(){
		$('.menu-root-categories, .menu-subcategories').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font6, {
      selector: '.mainbox-title strong.additional',
      css: [
		'.sIFR-root { font-size: 16px; color: #ec008c; text-decoration: none; text-transform: uppercase;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 0,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: true,
	  onReplacement: function(){
		$('.mainbox-title strong').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font7, {
      selector: '.wysiwyg-content h3',
      css: [
		'.sIFR-root { font-size: 16px; color: #42BCDE; text-decoration: none; text-transform: uppercase;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 0,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: true,
	  onReplacement: function(){
		$('.mainbox-title strong').css('visibility', 'visible');
	  }
    });
	
	sIFR.replace(font8, {
      selector: '.wysiwyg-content h4',
      css: [
		'.sIFR-root { font-size: 12px; color: #ec008c; text-decoration: none; text-transform: uppercase;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 0,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: true,
	  onReplacement: function(){
		$('.mainbox-title strong').css('visibility', 'visible');
	  }
    });
	sIFR.replace(font9, {
      selector: '.store-title span',
      css: [
        '.sIFR-root { font-size: 16px; text-transform: uppercase; color: #ec008c;}'
      ],
	  wmode: 'opaque',
	  transparent: true,
	  offsetTop: 0,
	  offsetLeft: 1,
	  forceSingleLine: true,
	  antiAliasType: 'normal',
	  onReplacement: function(){
		$('.store-title span').css('visibility', 'visible');
	  }
    });
	sIFR.replace(font10, {
      selector: '.info-field-title',
      css: [
		'.sIFR-root { font-size: 16px; color: #42BCDE; text-decoration: none; text-transform: uppercase;}'
      ],
	  wmode: 'transparent',
	  selectable: false,
	  offsetTop: 0,
	  offsetLeft: 0,
	  antiAliasType: 'normal',
	  preserveSingleWhitespace: false,
	  forceSingleLine: true,
	  onReplacement: function(){
		$('.mainbox-title strong').css('visibility', 'visible');
	  }
    });