function switchImg(what , suffix ){
  myImage=document.getElementById(what);
  pos1=myImage.src.lastIndexOf('_');
  base=myImage.src.substr(0,pos1);
  newImageName=base+suffix;
  myImage.src=newImageName;
}
function resize() {
  element=document.getElementById("main");
  curBrowser=navigator.userAgent.toLowerCase();
  if(curBrowser.indexOf('msie') != -1)
   windowHeight=document.body.clientHeight;
  else
   windowHeight=window.innerHeight;

  element.style.height=windowHeight-140;
  if(windowHeight < 400)
  element.style.height=300;
}

function switchImgSluzby(id, src){
  myImage=document.getElementById(id);
  myImage.src=src;
}
