$(document).ready(function() {

    // Alle links met rel="external" in een nieuw venster openen
    $("a[rel=external]").each(function(i){
        this.target="_blank";
    });

    // Uniform formulieren
    $("select, input:checkbox, input:radio, input:file").uniform();

    // Prefill text for inputs
    $("input[type='text']").example(function() {
        return $(this).attr('title');
    }, {className: 'exampletxt'});


    $('.voertuig .slideshow').cycle({
        fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    });

});

// Cufon!
/*Cufon.replace('.max, .wizard h2, .content h1, .content h2, .actieblok h2, .actieblok .more, #header a, .map-overlay h3, .tekstblok h1, .tekstblok h2, .tekstblok h3, .col-large h2', {
    hover: true
});*/
Cufon.replace('.max, .content h1, .tekstblok h1, .content h2, .col-wrap h2, .content h3, .col-wrap h3, .actieblok .more, #header a', {
    hover: true
});

/**
 fix voor iframe in stap 1: de cufon tekst moet onder de datepicker staan.
 Als je over het iframe hovert krijgt de cufon tekst een negatieve z-index
 Onmouseout krijgt cufon weer een positieve z-index, anders is hij in IE niet aanklikbaar.
 */
function cufonZindex(iIndex){
    $('.actieblok .cufon, .actieblok .cufon *').css('z-index',iIndex);
}
