img1="img/1.png'";
img2="img/2.png";
img3="img/3.png";
img4="img/4.png";
img5="img/1.png";

banner();
function banner() {
r=Math.random()*10;

if (r>=1 && r<=6) {
if (r>=1 && r<2) {
document.writeln("<img src='"+img1+"' alt='' style='margin-left:267px;position:absolute;height:42px; top:114px' />");
}
else
if (r>=2 && r<3) {
document.writeln("<img src='"+img2+"' alt='' style='margin-left:236px;position:absolute;height:40px; top:119px' />");
}
else
if (r>=3 && r<4) {
document.writeln("<img src='"+img3+"' alt='' style='margin-left:265px;position:absolute;height:39px; top:114px' />");
}
else
if (r>=4 && r<5) {
document.writeln("<img src='"+img4+"' alt='' style='margin-left:280px;position:absolute;height:40px; top:114px' />");
}
else
if (r>=5 && r<6) {
document.writeln("<img src='"+img5+"' alt='' style='margin-left:267px;position:absolute;height:42px; top:114px' />")
// document.writeln("<IMG SRC="">")
}
}
else {
banner();
};
};


function displayWindow(theURL,winName,width,height,features) { 
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open('' + theURL + '','' + winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();}


function zobrazSkryj(idecko){
el=document.getElementById(idecko).style;
el.display=(el.display == 'block')?'none':'block';
}

