function dd()
{
  //document.getElementById('mclear').style.display='none';
  //document.getElementById('pata').style.display='none';
  document.getElementById('zbytekobsah').style.height='auto';
  document.getElementById('sl1').style.height='auto';
  document.getElementById('sl2').style.height='auto';
  document.getElementById('sl3').style.height='auto';
  prom = setTimeout("de()", 5);
}

function de()
{
dddd0=Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
dddd1=Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
dddd2=Math.max(document.body.clientHeight, document.documentElement.clientHeight);
if (dddd0>dddd1) ddddF=dddd0;
else ddddF=dddd2;
//document.getElementById('pata').style.top=(ddddF-40-1)+'px';
//document.getElementById('pata').style.display='block';

  document.getElementById('sl1').style.height=(ddddF-210-40)+'px';
  document.getElementById('sl2').style.height=(ddddF-210-40)+'px';
  document.getElementById('sl3').style.height=(ddddF-210-40)+'px';
document.getElementById('zbytekobsah').style.height=(ddddF-210)+'px';
}

function view(model){
document.getElementById('nahled').src='/09fotky/'+model+'-360.jpg';
}

//specky
function mmj(hh)
{
hh.style.backgroundColor='white';
hh.style.color='black';
}

function mmjn(hh)
{
hh.style.backgroundColor='transparent';
hh.style.color='white';
}

function winup(k){
mywindow = window.open ("/09galjmp.php?id="+k,"mywindow","status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=0, height=695, width=890");
mywindow.focus();
mywindow.moveTo(200,200);
}

function kestcl(k){
document.getElementById('kst'+k).style.display='none';
//return false;
}
keslast=0;
function kestop(k){
if (keslast>0) document.getElementById('kst'+keslast).style.display='none';
keslast=k;
document.getElementById('kst'+k).style.display='block';
}