angle_a = 0;
angle_b = 0;

function tdColor(Row, Color) {
 if (Color == '' || typeof(Row.style) == 'undefined') { return false; }
 if (typeof(document.getElementsByTagName) != 'undefined') { var Cells = Row.getElementsByTagName('td'); }
 else if (typeof(Row.cells) != 'undefined') { var Cells = Row.cells; }
 else { return false; }

 var Count  = Cells.length;
 for (var i = 0; i < Count; i++) { Cells[i].style.backgroundColor = Color; }
 return true;
}

function extLinks() {
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a");
 var anchors2 = document.getElementsByTagName("form"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external nofollow" || anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank";
 }
 for (var i=0; i<anchors2.length; i++) { 
   var anchor = anchors2[i];
   if (anchor.getAttribute("rel") == "external nofollow" || anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank";
 }  
}

function scroll() {
 angle_a += -5;
 angle_b += 3;
 sinA = Math.sin(angle_a*Math.PI/90)*16+16;
 sinB = Math.sin(angle_b*Math.PI/180)*16+16;
 sin=Math.round(sinA+sinB);
 retezec="Vítejte na stránkách";
 for (i=0; i<sin; i++)
 {retezec +=" ";}
 retezec +="E-Bradavice";
 window.status = retezec;
 
 setTimeout ("scroll()", 100);
}

function dve() {
scroll();
extLinks();
}

window.onload=dve;