function countDown(year, month, day, hours)
{
    smonth = month - 1;
    var entTime = new Date(year, smonth, day, hours).getTime() / 1000;
    var curTime = Math.round(new Date().getTime() / 1000);
    var inSeconds = entTime - curTime;
    
    var daysLeft, hrsLeft, mntsLeft, scndsLeft;
    var days_c, hrs_c, mnts_c, scnds_c;
    daysLeft  = Math.floor(inSeconds / 86400);
    scndsLeft = inSeconds % 86400;
    hrsLeft   = Math.floor(scndsLeft / 3600);
    scndsLeft = scndsLeft - hrsLeft * 3600;
    mntsLeft  = Math.floor(scndsLeft / 60);
    scndsLeft = scndsLeft - mntsLeft * 60;
              
    if(daysLeft == 1){
        days_c = 'deň';
    }else if(daysLeft > 1 && daysLeft < 5){
        days_c = 'dni';
    }else{
        days_c = 'dní';
    }
    
    if(hrsLeft == 1){
        hrs_c = 'hodina';
    }else if(hrsLeft > 1 && hrsLeft < 5){
        hrs_c = 'hodiny';
    }else{
        hrs_c = 'hodín';
    }
    
    if(mntsLeft == 1){
        mnts_c = 'minúta';
    }else if(mntsLeft > 1 && mntsLeft < 5){
        mnts_c = 'minúty';
    }else{
        mnts_c = 'minút';
    }
    
    if(scndsLeft == 1){
        scnds_c = 'sekunda';
    }else if(scndsLeft > 1 && scndsLeft < 5){
        scnds_c = 'sekundy';
    }else{
        scnds_c = 'sekúnd';
    }
    
    var exstr = daysLeft + ' ' + days_c + ', ' + hrsLeft + ' ' + hrs_c + ', ' + mntsLeft + ' ' + mnts_c + ' a ' + scndsLeft + ' ' + scnds_c;
    document.getElementById('js_countdown').innerHTML = exstr;
    
    var showCountDown = function()
    {
        countDown(year, month, day, hours);
    }
    window.setTimeout(showCountDown, 1000);
}
