$(document).ready(function(){
    external_links();
    hotspots();

});

function external_links()
{
    $('a[rel=external]').each(function(){
        $(this).attr('target', '_blank').attr('title', $(this).attr('title') + ' [Öffnet in einem neuen Fenster]');
    });
}

function hotspots()
{
    if(jQuery.browser.msie)
    {
        $('.content_select').show();
    }
    else
    {
        $('.content_select').fadeIn(1000);
    }
    
    $('.content_select')
        .click(function(){
            return false;
        })
        .mouseenter(function(){
            id = '#' + $(this).attr('rel');
            $('.content_item:not(' + id + ')').fadeOut(250);
            $(id).fadeIn(250);
        });
    
    $('span.close').click(function(){
        $(this).parent('div.content_item').fadeOut(250);
    });
    
    $('#navi li').mouseenter(function(){
        $('.content_item').fadeOut(250);
    });
}
