$(document).ready(function(){

    $("ul.bookmarks li").hover(
        function(){
        $(this).children("a").animate({"margin-top": "-3px"}, 250);
        }
    ,
        function(){
        $(this).children("a").stop(true, false).animate({"margin-top": "0px"}, 500);
        }

    );

    var ip = $("#ip");
    var anzahl = ip.html().length;

    if(anzahl >= 24){
        ip.css("font-size", "14px");
    }



    // Derzeit nicht in Gebrauch
    $("div.einzeln.letztes").click(function(){
        $(".map").fadeToggle();
        });

    $(".map").click(function(){
        $(this).fadeOut().stop();
        });
    // --------------------------

    //Variable für Cookie und Cookie-Suche (nach 'mobil')
    var m = document.cookie;
    var suche = m.search("mobil=true");

    //Datum für Verfallszeit
    var d = new Date();
    d = new Date(d.getTime() +1000*60*60*24*365);

    //Guckt, ob Mobil-Cookie true ist, wenn ja, link anzeigen
    if (suche !== -1){
        $("span#mobil_anzeige").show();
    }

    if ($(".calc_height").height() > '260'){
        $(".calc_height").css("margin-top", "-16px");
    }


});
