﻿/// <reference path="jquery-1.3.2-vsdoc2.js" />

Cufon.replace("h1, h2");
Cufon.replace(".Handtekening", { fontFamily: "Journal" });

$(document).ready(function () {

    var config = {
        sensitivity: 3,
        interval: 50,
        over: OpenSubMenu,
        timeout: 400,
        out: function () { $("ul", this).hide(); }
    };

    $("#Mp_Menu li:has(ul)").hoverIntent(config).click(OpenSubMenu);


});



jQuery.fn.FsTabs = function () {
    return this.each(function () {

        $(".Switches li", this).click(function () {

            var TabDiv = $(this).closest(".Tabs");
            var Switches = $(".Switches li", TabDiv).removeClass("selected");
            var Index = Switches.index(this);

            $(this).addClass("selected");
            $(".TabContent", TabDiv).hide().eq(Index).show();

            return false;

        });

        $(".TabContent", this).hide();
        $(".Switches li:first", this).click();

    });
}



function OpenSubMenu() {
    $("ul", this).slideDown(100);
}



$(window).load(function () {

    $("#Carousel").jCarouselLite({
        auto: 2000,
        speed: 300,
        visible: 2.5
    });

});
