﻿function putv(kontroll, till) {
    $("#" + kontroll).val(till);
    $("#cal2" + kontroll).fadeOut();
    if ($("#" + kontroll).hasClass("autopb")) {
        document.forms[0].submit();
    }
}

function putv2(kontroll, till, kontroll2, till2) {
    $("#" + kontroll).val(till);
    $("#" + kontroll2).val(till2);
    $("#cal2" + kontroll).fadeOut();
}

$(document).ready(function() {
    $(".flik1").hover(function() {
        $(this).animate({ top: "-=3px", height: "35px" }, 100);
        $(this).addClass("hover2");
    }, function() {
        $(this).animate({ top: "0px", height: "35px" }, 100);
        $(this).removeClass("hover2");
    }).click(function(e) {
        $(this).find("a").each(function(e) {
            if ($(this).attr("href") != null) {
                document.location = $(this).attr("href");
            }
        });
    });

    $(".swooshin").animate({
        "left": "0px"
    }, 300);
    $(".fadein").fadeIn(300);
    $(".harfokus").focus();
    $(".vald").select();
    $(".infobar").slideDown(600);
    $(".toggler1").click(function() {
        $(".toggle1").fadeIn(500);
        $(this).fadeOut(500);
    });
    $(".toggler2").click(function() {
        $(".toggle2").fadeIn(500);
        $(this).hide();
    });
    $(".klicktd").mouseover(function(e) {
        $(this).addClass("hover");
    }).mouseout(function(e) {
        $(this).removeClass("hover");
    }).click(function(e) {
        $(this).find("a").each(function(e) {
            if ($(this).attr("href") != null) {
                document.location = $(this).attr("href");
            }
        });
    });
});
