﻿$(document).ready(function () {
    $(".navigation_son").hide();
    $(".navigation_a").hover(function () {
        $("#navigation_son" + $(this).attr("lang")).stop();
        $("#navigation_son" + $(this).attr("lang")).fadeTo(300, "0.6");
    }, function () {
        $("#navigation_son" + $(this).attr("lang")).fadeOut(200); // This should set the opacity back to 30% on mouseout
    });
});
$(document).ready(function () {
    $(".navigation_son").hover(function () {
        $(this).stop();
        $(this).fadeIn(300);
    }, function () {
        $(this).stop();
        $(this).fadeOut(200); // This should set the opacity back to 30% on mouseout
    });
});

$(document).ready(function () {
    if ($(window).height()>640) {
        $("#page").css("margin-top", ($(window).height() - 640) / 2);
    }
});
$(window).resize(function () {
    if ($(window).height() > 640) {
        $("#page").css("margin-top", ($(window).height() - 640) / 2);
    }
});
$(document).ready(function () {
    $("#navigation_son6 a:first").css("margin-left", "668px");
});
$(document).ready(function () {
    $("#navigation_son1 a:first").css("margin-left", "133px");
});
$(document).ready(function () {
    $("#navigation_son3 a:first").css("margin-left", "370px");
});
