
function hideThose()
{
    // Komfortfunktionen verstecken
    $("div.coloredBox div.inner h2:contains('Komfortfunktionen')").parent().parent().hide();
}

function global_init()
{
    hideThose();

    /*
    if(IE6())
    {
        $(".overlaySmall").ifixpng();
        $(".overlayBig").ifixpng();
        $(".new").ifixpng();
    }*/

    //IE6_pngfix();
}

function printLog(msg)
{
    $("#logDisplay").prepend(msg + "<br />");
}

function plugInOverlays()
{
    $("dfn").hide();

    $("em").each( function() {

        var sel = "#" + this.id;

        $(sel).mouseover(function() {
            overlib($("#d_"+this.id).text());
        });

        $(sel).mouseout(function() {
            nd();
        });

        $(sel).css("cursor", "help");
    });
}

var ol_bgcolor = "";
var ol_bgbackground = "";
var ol_fgcolor = "#f6909d";
var ol_offsetx = 25;
var ol_offsety = 0;

function IE6()
{
    return /MSIE 6/.test(navigator.userAgent);
}

function IE()
{
    return /MSIE/.test(navigator.userAgent);
}

function IE6_pngfix()
{
    $('.overlaySmall, .overlayBig, .new').each(function(i,data) {
        data.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + data.src + "', sizingMethod='scale')";
    });
}

function isSet(variable)
{
    return( typeof(variable) != 'undefined' );
}

function cleanUp()
{
    if (isSet(map)) {GUnload();}
}

function ShowLoadingScreen()
{
    $("#Content").css("visibility", "hidden");
    $("#Loading").show();
}

function HideLoadingScreen()
{
    $("#Content").css("visibility", "visible");
    $("#Loading").hide();
}

function openPopup(url, title, width, height)
{
    window.open(url, title, "status=0,toolbar=0,location=0,menubar=0,resizable=1," +
            "width="+width+",height="+height+",top=100,left=100");
}
