var t;
var prevvis;
var curvis;

var nul = 0;

if(window.devicePixelRatio) {
 nul = 1;
}

function next() {
 t = setTimeout("next()",1);
 prevvis.style.width = prevvis.offsetWidth - 18;
 curvis.style.width = curvis.offsetWidth + 18;
 if (prevvis.offsetWidth<2) {
  prevvis.style.width = nul;
  clearTimeout(t);
 }
}

function changevis(src) {
 if (prevvis != undefined) prevvis.style.width = nul;
 clearTimeout(t);

 if (document.getElementById('data_'+src.id.substring(4,5)).offsetWidth == nul) {
  prevvis = curvis;
  curvis = document.getElementById('data_'+src.id.substring(4,5));
  prevvis.style.width = 468;
  curvis.style.width = nul;
  clearTimeout(t);
  next();
 }
 else {
  prevvis.style.width = nul;
  curvis.style.width = 468;
 }
}

function changedata(dta,cur,totl) {
 for (a=1;a<=totl;a++) {
  document.getElementById("data_"+dta+"_"+a).style.display = "none";
 }
 document.getElementById("data_"+dta+"_"+cur).style.display = "block";
}


function showWind(caption, source) {
 ourDiv = document.getElementById("bott");
// ourDiv.style.left = ((screen.width-ourDiv.offsetWidth)/2-(document.all?screenLeft:screenX)+document.body.scrollLeft)+'px'; 
// ourDiv.style.top  = ((screen.height-ourDiv.offsetHeight)/2-(document.all?screenTop:screenY)+document.body.scrollTop)+'px';} 
 ourDiv.style.visibility="visible";
 document.getElementById("bott_caption").innerHTML="<img src=i/logo.png height=50 align=middle style='padding-right: 10px;'> "+caption;
 document.getElementById("botframe").src = source;
}
