$(document).ready(function(){
    var opt = {
        left: 2,
        top: 2,
        blur: 2,
        opacity: .5,
        color: "black",
        swap: false
    };
    $('.shadow').dropShadow(opt);
    $("a[href^=#]").each(function(){
        $(this).click(function(){
            var $href = $(this).attr("href");
            $href = $href.split("#");
            window.location.hash = "#" + $href[1];
            return false;
        });
    });
});

$(document).ready(function(){
    var url = $('#wh_suche').attr('src');
    if (url) {
        $('#wh_suche').autocomplete(url, {
            minChars: 3
        });
    }
});

function ikinfo(id_ik){ // ik: interaktive karte
    //    titel = replaceSpaces(titel, 'de');
    //    text = replaceSpaces(text, 'de');

    var titel = $('#ik_titel_' + id_ik).html();
    var text = $('#ik_text_' + id_ik).html();
    var bild = $('#ik_bild_' + id_ik).html();

    $('#interaktiveKarte .bild').html('<img src="' + bild + '" />');
    $('#interaktiveKarte .titel .titel_text').html(titel);
    $('#interaktiveKarte .text').html(text);
}

$(document).ready(function(){
    $("a[href^=#]").each(function(){
        $(this).click(function(){
            var $href = $(this).attr("href");
            $href = $href.split("#");
            $href = "#" + $href[1];
            window.location.hash = $href;
            return false;
        });
    });
});
3

