//Tips functions
var oldText;
var tipObj;
var tipFlag=false;
function tipOff(){
if(this.tipFlag){
this.tipObj.style.position="static";
this.tipObj.innerHTML=this.oldText;
this.tipFlag=false;
}
//return false;
}
function tipOn(obj,tipText){
if(!this.tipFlag){
tipText=tipText.replace("-b-","");
tipText=tipText.replace("-/b-","");
tipText=tipText.replace("-br-","
");
this.tipObj=obj;
this.oldText = obj.innerHTML;
obj.style.position="relative";
obj.innerHTML+= "
"+tipText+"
";
this.tipFlag=true;
}
}
function popup(href,width,height,target){
window.open(href, target, config='width='+width+',height='+height+',toolbar=0,resizable=1,menubar=0,status=0');
}
function goThere(){
var list = document.forms[0].urlList;
location = list.options[list.selectedIndex].value;
}
//banners block start
//var current = Math.floor(Math.random()*3+1);
var current = 3;
//var current = 1;
var previous;
var last;
current == 1 ? previous = 3 : previous = current-1;
var idTimer;
var id;
function again(){
idTimer=setTimeout('rotate()',1000);
}
function rotate(){
current++;
if(current>3) current=1;
document.getElementById('banner'+previous).style.display='none';
document.getElementById('banner'+current).style.display='block';
previous=current;
idTimer = setTimeout('rotate()',5000);
}
function freeze(id){
clearTimeout(idTimer);
//debug("freeze:"+id+"; hide: "+current+"; none: "+previous);
document.getElementById('banner'+current).style.display='none';
//document.getElementById('banner'+current).style.zIndex=2;
current=id;
//alpha('banner'+id,0);
document.getElementById('banner'+id).style.display='block';
//document.getElementById('banner'+id).style.zIndex=3;
//fadeIn('banner'+id,0);
previous = id;
}
function alpha(id, value) {
document.getElementById(id).style.opacity = value/100; //Opera & FF
document.getElementById(id).style.filter = 'alpha(opacity=' + value*1 + ')'; // IE
}
function fadeIn(id,aIn){
if(aIn<=100){
aIn+=10;
alpha(id, aIn);
setTimeout('fadeIn(\''+id+'\','+aIn+')',10);
}
}
function fadeOut(id){
this.id = id;
if(a>=50){
alpha(this.id, a);
a-=1+100;
setTimeout('fadeIn(id)',10);
}
}
function debug(msg){
document.getElementById('debug').innerHTML="Debug("+new Date().getSeconds()+"): "+msg+" ";
}
//banners block end
//colored table rows
function alternationRows(table){
//alert("êðàñèì!");
var table;
var dom;
if(document.getElementById(table).childNodes[0].nodeType!=3){
table = document.getElementById(table).childNodes[0].childNodes;
dom = false;
}else{
table = document.getElementById(table).childNodes[1].childNodes;
dom = true;
}
//alert(table[0].nodeType);
if(!dom){
for(var i=0;i