/*-----------------------------------------------------------------------------
Web Site:			QVision

$CteatedDate:		18.08.2009 $
$Autor:				annag $

$Revision: 109 $
$LastChangedDate: 2009-12-01 16:30:48 +0000 (Tue, 01 Dec 2009) $
$LastChangedBy: annag $
-----------------------------------------------------------------------------*/

/*****************************************************************************
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.
*****************************************************************************/

// Specifically Don’t Replace Certain Text

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;
  }
}

var bell_gothic_black = { src: '/assets/flash/bell-gothic-black.swf' };

sIFR.useStyleCheck = true;
// sIFR.useDomLoaded = false;

sIFR.activate(bell_gothic_black);

// styling Freefone

sIFR.replace(bell_gothic_black, {
    selector: '.contact'
    , forceWidth: 'true'
    , wmode: 'transparent'
    , css: [
        '.sIFR-root { color: #5d6266; font-size: 15px; text-align: right; leading: -5;}'
        , 'strong { color: #00a7e3; font-size: 200%;}'
    ]
});

// sign up on homepage

sIFR.replace(bell_gothic_black, {
    selector: '#homepage .gray-line-block .h5 b'
    , forceWidth: 'true'
    , wmode: 'transparent'
    , css: [
        '.sIFR-root { color: #00a7e3; font-size: 13px; leading: -5;}'
    ]
});

// styling H1

sIFR.replace(bell_gothic_black, {
    selector: 'h1:not(.logo)'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 24px; leading: -2;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

// styling H2

sIFR.replace(bell_gothic_black, {
    selector: '.top-applications .top-applications-data h2'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #ffffff; font-size: 28px; leading: -8;}'
        ,'strong { color: #ffffff; font-size: 142%;}'
    ]
});

// styling H3

sIFR.replace(bell_gothic_black, {
    selector: '#homepage .gray-skew h3.title'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #000000; font-size: 18px; leading: -10;}'
    ]
});

// styling H4

sIFR.replace(bell_gothic_black, {
    selector: '#homepage .gray-line-block h4.title, #homepage .gray-line-block b.h4'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 24px; leading: -12;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

sIFR.replace(bell_gothic_black, {
    selector: '.gray-line-block h4.title'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 20px; leading: -12;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

sIFR.replace(bell_gothic_black, {
    selector: '.primary-content-right .gray-line-block b.h4'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 20px; leading: -12;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

sIFR.replace(bell_gothic_black, {
    selector: '.gray-line-block b.h4'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 14px; leading: -12;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

// styling H5

sIFR.replace(bell_gothic_black, {
    selector: '#homepage .gray-block.login h5'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 16px; leading: -10;}'
    ]
});

sIFR.replace(bell_gothic_black, {
    selector: '.gray-block.login h5, .gray-block.register h5'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 20px; leading: -10;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});

// styling strong.title

sIFR.replace(bell_gothic_black, {
    selector: 'fieldset.list-search strong.title'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 16px;}'       
    ]
});


sIFR.replace(bell_gothic_black, {
    selector: 'primary-content-left strong.title'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 16px;}'       
    ]
});

sIFR.replace(bell_gothic_black, {
    selector: '.primary-content-right fieldset.list-search strong.title'
    ,forceWidth: 'true'
    ,wmode: 'transparent'
    ,css: [
        '.sIFR-root { color: #00a7e3; font-size: 20px; leading: -12;}'
        ,'a { text-decoration: none }'
        ,'a:link { color: #00a7e3 }'
        ,'a:hover { color: #00a7e3 }'
    ]
});
