
$(function()
{
    $('.Konjunktur').find('a').click
    (
        Konjunktur()
    );
        
    $('hvtermin').find('a').click
    (
        hvtermin()
    );
      
});




function Konjunktur()
{
    $('.Konjunktur').find('a').click
    (
            function(e)
            {                      
                e.preventDefault();
                ET_Event.eventStart('Konjunktur-Termine',$(this).text(),'Klick');
                $(this).parent().parent().find('td').removeClass('active');
                $(this).parent().addClass('active');
                //alert($('#wert').text());

                var wert = $(this).attr('id');

                $.ajax
                (
                    {
                        type: "POST",
                        url: WWW_URL+"ajax/konjunktur_termine.php",
                        data: 'art='+wert,
                        dataType: "html",
                        success: function(msg)
                        {                    
                            $('#konjunkturtermine').slideUp(1000, function(){
                                    $('#konjunkturtermine').html(msg).slideDown(1000);
                                });
                        }
                    }
                );           
        });
   
}

function hvtermin()
{
    $('.hvtermin').find('a').click
    (
            function(e)
            {                      
                e.preventDefault();
                ET_Event.eventStart('HV-Termine',$(this).text(),'Klick');
                $(this).parent().parent().find('td').removeClass('active');
                $(this).parent().addClass('active');
                //alert($('#wert').text());

                var wert = $(this).attr('id');

                $.ajax
                (
                    {
                        type: "POST",
                        url: WWW_URL+"ajax/konjunktur_termine.php",
                        data: 'isin='+wert,
                        dataType: "html",
                        success: function(msg)
                        {                    

                            $('#hauptversammlungstermine').slideUp(1000, function(){
                                    $('#hauptversammlungstermine').html(msg).slideDown(1000);
                                });
                        }
                    }
                );           
        });
   
}
