/* PROGRAMNAPTÁR */

function getBigDiary(y,m,d){
    $.get(BASEURL + "ajax.php",
        "y=" + y + "&m=" + m + "&d=" + d + "&ajax=1&module=programok", 
        function (ret) {
            $("#bigD").hide();
            $("#bigD").html(ret).fadeIn();
        
    }); 
}

function getSmallDiary(y,m,d){
    //window.alert(pic + " " + page + " " + fld);
    var url = BASEURL + "ajax.php?y=" + y + "&m=" + m + "&d=" + d + "&ajax=1&module=programok";
    xmlHttp=GetXmlHttpObject(stateChanged_smallD);
    xmlHttp.open("GET", url , true);
    xmlHttp.send(null);
}

function stateChanged_smallD() 
{ 
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
        document.getElementById('smallD').innerHTML = xmlHttp.responseText;
        //window.location.reload();
    } 
}

function getEvent(eid,lang){
    $("#pop_event").slideUp();
    $.get(BASEURL + "ajax.php",
        "module=programok&eID="+eid+"&lang="+lang, 
        function (ret) {
            $("#pop_event").html(ret);
    if ($.browser.safari){ bodyelem = $("body") } 
                    else if ($.browser.opera){ bodyelem = $("html") } 
                    else { bodyelem = $("html,body") }
                    bodyelem.animate({ scrollTop: $("#pop_event").offset().top-70 }, 500);
        $("#pop_event").slideDown();

    });

    
}

function toggle_prog_leiras(){
    if (document.getElementById('prog_alt_leiras').style.display=='none')
        $('#prog_alt_leiras').slideDown('Slow');
    else 
        $('#prog_alt_leiras').slideUp('Fast');
}
 
/* PROGRAMNAPTÁR END*/
function calendar_change_elozo(honap,ev,ma,subalias){
        $.get("/modules/calendar_gyak_megjelen.php","honap="+honap+"&ev="+ev+"&ma="+ma+"&subalias="+subalias, function (ret) {
            $("#cal").html(ret);})
    }
    function calendar_change_kovetkezo(honap,ev,ma,subalias){
        $.get("/modules/calendar_gyak_megjelen.php","honap="+honap+"&ev="+ev+"&ma="+ma+"&subalias="+subalias, function (ret) {$("#cal").html(ret);})   
    }
