a1a = new Image(); a1a.src = "menu/1_st_1.gif";
a1b = new Image(); a1b.src = "menu/1_st_2.gif";
a2a = new Image(); a2a.src = "menu/2_st_1.gif";
a2b = new Image(); a2b.src = "menu/2_st_2.gif";
a3a = new Image(); a3a.src = "menu/3_st_1.gif";
a3b = new Image(); a3b.src = "menu/3_st_2.gif";
a4a = new Image(); a4a.src = "menu/4_st_1.gif";
a4b = new Image(); a4b.src = "menu/4_st_2.gif";
a5a = new Image(); a5a.src = "menu/5_st_1.gif";
a5b = new Image(); a5b.src = "menu/5_st_2.gif";

function zmien(skad,gdzie)
{
        skad = eval(skad + ".src");
        document [gdzie].src = skad;
}

function show5(){
        
        if (!document.layers&&!document.all)
           return
        var Digital = new Date()
        var hours = Digital.getHours()
        var minutes = Digital.getMinutes()
        var seconds = Digital.getSeconds()
        var day = Digital.getDate();
        var month = Digital.getMonth() + 1;
        var year = Digital.getYear();
        var dn="AM" 
        
        if (hours>12){
                dn="PM"
                hours=hours-12
        }
        
        if (hours==0)
                hours=12
        if (minutes<=9)
                minutes="0"+minutes
        if (seconds<=9)
                seconds="0"+seconds
        if(month < 10)
                month = "0"+month;

        if(day < 10)
                day = "0"+day;
        
        //change font size here to your desire
        myclock = day+ "." +month+ "."+year+", "+hours+":"+minutes+":"+seconds+" "+dn+""
        
        if (document.layers){
                document.layers.liveclock.document.write(myclock)
                document.layers.liveclock.document.close()
        }
        else if (document.all)
        liveclock.innerHTML=myclock
        setTimeout("show5()",1000)
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUpWindow_scroll(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=1,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
