﻿parseSelector.pseudoClasses = {
  'not': function(nodes, selector) {
    var result = [];
    each: for(var i = 0, node; i < nodes.length; i++) {
      node = nodes[i];
      var ignore = parseSelector(selector, node.parentNode);
      for(var j = 0; j < ignore.length; j++) {
        if(ignore[j] == node) continue each;
      }
      result.push(node);
    }
    return result;
  }
}
/*****************************************************************************
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 franklin= { src: 'http://www.norrlandsoperan.se/NO/Admin/fonts/franklin.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.ua.supported = sIFR.ua.supported && (!sIFR.ua.ie || sIFR.ua.ieVersion > 6);

sIFR.activate(franklin);

// If you want, you can use multiple movies, like so:
//
//    var franklin= { src: 'http://www.norrlandsoperan.se/NO/Admin/fonts/franklin.swf' };
//    
//    sIFR.activate(franklin);
//
// Remember, there must be *only one* `sIFR.activate()`!

// Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.

//sIFR.debug.ratios(franklin, {
sIFR.replace(franklin, {
  selector: '.rubrik',
  tuneHeight: -4,
  wmode: 'transparent',
  offsetTop: 0,
  ratios: [6, 1.08, 10, 1.03, 11, 0.95, 14, 0.96, 20, 0.97, 34, 0.98, 104, 0.99, 1],
  css: [ 'a { background-color: #FFFFFF; color: #000000; text-decoration: none; }',
  'a:link { color: #000000;}',  
  'a:hover { color: #cccccc;}',
  '.sIFR-root { font-size:20px;color: #000000;leading:-4;letter-spacing:-0.15;text-transform:uppercase;margin-bottom:2px;margin-left:0;display:block;}'
]	
});

//MAINMENU
sIFR.replace(franklin, {
  selector: '#menu ul.NO_menu1 li.NO_menuNotSelected span.menu_firstlevel',
  ratios: [6, 1.29, 8, 1.18, 10, 1.08, 13, 1.02, 14, 0.96, 20, 0.97, 34, 0.98, 104, 0.99, 1],
  tuneHeight:'-8',
  tuneWidth:'0',
  wmode: 'transparent',
  css: [ 'a { color: #000000; text-decoration: none; }',
  'a:link { color: #000000;}',  
  'a:hover { color: #cccccc;}',
  '.sIFR-root { list-style-type: none;font-size: 20px;color:#000000;leading:0;letter-spacing:-0.15;text-transform:uppercase;margin-bottom:0;cursor: pointer;}'
]
});

sIFR.replace(franklin, {
  selector: '#menu ul.NO_menu1 li.NO_menuSelectedParent span.menu_firstlevel',
  ratios: [6, 1.29, 8, 1.18, 10, 1.08, 13, 1.02, 14, 0.96, 20, 0.97, 34, 0.98, 104, 0.99, 1],
  tuneHeight:'-8',
  tuneWidth:'0',
  wmode: 'transparent',
  css: [ 'a { color: #666666; text-decoration: none; }',
  'a:link { color: #666666;}',  
  'a:hover { color: #cccccc;}',
  '.sIFR-root { list-style-type: none;font-size: 20px;color:#666666;leading:0;letter-spacing:-0.15;text-transform:uppercase;margin-bottom:0;cursor: pointer;}'
]
});

sIFR.replace(franklin, {
	selector: 'ul.NO_menu1 li.NO_menuSelectedItem span.menu_firstlevel',
	ratios: [6, 1.29, 8, 1.18, 10, 1.08, 13, 1.02, 14, 0.96, 20, 0.97, 34, 0.98, 104, 0.99, 1],
	tuneHeight:'-8',
	tuneWidth:'0',
	wmode: 'transparent',
	css: [ 'a { color: #666666; text-decoration: none; }',
	'a:link { color: #666666;}',  
	'a:hover { color: #cccccc;}',
	'.sIFR-root { list-style-type: none;font-size: 20px;color:#666666;leading:0;letter-spacing:-0.15;text-transform:uppercase;margin-bottom:0;cursor: pointer;}'
]
});