// JavaScript Document
var timeStr;
function clock() {
        now= new Date();
        hours= now.getHours();
        minutes= now.getMinutes();
        seconds= now.getSeconds();
        timeStr= "" + hours;
        timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;
        timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
        document.clock.time.value = timeStr;
        Timer= setTimeout("clock()",1000);
}




function highlight(){
}
function put_out(arg){
if(arg!='tm0')
 if(!document.layers)
   if (document.getElementById)
     document.getElementById(arg).style.backgroundColor= "#4F4F4F"
   else 
     document.all[arg].style.backgroundColor= "#4F4F4F"
  else
   {var TopFolderIds= new Array('tm14','tm11','tm48','tm12','tm47','tm49','tm13');
   for(i=0; i< TopFolderIds.length; i++)
      if(TopFolderIds[i]== arg) 
        document.layers[i].bgColor= "#4F4F4F";}
}
function put_on(arg){
if(!document.layers)
  {if (document.getElementById)
    document.getElementById(arg).style.backgroundColor= "#CC6633"
  else 
    document.all[arg].style.backgroundColor= "#CC6633"}
else
 {var TopFolderIds= new Array('tm14','tm11','tm48','tm12','tm47','tm49','tm13');
 for(i=0; i< TopFolderIds.length; i++)
    if(TopFolderIds[i]== arg) 
      document.layers[i].bgColor= "#CC6633";}
}
function winopen(url,width,height){
/* ghghg 
var www = top.window.open(url,'www', 'resizable=yes,scrollbars=yes,status=yes,menubar=no,height='+height+',width='+width+'');*/
	var www, screen_w, screen_h, derived_w, derived_h;
	
	screen_h = screen.availHeight-60;
	screen_w = screen.availWidth-20;
	
	derived_h = screen_h;
	derived_w = screen_w;
	
	if ( width < screen_w ) 
		derived_w = width;
		
	if ( height < screen_h )
		derived_h = height;
		
	www = top.window.open(url,'www','top=5,left=5,resizable=yes,scrollbars=yes,status=yes,menubar=no,height='+derived_h+',width='+derived_w+'');
}
var DoW = new Array('Воскресенье','Понедельник','Вторник','Среда','Четверг','Пятница','Суббота');
var Ms = new Array ('января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря');

ToDay = new Date();
StrDay = DoW[ToDay.getDay()] + ', ' +ToDay.getDate() + ' ' + Ms[ToDay.getMonth()] + ' ' + ToDay.getFullYear();