function exchangeDisplay(idshow){
    var el = idshow;
    $("#"+el).toggle("fast");
    return;
    }

function exchangeDisplayclose(menuepunkt){
    var el = menuepunkt;
    exchangeDisplay(el);
    var m1 = 'umenu_prodserv';
    var m2 = 'umenu_kontakt';
    var m3 = 'umenu_preisleist';
    var umenu = new Array(m1,m2,m3)
    for (var i=umenu.length-1; i>=0; i--)
    {
        if(umenu[i] != el){
        $("#"+umenu[i]).slideUp("fast");}
        }
}

function change_content (menuepunkt,site_name,site_uname,var_to_set,site_title){
    /* alert(document.compatMode); */
    document.title = 'Lektorat Nintemann - '+site_title;
    exchangeDisplayclose(menuepunkt);
    $.address.value(site_name);
    
    /*
    $.ajax({
    type: "POST",
    url: "index.htm",
    data: "tmpl_name="+site_name+"&"+"tmpl_nr="+site_uname+"&"+"tmpl=yes",
    success: function(content){
    //$("#content").html(content);
    $('#content').hide().html(content);
    setTimeout(function(){$("#content").fadeIn("fast");}, 150);
    }});
    */
    }

function autoresize(size,factor){
var bwidth = $('body').width();
if (bwidth<size){
//$('#content_top,#content_top_trans').css('left','18px');
$('body').css({ backgroundPosition:"0px 0px",left:"0px" });
}
if (bwidth>size){
var greater = bwidth-size;
var diff = Math.floor(greater/10)*factor;
//$('#content_top,#content_top_trans').css('left',+diff+'px');
$('body').css('left',+diff+'px');
$('body').css('backgroundPosition',+diff+'px 0px');
}
}

    

    