﻿/* Cufon fontreplace */
Cufon.replace('h1:not(#logo):not(.footer-text h1), .flit-header, #account-links span, .flit-btn, #startpage-banner>p');
Cufon.replace('#main-menu a', {
    hover: true
});

Cufon.replace('#left-menu .level1>a');
Cufon.replace('.blurb-inner h3');
Cufon.replace('#joblist-header');


$(document).ready(function () {
    // Framtiden page init
    if (!Modernizr.borderradius) {
   //      No border radius; fix fallback with pictures
       // $("aside.blurb").wrapInner('<div class="blurb-inner" />')
    }

    $(".fancyboxed-iframed").fancybox({
        'width': 500,
        'height': 600,
        'autoScale': false,
        'transitionIn': 'fade',
        'transitionOut': 'none',
        'type': 'iframe'
    });

    var slideShow = $('.slideshow');
    if ($("img", slideShow).length > 1) {
        $(slideShow).cycle();
        $(".slideshow img:not(:first-child)").css({ opacity: 0 });
    }

    if ($(".startpage-content").length) {
        $(".job-list a").slice(0, 3).equalHeights().end()
        .slice(3, 6).equalHeights().end()
        .slice(6, 9).equalHeights();
    }
});  

