var timerID_1 = null;
var timerRunning_1 = false;

var timerID_2 = null;
var timerRunning_2 = false;

var timerID_3 = null;
var timerRunning_3 = false;

var timerID_4 = null;
var timerRunning_4 = false;

var timerID_5 = null;
var timerRunning_5 = false;





function stopclock_1()
{
    if(timerRunning_1)
        clearTimeout(timerID_1)
    timerRunning_1 = false;
}

function startclock_1()
{
    stopclock_1();
    showtime_1();
}

function showtime_1()
{

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = "" + hours;
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
//    timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    
    $('zegarek_1').innerHTML = '&nbsp;&nbsp;&nbsp;<span class="TtextGoldSmall">' + timeValue + '</span>';
    timerID_1 = setTimeout("showtime_1()",1000);
    timerRunning_1 = true;
}


//------------------------------------------------------------------------------------------------------------------------


function stopclock_2()
{
    if(timerRunning_2)
        clearTimeout(timerID_2)
    timerRunning_2 = false;
}

function startclock_2()
{
    stopclock_2();
    showtime_2();
}

function showtime_2()
{

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    
    if (hours == 0) {
	    hours = 23;
    }
    else {
	    hours = hours - 1;
    }
    var timeValue = hours;
    
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
//    timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    
    $('zegarek_2').innerHTML = '&nbsp;&nbsp;&nbsp;<span class="TtextGoldSmall">' + timeValue + '</span>';
    timerID_2 = setTimeout("showtime_2()",1000);
    timerRunning_2 = true;
}


//------------------------------------------------------------------------------------------------------------------------


function stopclock_3()
{
    if(timerRunning_3)
        clearTimeout(timerID_3)
    timerRunning_3 = false;
}

function startclock_3()
{
    stopclock_3();
    showtime_3();
}

function showtime_3()
{

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    
    
    
    if (hours == 22) {
	    hours = 0;
    }
    else if (hours == 23) {
	    hours = 1;
    }
    else {
	    hours = hours + 2;
    }
    var timeValue = hours;    
    
    
    
    
    var timeValue = "" + hours;
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
//    timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    
    $('zegarek_3').innerHTML = '&nbsp;&nbsp;&nbsp;<span class="TtextGoldSmall">' + timeValue + '</span>';
    timerID_3 = setTimeout("showtime_3()",1000);
    timerRunning_3 = true;
}


//------------------------------------------------------------------------------------------------------------------------


function stopclock_4()
{
    if(timerRunning_4)
        clearTimeout(timerID_4)
    timerRunning_4 = false;
}

function startclock_4()
{
    stopclock_4();
    showtime_4();
}

function showtime_4()
{

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    
    
    if (hours == 0) {
	    hours = 18;
    }
    else if (hours == 1) {
	    hours = 19;
    }
    else if (hours == 2) {
	    hours = 24;
    }
    else if (hours == 3) {
	    hours = 21;
    }
    else if (hours == 4) {
	    hours = 22;
    }
    else if (hours == 5) {
	    hours = 23;
    }
    else {
	    hours = hours - 6;
    }
    var timeValue = hours;    
    
    
    
    
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
//    timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    
    $('zegarek_4').innerHTML = '&nbsp;&nbsp;&nbsp;<span class="TtextGoldSmall">' + timeValue + '</span>';
    timerID_4 = setTimeout("showtime_4()",1000);
    timerRunning_4 = true;
}


//------------------------------------------------------------------------------------------------------------------------


function stopclock_5()
{
    if(timerRunning_5)
        clearTimeout(timerID_5)
    timerRunning_5 = false;
}

function startclock_5()
{
    stopclock_5();
    showtime_5();
}

function showtime_5()
{

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    
    
    
    if (hours == 23) {
	    hours = 7;
    }
    else if (hours == 22) {
	    hours = 6;
    }
    else if (hours == 21) {
	    hours = 5;
    }
    else if (hours == 20) {
	    hours = 4;
    }
    else if (hours == 19) {
	    hours = 3;
    }
    else if (hours == 18) {
	    hours = 2;
    }
    else if (hours == 17) {
	    hours = 1;
    }
    else if (hours == 16) {
	    hours = 0;
    }
    else {
	    hours = hours + 8;
    }
    var timeValue = hours;
    
    
    
    
    
    
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
//    timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    
    $('zegarek_5').innerHTML = '&nbsp;&nbsp;&nbsp;<span class="TtextGoldSmall">' + timeValue + '</span>';
    timerID_5 = setTimeout("showtime_5()",1000);
    timerRunning_5 = true;
}


//------------------------------------------------------------------------------------------------------------------------








