function showHideSH(id) {
  $('.sl_show_box').hide(1000);
  $('#'+id).show(1000);
}

function printCal(loc,lang,curr_month) {
  $.post('parse_inc/calendar.php', {
    loc: loc, lang: lang, curr_month: curr_month, print: 1
  },
  function(response){
    $("#calendar").toggle().html(response).toggle(200);
  });
}

function showEditCal(loc,day,month,year,lang,curr_month) {
  $.post('parse_inc/calendar_edit.php', {
    loc: loc, day: day, month: month, year: year, lang: lang, curr_month: curr_month
  },
  function(response){
    $("#edit_calc").fadeIn(400).html(response);

    $("#edit_calc").css('top',$("#day_" + day).position().top - 100);
    $("#edit_calc").css('left',$("#day_" + day).position().left - 100);
  });
}
function updateCal(loc,day,month,year,vreme,simbol,min,max) {
  $.post('parse_inc/calendar_update.php', {
    loc: loc, day: day, month: month, year: year, vreme: vreme, simbol: simbol, min: min, max: max
  },
  function(response){
    $("#edit_calc").hide().html(" ");
  });
}

function mi_qw(id,type) {
  $.post('modules/mi_qw.php', {
    id: id, type: type
  },
  function(response){
    $("#mi_desc_"+id).toggle().html(response).toggle(500);
  });
}








