menu=0;
neco=0;

imgtable=new Array(10);
imgtable[1]='hraci';
imgtable[2]='server';
imgtable[3]='rasy';
imgtable[4]='navody';
imgtable[5]='komunita';
imgtable[6]='herniinfo';

function rs() {
 if (neco==1) {
  neco=0;
 } else {
  mclk(0);
 } 
}

function movr(x) {
 o=document.getElementById('img'+x);	
 if (menu==0) {
   o.src='img/'+imgtable[x]+'2.gif';
 }
 c=document.getElementById('mainmenu'+x);	
 c.style.cursor="pointer";
 if ((x!=menu)&&(menu!=0)) {
   mclk(x);
 };
}
function mout(x) {
 if (x!=menu) {	
   o=document.getElementById('img'+x);	
   o.src='img/'+imgtable[x]+'1.gif';
   c=document.getElementById('mainmenu'+x);	
   c.style.cursor="auto";
 }  
}

function mclk(x) {
 if ((menu!=0)&&(menu!=x)) {
   m=document.getElementById('sm'+menu);	
   m.style.display = 'none';
   o=document.getElementById('img'+menu);	
   o.src='img/'+imgtable[menu]+'1.gif';
 }
 if ((menu!=x)&&(x!=0)) {
   m=document.getElementById('sm'+x);	
   m.style.display = 'block';
   o=document.getElementById('img'+x);	
   o.src='img/'+imgtable[x]+'3.gif';
 }  
 if (menu==0) neco=1;
 menu=x; 
}

function smovr(x) {
 o=document.getElementById('rdx'+x);	
 o.style.color='#CCEEFF';
 o.style.backgroundColor='#404040';
}
function smout(x) {
 o=document.getElementById('rdx'+x);	
 o.style.color='#FFFFCC';
 o.style.backgroundColor='transparent';
}
function smclk(x) {
 if (x.substring(0,1)!='_') { 	
   window.location=x;	
 } else {
   x=x.substring(1);
   window.open(x,'okno'+Math.ceil(Math.random()*99999),'top=0,left=0,width=1280,height=980,toolbars=no,scrollbars=yes');
 }	 
}

function rasyovr(x) {
 o=document.getElementById('imx'+x);	
 o.src='img/ikonyras/'+x+'_o.gif';
}
function rasyout(x) {
 o=document.getElementById('imx'+x);	
 o.src='img/ikonyras/'+x+'.gif';
}