function jpeg_over(img) {
img.src=img.src.replace('.jpg','r.jpg');
};
function jpeg_out(img) {
img.src=img.src.replace('r.jpg','.jpg');
};

function gif_over(img) {
img.src=img.src.replace('.gif','r.gif');
};
function gif_out(img) {
img.src=img.src.replace('r.gif','.gif');
};

function out(ids) {
	document.all[ids].style.display="block";
};
function over(ids) {
	document.all[ids].style.display="none";
};


function switch_lang(lang) {
	lang = document.location+"/"+lang;
	window.location.href = lang;
};

function validate_email(email){
    if(email=="") return true;
    AtPos = email.indexOf("@")
    StopPos = email.lastIndexOf(".")
    if (AtPos == -1 || StopPos == -1) return false;
    else return true;
}

var speed = 200;
$(document).ready(function(){
    $(".div_menu2").hover(function(){
        $(".menu3").stop(true, true).slideUp(0);
        var p_top = $(this).children("a.menu2").offset().top - $("#dop_menu").offset().top;
        $(this).children(".menu3").css("top", p_top + "px");
        $(this).children(".menu3").slideDown(speed);
    }, function(){
        $(this).children(".menu3").slideUp(speed);
    });
});
