/*****************************************************************************
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 bold = { src: 'fileadmin/fonts/bureaucondensed-bold.swf' };
var book = { src: 'fileadmin/fonts/bureaucondensed-book.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(bold,book);

// Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.

sIFR.replace(bold, {
  selector: '#content h1',
  css: '.sIFR-root {text-transform:uppercase;}',
  tuneHeight: 5,
  offsetTop:7,
  wmode: 'opaque'
});

sIFR.replace(bold, {
  selector: '#sidebar strong',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#000000;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color: #ffffff;}'],
  offsetTop: 3,
  tuneHeight:-2
});
//------------------------------ news latest
sIFR.replace(bold, {
  selector: '.aside .news_latest_container h3',
  css: ['.sIFR-root { text-transform:uppercase;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#faa61a;}'],
  offsetTop:3,
  tuneHeight:3
});

//------------------------------ focusbox
sIFR.replace(book, {
  selector: '.focusbox .orange',
  css: '.sIFR-root { text-transform:uppercase; background-color:#000000; color:#faa61a;}',
  offsetTop:3,
  tuneHeight:3
});

sIFR.replace(bold, {
  selector: '.focusbox .white',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#000000;}',
  'a {text-decoration: none;}',
  'a:link{color:#ffffff;}',
  'a:hover{color:#faa61a;}'],
  offsetTop: 3
});



//------------------------------ orange focusbox
sIFR.replace(book, {
  selector: '.orange_focusbox .white',
  css: '.sIFR-root { text-transform:uppercase; background-color:#faa61a; color:#ffffff;}',
  offsetTop:3,
  tuneHeight:3
});

sIFR.replace(bold, {
  selector: '.orange_focusbox .black',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#ffffff;}'],
  offsetTop: 3
});

//------------------------------ factbox

sIFR.replace(bold, {
  selector: '.factbox h2',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#000000; color:#ffffff;}',
  'a {text-decoration: none;}',
  'a:link{color:#ffffff;}',
  'a:hover{color:#faa61a;}'],
  offsetTop:3
});

//------------------------------ orange faktabox

sIFR.replace(bold, {
  selector: '.orange_faktaboks h2',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#faa61a; color:#000000;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#000000;}'],
  offsetTop:3
});

//------------------------------ mapbox

sIFR.replace(bold, {
  selector: '.mapbox strong',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#ffffff; color:#000000;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}'],
  offsetTop:3
});

sIFR.replace(bold, {
  selector: '.mapbox h2',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#ffffff; color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}'],
  offsetTop:3
});

//------------------------------ container h2

sIFR.replace(bold, {
  selector: '.container h2',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#ffffff; color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}']
});


//------------------------------ blackbarheaders

sIFR.replace(bold, {
  selector: '.inner .intro strong.blackbarmain',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#000000; color:#ffffff;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}'],
  offsetTop:3,
  tuneHeight:3
});

sIFR.replace(book, {
  selector: '.inner .intro span.blackbarsub',
  css: ['.sIFR-root { text-transform:uppercase; background-color:#000000; color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}']
});

//-------------------------------- news list

sIFR.replace(bold, {
  selector: '.news_list_container h3',
  css: ['.sIFR-root { text-transform:uppercase;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#faa61a;}'],
  offsetTop:3,
  tuneHeight:3
});

//-------------------------------- cal list

sIFR.replace(bold, {
  selector: '.tx-cal-controller .news_latest_container h3',
  css: ['.sIFR-root { text-transform:uppercase;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#faa61a;}'],
  offsetTop:3,
  tuneHeight:3
});

//-------------------------------- cal event data

sIFR.replace(book, {
  selector: '.eventdata dt',
  css: ['.sIFR-root { text-transform:uppercase; color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}']
});

sIFR.replace(book, {
  selector: '.eventdata dd',
  css: ['.sIFR-root { text-transform:uppercase; color:#000000;}',
  'a {text-decoration: none;}',
  'a:link{color:#faa61a;}',
  'a:hover{color:#000000;}']
});

//------------------------------- comments

sIFR.replace(bold, {
  selector: '.tx-comments-pi1 .active h3',
  css: '.sIFR-root {text-transform:uppercase;}',
  tuneHeight: 5,
  offsetTop:3
});

sIFR.replace(bold, {
  selector: '.tx-comments-pi1 .tx-comments-comment-form h3',
  css: '.sIFR-root {text-transform:uppercase;}',
  tuneHeight: 5,
  offsetTop:3
});


//------------------------------- search
sIFR.replace(bold, {
  selector: '.search-item h3',
  css: ['.sIFR-root { text-transform:uppercase; color:#faa61a;}',
  'a {text-decoration: none;}',
  'a:link{color:#000000;}',
  'a:hover{color:#faa61a;}'],
  offsetTop:3
});

//------------------------------ innercont h2

//sIFR.replace(bold, {
//  selector: '#innercont h2',
//  css: ['.sIFR-root { text-transform:uppercase; background-color:#ffffff; color:#000000;}']
////  'a {text-decoration: none;}',
////  'a:link{color:#faa61a;}',
////  'a:hover{color:#000000;}']
//});

//------------------------------ innercont h3

//sIFR.replace(bold, {
//  selector: '#innercont h3',
//  css: ['.sIFR-root { text-transform:uppercase; background-color:#ffffff; color:#000000;}']
////  'a {text-decoration: none;}',
//// 'a:link{color:#faa61a;}',
////  'a:hover{color:#000000;}']
//});		