function goToByScroll(id){
    $('html,body').animate({
        scrollTop: $("#"+id).offset().top
    },'slow');
}

$(document).ready(function() {
    
    /***********************LI-Bullets********************/
    
    $('#content li a').parent().css('background-image', 'url(typo3conf/ext/baag_template/res/public/images/bullet_over.png');
    
    /***********************TABLE************************/
    
    $('table').attr('cellPadding','0');
    $('table').attr('cellspacing','0');
    $('table td, table th ').attr('valign','top');
    $('table td, table th ').attr('align','left');
        
    //  $('#footersticky #top').removeAttr('href');
   
   /*****************************engl Seiten*************/
   
   if($('html').attr('lang')=='en'){
       $('#header').addClass('en');
       $('#content').addClass('en');
   }
    /****************************News*********************/
    
    $('#news #news_more h2 a').removeAttr('href');
    
    $('#news #news_more ul li').each(function(index){
        if(index== 2){
            $(this).hide();
        }
        
        if(index == 1){
            $(this).css('background','none');
        }
    });
    $('#news #news_list ul li').each(function(index){
        if(index== 1 ||  index ==2){
            $(this).css('padding','8px 0');
        }
        if(index == 2){
            $(this).css('background','none');
        }
   
    });
    
    $('#news_more_latest').parent().css('background','none');
    $('#news_more_latest #morelink a').attr('target', '_top');
    
    /****************************Forms*********************/ 
    
    $('.tx-powermail-pi1_mandatory').parent().show().css('margin','15px 10px');
    
    $('.tx-powermail-pi1_mandatory').parent().parent().parent('#contact').css('background-image', 'url(typo3conf/ext/baag_template/res/public/images/kontakt_base_over.png)').css('height', '329px').css('width', '375px');
    
    $('.tx-powermail-pi1_mandatory').parent().parent().parent('#newsletter').css('background-image', 'url(typo3conf/ext/baag_template/res/public/images/newsletter_base_over.png)').css('height', '329px').css('width', '375px');


   /****************************Sonstige*********************/
    
    $('#print a').removeAttr('href');
    
    $('.tx-sgglossary-pi1 h3 a').removeAttr('href');
    
    $('#content #main .csc-textpic').first().addClass('headline_img');
    
});


