﻿$(document).ready(function () {

    $('.twitter').corner('10px');

    // Animation
    $(".slogan").animate({ width: '1200', height: '600', top: '-400', left: '10', opacity: '0' }, 10);
    $(".slogan").oneTime(800, function () {
        $(this).animate({
            left: '285',
            width: '533',
            height: '164',
            top: '30',
            opacity: 1
        }, 600);
    });
    $(".skugga").animate({ top: 950 }, 10);
    $(".skugga").oneTime(10, function () {
        $(this).animate({
            top: '30'
        }, 1300);
    });

    $(".body").corner();
    $(".body").slideDown();

    $(".payoff").oneTime(3500, function () {
        $(this).fadeIn(80).fadeOut(15).fadeIn(80).fadeOut(15).fadeIn(80).fadeOut(15).fadeIn(80);
    });

    $(".delay1").oneTime(5000, function () {
        $(this).fadeIn(1100);
    });
    $(".delay2").oneTime(500, function () {
        $(this).fadeIn(1100);
    });

    $(".klick").mouseover(function (e) {
        $(this).addClass("hover");
        return false;
    }).mouseout(function (e) {
        $(this).removeClass("hover");
        return false;
    }).click(function (e) {
        $(this).find("a").each(function (e) {
            if ($(this).attr("href") != null) {
                document.location = $(this).attr("href");
                return false;
            }
        });
        return false;
    });

    $('.fokus').select().focus();
});

function sAssGetTQ(q) {
    $('.wassid').val(q);
    document.forms[0].submit();
}
