﻿var baseTimeout = 15250;
$(document).ready(function () {

    if ($.cookie('sampleCookie') == null) {
        var elementToHide = $("div, #footer-right img, #footer-right input, #firstMenu, #ctl00_logo");

        elementToHide.css("opacity", "0");

        $("#firstLineWrapper").css("opacity", "1");

        $("#wrapper, #ctl00_logo, #header, #header .BannerSection, #header .BannerSection #slideshow").delay(500).animate({ "opacity": "1" }, 1500, function () { elementToHide.delay(500).animate({ "opacity": "1" }, 2000); });

        $.cookie('sampleCookie', 'cookieValue', { expires: 1 });
    }

    $('.first')
        .cycle({
            fx: 'scrollDown',
            timeout: baseTimeout,
            sync: 0
        });

    $('.second')
        .cycle({
            fx: 'scrollDown',
            timeout: baseTimeout + (1500 * 2),
            sync: 0
        });

    $('.third')
        .cycle({
            fx: 'scrollDown',
            timeout: baseTimeout + (1500 * 3),
            sync: 0
        });

    $('.fourth')
        .cycle({
            fx: 'scrollDown',
            timeout: baseTimeout + (1500 * 4),
            sync: 0
        });

    $.uniform.update();

    $('.first li').each(function () {
        $(this).css("background-color", "transparent");
    });

    $(".carreerFormComplete").fadeOut()
});
