$(document).ready(function(){
    $(".gallery a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000}); 
    $('a.selected').parents('.tari').children('ul.stadiu').show();
    $('a.selected').parents('.proiecte_1').show();
    $("a.nume_stadiu").each(function() {           
        $(this).click(function(e) {
        e.preventDefault();
        $(this).siblings().slideToggle();  
        });     
    }); 
    
    $('p.lang_ro').bind( "click", function(){
        xajax_change_language("ro");
    });
    $('p.lang_en').bind( "click", function(){
        xajax_change_language("en");
    });

    //confirm
    $('a.act-inreg').click(function() {
        var answer = confirm('Delete user');
        return answer // answer is a boolean
    });
    
    $("div#search a").bind( 'click' , function(){
    $("div#search form").submit();
    });
    
});




