var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name) { //zjistit dostupný objekt pro práci se stylem dokumentu
if (document.getElementById) 
return document.getElementById(name).style;
else
if (document.all) 
return document.all[name].style;
else
if (document.layers) 
return document.layers[name];
}


// nastavení pro marquee
nStart = 800; //where the text start
nEnd = -950; //where the text finish
nTimeOut = 50; //speed
nInc = 5; //how much px in each step 
nLeft = nStart;
var tc = ap_getObj('ticker');

function DoMove(){ //posouvat text
if (DHTML) {
nLeft = nLeft - nInc;
if (nLeft < nEnd) {
nLeft = nStart;
}
tc.left = nLeft;
setTimeout('DoMove()',nTimeOut);
}
}

var a=0; 
var ok=true; 
var btx = ap_getObj('blinktext');

function blink() { 
  if (!DHTML)
    return;
  ok=true; 
  if (a==0 && ok==true){
    btx.visibility="hidden";ok=false;a=1
  } 
  if (a==1 && ok==true){
    btx.visibility="visible";ok=false;a=0
  } 
  setTimeout('blink()',500); 
}
