function layer(id1,id2,id3){
var isMozilla=(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1);
if (isMozilla){
document.getElementById(id1).id=id2;
}else
{
document.all['layer1'].style.visibility='visible';
}
}
function layerof(id3,id4){
var isMozilla=(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1);
if (isMozilla){
document.getElementById(id3).id=id4;
}else
{
document.all['layer1'].style.visibility='hidden';
}
}
function daytime(h) {
if (!h || h>21) return " Добрый вечер"
if (h<12) return " Доброе утро";
if (h<=17) return " Добрый день";
return " Добрый вечер"; // default
}
function ish(h,m) {
if (!h && !m) { // if no time supplied, use the system time
time = new Date()
h = time.getHours()
m = time.getMinutes()

}
z = daytime(h);
h = h % 12 // fix to 12 hour clock
if (m>57 && time.getSeconds()>30) m++; // round seconds
if (m>60) m=0 // round up minutes
if (m>33) h++ // round up hours
if (h>12)  h = 1 // the clock turns round..
if (h==0) h = 12
return " "+z+"."
}
