$(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')) {
        $("div#title").css({
            'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/images/title_nl.png)',
            'background-repeat': 'no-repeat'})
        $('.menu-top_menu-container').remove();
        $('.menu-top_menu_fr-container').remove();
        $('#linkcat-6').remove();
        $('#linkcat-2').remove();
		$('#linkcat-28').remove();
        $('#linkcat-19').remove();
        $("a.passhouse").attr("href","http://www.passivehouse.be/symposium/nl/");
		$("a.switcher").attr("href","http://www.passivehouse.be/fair/nl/");
		$(".switcher").css({
            'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/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')) {
            $("div#title").css({
                'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/images/title_fr.png)',
                'background-repeat': 'no-repeat'
            });
            
            $('.menu-top_menu-container').remove();
            $('.menu-top_menu_nl-container').remove();
            $('#linkcat-5').remove();
            $('#linkcat-2').remove();
			$('#linkcat-27').remove();
        	$('#linkcat-19').remove();
            $("a.passhouse").attr("href","http://www.passivehouse.be/symposium/fr/");
			$("a.switcher").attr("href","http://www.passivehouse.be/fair/fr/");
			$(".switcher").css({
                'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/images/goto_fr.png)',
                'background-repeat': 'no-repeat'
            });
            $(".switcher").hover(function(){
                $(this).animate({
                    top: '-30'
                }, 150)
            }, function(){
                $(this).animate({
                    top: '-45'
                }, 100)
            });
            return;
        }
        else {
            $("div#title").css({
                'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/images/title_en.png)',
                'background-repeat': 'no-repeat'
            });
            
            $('.menu-top_menu_nl-container').remove();
            $('.menu-top_menu_fr-container').remove();
            $('#linkcat-6').remove();
            $('#linkcat-5').remove();
			$('#linkcat-27').remove();
        	$('#linkcat-28').remove();
            $(".switcher").css({
                'background': 'url(http://www.passivehouse.be/symposium/wp-content/themes/PassiveHouse/images/goto_en.png)',
                'background-repeat': 'no-repeat'
            });
            $(".switcher").hover(function(){
                $(this).animate({
                    top: '-30'
                }, 150)
            }, function(){
                $(this).animate({
                    top: '-45'
                }, 100)
            });
            return;
        }
});
