
            var timerID ;
            function tzone(tz, os, ds, cl)
            {
                this.ct = new Date(0) ;
                this.tz = tz ;
                this.os = os ;
                this.ds = ds ;
                this.cl = cl ;
            }
            function UpdateClocks()
            {
                var ct = new Array(
                    new tzone('Praha, CZE: ', +2, 0),
                    new tzone('Paris, Francie: ', +2, 0),
                    new tzone('Shanghai  China: ', +8, 0),
                    new tzone('New York City, USA: ', -4, 1),
                    new tzone('Londýn, GB: ',  0, 1),
                    new tzone('Moskva, RU: ', +3, 0),
                    new tzone('Mumbai, Indie: ', +5.5, 0)
                ) ;
                var dt = new Date() ;    
                var startDST = new Date(dt.getFullYear(), 3, 1) ;
                while (startDST.getDay() != 0)
                    startDST.setDate(startDST.getDate() + 1) ;
                var endDST = new Date(dt.getFullYear(), 9, 31) ;
                while (endDST.getDay() != 0)
                    endDST.setDate(endDST.getDate() - 1) ;
                var ds_active ;        
                if (startDST < dt && dt < endDST)
                    ds_active = 1 ;
                else
                    ds_active = 0 ;
                for(n=0 ; n<ct.length; n++)
                    if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
                gmdt = new Date() ;
                for (n=0 ; n<ct.length ; n++)
                    ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
                window.document.getElementById("Clock0").innerHTML =
                    ct[0].tz +"<br />"+ ClockString(ct[0].ct);
                window.document.getElementById("top_clock").innerHTML =
                    ClockStringTop(ct[0].ct);
                window.document.getElementById("Clock1").innerHTML = 
                    ct[1].tz +"<br />"+ ClockString(ct[1].ct);
                window.document.getElementById("Clock2").innerHTML = 
                    ct[2].tz +"<br />"+ ClockString(ct[2].ct);
                window.document.getElementById("Clock3").innerHTML = 
                    ct[3].tz +"<br />"+ ClockString(ct[3].ct);
                window.document.getElementById("Clock4").innerHTML = 
                    ct[4].tz +"<br />"+ ClockString(ct[4].ct);
                window.document.getElementById("Clock5").innerHTML = 
                    ct[5].tz +"<br />"+ ClockString(ct[5].ct);
                window.document.getElementById("Clock6").innerHTML = 
                    ct[6].tz +"<br />"+ ClockString(ct[6].ct);
                timerID = window.setTimeout("UpdateClocks()", 1001) ;
            }
            function ClockString(dt)
            {
                var stemp, ampm ;
                var dt_year = dt.getUTCFullYear() ;
                var dt_month = dt.getUTCMonth() + 1 ;
                var dt_day = dt.getUTCDate() ;
                var dt_hour = dt.getUTCHours() ;
                var dt_minute = dt.getUTCMinutes() ;
                var dt_second = dt.getUTCSeconds() ;
                dt_year = dt_year.toString() ;
                
                if (dt_minute < 10)
                    dt_minute = '0' + dt_minute ;
                if (dt_second < 10)
                    dt_second = '0' + dt_second ;
                stemp = dt_day + '/' + dt_month + '/' + dt_year.substr(2,2) ;
                stemp = stemp + ' ' + dt_hour + ":" + dt_minute + ":" + dt_second ;
                return stemp ;
            }
            function ClockStringTop(dt)
            {
                var stemp, ampm ;
                var dt_year = dt.getUTCFullYear() ;
                var dt_month = dt.getUTCMonth() + 1 ;
                var dt_day = dt.getUTCDate() ;
                var dt_hour = dt.getUTCHours() ;
                var dt_minute = dt.getUTCMinutes() ;
                var dt_second = dt.getUTCSeconds() ;
                dt_year = dt_year.toString() ;
                if (dt_hour < 7)
                    pozdrav="Dobré brzké ráno";
                else{                                           
                    if (dt_hour < 12)
                        pozdrav="Dobré dopoledne!";
                    else{
                        if (dt_hour < 18)
                            pozdrav="Dobré odpoledne!";
                        else
                            pozdrav="Dobrý večer!";
                    }
                }            
                if (dt_minute < 10)
                    dt_minute = '0' + dt_minute ;
                if (dt_second < 10)
                    dt_second = '0' + dt_second ;
                stemp = pozdrav + " " + dt_day + '.' + dt_month + ' ' + dt_year ;
                stemp = stemp + ' ' + dt_hour + ":" + dt_minute + ":" + dt_second ;
                return stemp ;
            }
function AddFavorite(linkObj,addUrl,addTitle) 
{ 
  if (document.all && !window.opera) 
  { 
    window.external.AddFavorite(addUrl,addTitle); 
    return false; 
  } 
  else if (window.opera && window.print) 
  { 
    linkObj.title = addTitle; 
    return true; 
  } 
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) 
  { 
    if (window.confirm('Přidat oblíbenou stránku jako nový panel?')) 
    { 
      window.sidebar.addPanel(addTitle,addUrl,''); 
      return false; 
    } 
  } 
  window.alert('Po potvrzení stiskněte CTRL-D,\nstránka bude přidána k vašim oblíbeným odkazům.'); 
  return false; 
}
            //  End -->
