$(function(){
    if ($.browser.msie)
    {
        
        $('#menu .menuTree li:nth-child(1) a').css({'padding': '12px 26px 0 15px', 'width': '31px'});
        $('#menu .menuTree li:nth-child(2) a').css({'width': '117px'});
        $('#menu .menuTree li:nth-child(3) a').css({'width': '90px'});
        $('#menu .menuTree li:nth-child(4) a').css({'width': '118px'});
        $('#menu .menuTree li:nth-child(5) a').css({'width': '104px'});
        $('#menu .menuTree li:nth-child(6) a').css({'width': '130px'});
        $('#menu .menuTree li:nth-child(7) a').css({'width': '139px'});
        $('#menu ul li ul li:nth-child(1)').attr('style','background-image: none !important;');
    }
    
    $('.languageSelect li.inactive').fadeTo(1,0.5);
    $('img.donatieBalkLower').each(function(){
        var balkWidth = $(this).width();
        $(this).css('width', 0).animate({'width':balkWidth}, 'slow');
    });
    
    var galleries = $('.ad-gallery').adGallery({
        slideshow: { enable: true }        
    });

    $('dl.zend_form dt label.required').each(function(){
        $(this).html($(this).html() + ' * ');
    });
    $('dl.zend_form dl button').each(function(){
        $(this).parent().html('<div class="reqLabel">* deze velden zijn verplicht</div>' + $(this).parent().html());
    });

    $('dl.zend_form #element-135-e_mailadres-label').css('margin', '0 0 10px 0');
    $('dl.zend_form #element-135-e_mailadres-element').css('margin', '0 0 10px 0');

    $('dl.zend_form dd input[type=text], dl.zend_form dd select').each(function(){
        $(this).parent().html('<div class="semicolumn">:</div>' + $(this).parent().html());
    });

});

