﻿$(document).ready(function () {
    $('.box.slidedown').hover(function () {
        $(".cover", this).stop().animate({ top: '-260px', left: '347px' }, { queue: false, duration: 300 });
    }, function () {
        $(".cover", this).stop().animate({ top: '0px', left: '0px' }, { queue: false, duration: 300 });
    });

    $('.box.slideright').hover(function () {
        $(".cover", this).stop().animate({ left: '348px' }, { queue: false, duration: 300 });
    }, function () {
        $(".cover", this).stop().animate({ left: '0px' }, { queue: false, duration: 300 });
    });

    $('.box.thecombo').hover(function () {
        $(".cover", this).stop().animate({ top: '260px', left: '325px' }, { queue: false, duration: 300 });
    }, function () {
        $(".cover", this).stop().animate({ top: '0px', left: '0px' }, { queue: false, duration: 300 });
    });

    $("#soort1, #soort2, #soort3, #soort4, #soort5, #soort6, #soort7, #soort8").msDropDown();

    $('a.fancy').fancybox();

    $('a.fancyVoorwaarden').fancybox({
        'width': '65%',
        'height': '100%',
        'type': 'iframe',
        'padding': '30px'
    });

    $("a.details").fancybox({
        'transitionIn': 'fade',
        'transitionOut': 'fade',
        'speedIn': 200,
        'speedOut': 200, 
        'type': 'iframe',
        'hideOnContentClick': false,
        'zoomSpeedIn': 0,
        'zoomSpeedOut': 0,
        'overlayShow': true,
        'overlayColor': '#000',
        'overlayOpacity': 0.7,
        'padding': 0,
        'width': 970,
        'height': 436,
        'showCloseButton': false
    });

    $("a.detailsKijker").fancybox({
        'transitionIn': 'fade',
        'transitionOut': 'fade',
        'speedIn': 200,
        'speedOut': 200,
        'type': 'iframe',
        'hideOnContentClick': false,
        'zoomSpeedIn': 0,
        'zoomSpeedOut': 0,
        'overlayShow': true,
        'overlayColor': '#000',
        'overlayOpacity': 0.7,
        'padding': 0,
        'width': 970,
        'height': 436,
        'showCloseButton': false
    });

});
