var link = $('head').find('link[href*=new_year_no_limits]');

if (link.length > 0) {
    $(document).ready(function() {
        $('#skin-main-nav li:first').addClass('FirstNav').after('<li class="sep"><div class="slash">/</div></li>');
        $('#skin-main-nav li:nth-child(3)').addClass('SecondNav').after('<li class="sep"><div class="slash">/</div></li>');
        $('#skin-main-nav li:nth-child(5)').addClass('ThirdNav').after('<li class="sep"><div class="slash">/</div></li>');
        $('#skin-main-nav li:nth-child(7) a').attr('target', '_blank');
        $('#skin-main-nav li:nth-child(7)').addClass('FourthNav').after('<li class="sep"><div class="slash">/</div></li>');
        $('#skin-main-nav li:nth-child(9)').addClass('FifthNav');

        $('#skin-secondary-nav').html('<span class="Follow"></span><a href="http://www.facebook.com/redbull" class="Facebook"></a><a href="http://www.twitter.com/redbull" class="Twitter"></a>');

        $('.gallery-navigation li').click(function() {


        });
    });


    var parseSelector = $;
    var rockWell = { src: 'http://nynl.redbullusa.com/Flash/sifr/rockWell.swf' };

    sIFR.useStyleCheck = true;

    sIFR.activate(rockWell);

    sIFR.replace(rockWell, {
        selector: '#skin-main-nav li.On:not(".sep")',
        css: [
        '.sIFR-root { background-color: #000000; text-transform:uppercase; text-align:center}',
        'a { text-decoration:none; color:#ffd500 }',
        'a:hover { text-decoration:none; color:#ffd500 }'
       ],
        selectable: true,
        fitexactly: true,
        preventwrap: true,
        forcesingline: true,
        wmode : 'transparent'
    });


    sIFR.replace(rockWell, {
        selector: '#skin-main-nav li:not(".sep")',
        css: [
        '.sIFR-root { background-color: #000000; text-transform:uppercase; text-align:center}',
        'a { text-decoration:none; color:#FFFFFF }',
        'a:hover { text-decoration:none; color:#ffd500 }'
       ],
        selectable: true,
        fitexactly: true,
        preventwrap: true,
        forcesingline: true,
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '.Choose',
        css: '.sIFR-root {color: #979797; text-align:right; background-color: #000000; text-transform:uppercase;  height:22px; }',
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '.historyNavigation .On',
        css: [
        '.sIFR-root {  background-color: #000000;  text-transform:uppercase; text-align:center;  }',
        'a { text-decoration:none; color:#ffd500 }',
        'a:hover { text-decoration:none; color:#ffd500 }'
        ],
        selectable: true,
        fitexactly: true,
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '.historyNavigation .Year',
        css: [
        '.sIFR-root {  background-color: #000000; text-transform:uppercase; text-align:center;  }',
        'a { text-decoration:none; color:#979797 }',
        'a:hover { text-decoration:none; color:#ffd500 }'
        ],
        selectable: true,
        fitexactly: true,
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '#video #main-content h2, #profile #main-content h2, #article #main-content h2, #event-competition #main-content h2',
        css: '.sIFR-root {  background-color: #000000; color:#979797; text-transform:uppercase; text-align:left; }',
        selectable: true,
        fitexactly: true,
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '#secondary-content div[id!=image-navigation] h3',
        css: '.sIFR-root {  background-color: #000000; color:#FFFFFF; text-transform:uppercase; text-align:left; }',
        selectable: true,
        fitexactly: true,
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '.PhotoTitle',
        fitExactly: true,
        css: '.sIFR-root { background-color: #000000; color: #FFFFFF;  text-transform:uppercase;  }',
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '#feed-content h3, .articleContainer h3, #comments h3, #category h2',
        css: '.sIFR-root { background-color: #063058; font-size:26px; color: #FFFFFF; text-transform:uppercase; }',
        wmode : 'transparent'
    });

    sIFR.replace(rockWell, {
        selector: '.signUp .sifr',
        css: '.sIFR-root { background-color: #041C42; color: #61758E;  text-transform:uppercase; }',
        wmode : 'transparent'
    });
}