<!--
var browser = new Browser();

// mouse effects ==========================================
function m_over(x)
{
 x.style.cursor="pointer";
 //x.style.color="#FFFFFF";
}
function mm_over(cntrl, cssover)
{
 cntrl.className = cssover;
 cntrl.style.cursor="pointer";
}
function m_out(x)
{
 x.style.cursor="";
 //x.style.color="#000000";
}
function mm_out(cntrl, cssout)
{
 cntrl.className = cssout;
 cntrl.style.cursor="";
}
// thumb effects ==========================================
function THU(id)
{
 var xid = id;
 x = document.getElementById(xid);
 var ssrc = x.src;
 var sw = x.width;
 var sh = x.height;
// alert(xid + ":" + ssrc + ":" + sw + ":" + sh);
 var pkf = 1.0;
 var ww = 0;
 var hh = 0;
 
}
THU.prototype.over = function(cntrl, id, w, h) {
 cntrl.style.cursor="pointer";
 x = document.getElementById(id);
 this.xid = id;
 this.ssrc = x.src;
 this.sw = x.width;
 this.sh = x.height;
// alert(x.id + ":" + this.ssrc + ":" + this.sw + ":" + this.sh);
 if(w > 350) {
	this.pkf = w / h;
	this.ww = 350;
	this.hh = this.ww / this.pkf;
 }
 else {
	this.ww = w;
	this.hh = h;
 }
// alert('aaa');
 x.src = cntrl.src;
 x.width = this.ww;
 x.height = this.hh;
};
THU.prototype.out = function(cntrl) {
 cntrl.style.cursor="";
 x = document.getElementById(this.xid);
 x.src = this.ssrc;
 x.width = this.sw;
 x.height = this.sh;
};



// menu effects ==========================================
function menu_over(cntrl, cssover)
{
 cntrl.className = cssover;
 cntrl.style.cursor="pointer";
 showSub('h_' + cntrl.id);
}
function smenu_over(cntrl, cssover)
{
//	alert(cntrl.id.substring(2, cntrl.id.length));
 var x = document.getElementById(cntrl.id.substring(2, cntrl.id.length));
 if(x) {
 	menu_over(x, cssover);
 }
}
function slmenu_over(cntrl, cssover)
{
 cntrl.className = cssover;
 cntrl.style.cursor="pointer";
}

function menu_out(cntrl, cssout)
{
 cntrl.className = cssout;
 cntrl.style.cursor="";
 hidenSub('h_' + cntrl.id);
}
function smenu_out(cntrl, cssout)
{
 var x = document.getElementById(cntrl.id.substring(2, cntrl.id.length));
 if(x) {
 	menu_out(x, cssout);
 }
}
function slmenu_out(cntrl, cssout)
{
 cntrl.className = cssout;
 cntrl.style.cursor="";
}


function showSub(id)
{
 var x = document.getElementById(id);
 if(x) {
 	x.style.display="";
 	if(!browser.isIE)
 	{
   		x.style.visibility = "visible";
 	}
 }
}
function hidenSub(id)
{
 var x = document.getElementById(id);
 if(x) {
	 x.style.display="none";
 	 if(!browser.isIE)
 	 {
   	 	x.style.visibility = "hidden";
 	 }
 }
}








// redirect ==========================================
function redir(mode, id, url, comm)
{
	var frm = document.getElementById('index');
	document.getElementById('comm').value = comm;
	if(mode == '1') {
		frm.action = url;
		frm.submit();
	}
	else {
		if(url.substring(0,7) != 'http://')
			url = 'http://' + url; 
		window.open(url,"w_" + id);
	}
}
function redirSel(obj, url, comm)
{
	var frm = document.getElementById('index');
	var oi = document.getElementById(obj);
	document.getElementById('comm').value = comm;
		frm.action = '/' + oi.value + url;
		frm.submit();
}

var timer = 1000*5; //раз в 5 сек
//reLoad();

function reLoad(){
	setTimeout('echomess()', timer);
}
function echomess(){
	alert('Reload...');
	reLoad();
}
// Browser ==========================================

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}
-->