$(document).ready(function(){
	$('.speakers').hide();
	$('.themas').click(function(){
		$('.speakers').hide('fast');
		$('.detail').hide('fast');
		$(this).next().show('fast');
		
	});
	$('.detail').hide();
	$('.work').click(function(){
		$('.detail').hide('fast');
		$(this).next().show('fast');
	});
})


$(document).ready(function(){
    var pathname = window.location.pathname;
    /*	alert(pathname);*/
    
    if (pathname.match('nl')) {
        $("a.passhouse").css({
            'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/beurs.png)',
            'background-repeat': 'no-repeat'})
        $('.menu-top_menu-container').remove();
        $('.menu-top_menu_fr-container').remove();
        $('#linkcat-9').remove();
        $('#linkcat-10').remove();
		$('#linkcat-11').remove();
        $('#linkcat-13').remove();
        $("a.passhouse").attr("href","http://www.passivehouse.be/fair/nl/");
		$("a.switcher").attr("href","http://www.passivehouse.be/symposium/nl/");
		$(".switcher").css({
            'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/goto_nl.png)',
            'background-repeat': 'no-repeat'
        });
        $(".switcher").hover(function(){
            $(this).animate({
                top: '-30'
            }, 150)
        }, function(){
            $(this).animate({
                top: '-45'
            }, 100)
        });
        return;
    }
    else 
        if (pathname.match('fr')) {
            $("a.passhouse").css({
                'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/salon.png)',
                'background-repeat': 'no-repeat'
            });
            
            $('.menu-top_menu-container').remove();
            $('.menu-top_menu_nl-container').remove();
            $('#linkcat-8').remove();
            $('#linkcat-9').remove();
			$('#linkcat-11').remove();
        	$('#linkcat-12').remove();
            $("a.passhouse").attr("href","http://www.passivehouse.be/fair/fr/");
			$("a.switcher").attr("href","http://www.passivehouse.be/symposium/fr/");
			$(".switcher").css({
                'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/goto_fr.png)',
                'background-repeat': 'no-repeat'
            });
            $(".switcher").hover(function(){
                $(this).animate({
                    top: '-30'
                }, 150)
            }, function(){
                $(this).animate({
                    top: '-45'
                }, 100)
            });
            return;
        }
        else {
            $("a.passhouse").css({
                'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/fair.png)',
                'background-repeat': 'no-repeat'
            });
            
            $('.menu-top_menu_nl-container').remove();
            $('.menu-top_menu_fr-container').remove();
            $('#linkcat-8').remove();
            $('#linkcat-10').remove();
			$('#linkcat-12').remove();
        	$('#linkcat-13').remove();
            $(".switcher").css({
                'background': 'url(http://www.passivehouse.be/fair/wp-content/themes/PassiveHouse_Fair/images/goto_en.png)',
                'background-repeat': 'no-repeat'
            });
            $(".switcher").hover(function(){
                $(this).animate({
                    top: '-30'
                }, 150)
            }, function(){
                $(this).animate({
                    top: '-45'
                }, 100)
            });
            return;
        }
});
