$(document).ready(function () {

    $("#eyecatcher").cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 8000,  	// milliseconds between slide transitions (0 to disable auto advance) 
        speed: 3000  	// speed of the transition (any valid fx speed value)
    });

    $('.popup').lightBox({ txtImage: 'Image', txtOf: 'of' });

    var agt = navigator.userAgent.toLowerCase();
    var isMSIE = (agt.indexOf("msie") != -1);
    if (!isMSIE) {

        $(jQuery(".submenu", this)).fadeTo("fast", 0);
        $(jQuery(".submenu", this)).css('display', 'none');
        $("#menu ul li ul li ul").fadeTo("fast", 0);

        $("#menu > ul > li").hover(function () {
            $(jQuery(".submenu", this)).stop();
            $(jQuery(".submenu", this)).css('display', 'block');
            $(jQuery(".submenu", this)).fadeTo("slow", 1.0);
        }, function () {
            $(jQuery(".submenu", this)).stop();
            $(jQuery(".submenu", this)).fadeTo("slow", 0);
            $(jQuery(".submenu", this)).css('display', 'none');
        });

        $("#menu > ul > li > ul > li").hover(function () {
            $(jQuery("ul", this)).stop();
            $(jQuery("ul", this)).css('display', 'block');
            $(jQuery("ul", this)).fadeTo("slow", 1.0);
        }, function () {
            $(jQuery("ul", this)).stop();
            $(jQuery("ul", this)).fadeTo("slow", 0);
            $(jQuery("ul", this)).css('display', 'none');
        });
    }

    $("a[href^='http:']").not("[href*='tebarint.nl']").not("[href*='tebarint.com']").attr('target', '_blank');  

});
