function zmenabodu(prom){
if (document.body){
if(prom>=1)
 {      document.getElementById("div1").style.backgroundImage = 'url(obr/hv_akt2.gif)';
   if(prom>=2)
   {     document.getElementById("div2").style.backgroundImage = 'url(obr/hv_akt2.gif)';
     if(prom>=3)
     {       document.getElementById("div3").style.backgroundImage = 'url(obr/hv_akt2.gif)';
       if(prom>=4)
       {         document.getElementById("div4").style.backgroundImage = 'url(obr/hv_akt2.gif)';
         if(prom>=5)
         {           document.getElementById("div5").style.backgroundImage = 'url(obr/hv_akt2.gif)';
           if(prom>=6)
           {             document.getElementById("div6").style.backgroundImage = 'url(obr/hv_akt2.gif)';
             if(prom>=7)
             {               document.getElementById("div7").style.backgroundImage = 'url(obr/hv_akt2.gif)';
               if(prom>=8)
               {                 document.getElementById("div8").style.backgroundImage = 'url(obr/hv_akt2.gif)';
                 if(prom>=9)
                 {                   document.getElementById("div9").style.backgroundImage = 'url(obr/hv_akt2.gif)';
                   if(prom>=10)
                   {                     document.getElementById("div10").style.backgroundImage = 'url(obr/hv_akt2.gif)';
                   }}}}}}}}}}
                   
  for(k =prom+1; k <=10; k++)
  {
    document.getElementById("div"+k).style.backgroundImage = 'url(obr/hv_pr5.gif)';
  }               
             
                    }

}  

function zmenaboduz(prom){
if (document.body){
  for(k =1; k <=prom; k++)
  {
    document.getElementById("div"+k).style.backgroundImage = 'url(obr/hv_pr5.gif)';
  }
}
}  

function zmenabodorg(prom){
if (document.body){
  for(k =1; k <=prom; k++)
  {
    document.getElementById("div"+k).style.backgroundImage = 'url(obr/hv_plna4.gif)';
  }
  for(k =prom+1; k <=10; k++)
  {
    document.getElementById("div"+k).style.backgroundImage = 'url(obr/hv_pr5.gif)';
  }
}
}  


function bookmarksite(title,url){ 
if (window.sidebar) // firefox 
window.sidebar.addPanel(title, url, ""); 
else if(window.opera && window.print){ // opera 
var elem = document.createElement('a'); 
elem.setAttribute('href',url); 
elem.setAttribute('title',title); 
elem.setAttribute('rel','sidebar'); 
elem.click(); 
} 
else if(document.all)// ie 
window.external.AddFavorite(url, title); 
} 



    var zoom_pole='zoom_4';
    

    
    function pozadi_z(poz)
    {
      document.getElementById(poz).style.background='#e57455';
    }

    function pozadi_o(poz,vel)
    {
    if(poz==zoom_pole)
    {
      document.getElementById(poz).style.background='#e57455';
    }
    else
    {
      document.getElementById(poz).style.background='#a2a2a2';
    }
    
    }
    function resize_game(poz,vel)
    {
      zoom_pole=poz;
      
      height=vel*54;
      width=vel*80;
      
      width_5=740+width;
      height_1=500+height;
      if(vel<0)
      {
        vel=0;
        height=vel*54;
        width=vel*80;
      }
      width_1=1000+width;
      width_2=1000+width;
      width_3=803+width;
      width_4=765+width;
      height_2=515+height;
      
      
      document.getElementById('zoom_1').style.background='#a2a2a2';
      document.getElementById('zoom_2').style.background='#a2a2a2';
      document.getElementById('zoom_3').style.background='#a2a2a2';
      document.getElementById('zoom_4').style.background='#a2a2a2';
      document.getElementById('zoom_5').style.background='#a2a2a2';
      document.getElementById('zoom_6').style.background='#a2a2a2';
      document.getElementById('zoom_7').style.background='#a2a2a2';
                                          
      document.getElementById(poz).style.background='#e57455';

      document.getElementById("ram1").style.width=width_1+"px"; 
      document.getElementById("obsah").style.width=width_2+"px"; 
      document.getElementById("det_1").style.width=width_3+"px"; 
      document.getElementById("det6").style.width=width_4+"px"; 
      document.getElementById("det6").style.height=height_2+"px"; 
      document.getElementById("det11").style.width=width_5+"px"; 
      document.getElementById("det11").style.height=height_1+"px"; 
    }
