  
  var nospamtab = new Array(109, 97, 105, 108, 116, 111, 58);
  function nospam_exec(box, domain)
  {
  	if(typeof(domain)=="undefined") domain = "";
  	var proto = ""; for(idx=0;idx<nospamtab.length;idx++) proto+=String.fromCharCode(nospamtab[idx]);
  	window.open(proto+box+String.fromCharCode(64)+domain);
  }
  function nospam(box, domain, attr)
  {
  	if(typeof(domain)=="undefined") domain = "";
  	if(typeof(attr)=="undefined") attr = "";
  	document.write("<a href=\"javascript:nospam_exec('"+box+"', '"+domain+"')\""+(attr.length>0?" ":"")+attr+">"+box+String.fromCharCode(64)+domain+"</a>");
  }

  
  // SWITCH ON/OFF DEFINED ELEMENT
  
  function callStats(ROOT, U, REF, MW, PAR1, PAR2, PARAMS)
  { var req = new aObj(ROOT + 'stats.php');
        req.callback = function(responseTxt, responseStat)
        { if( responseStat == 200 )
          { 
          }
        }
        req.update('u='+U+'&ref='+REF+'&mw='+MW+'&par1='+PAR1+'&par2='+PAR2+'&params[]='+PARAMS);
  }
  
  function ShowHide(obj)
  { if(document.getElementById(obj))
    { with(document.getElementById(obj))
      { if(style.display == "none") style.display = "block";
        else style.display = "none";
      }
    }
  }
  
  // GETS ELEMENT POSITION ABSOLUTE TO THE MAIN DOCUMENT
  
  function ElementPosition(element)
  { var el = document.getElementById(element);
    var zvrchu = 0;
    var zleva  = 0;
    var par; var ael;
    if( el )
    { zvrchu = el.offsetTop;
      zleva  = el.offsetLeft;
      ael = el;
      par = ael.offsetParent;
      while( par.tagName != "BODY" )
      { zvrchu += par.offsetTop;
        zleva  += par.offsetLeft;
        par = par.offsetParent;
      }
      //alert(zvrchu, zleva);
      return Array(zvrchu, zleva);
    }
    else {return false;}
  }
  
  // GETS MOUSE POSITION
  
  var mousePositionX = 0; 
  var mousePositionY = 0;
  
  function getMouseXY(e)
  { var hh = document.getElementById('help_hint');
    var d = document.documentElement;
    if( !d ){ d = document.body;}
  
    if (!e){var e = window.event;} //IE mouse event
    if (e.pageX || e.pageY){mousePositionX=e.pageX; mousePositionY=e.pageY;} //other
    else if (e.clientX || e.clientY) //IE
    { mousePositionX = e.clientX + d.scrollLeft; 
      mousePositionY = e.clientY + d.scrollTop;
    }
    hh.style.left = (mousePositionX + 10)+"px";
    hh.style.top  = (mousePositionY + 0)+"px";
  }
  
  function showhelphint(txtHTML)
  { document.getElementById('help_hint').style.visibility   = 'visible';
    document.getElementById('help_hint').style.display      = 'block';
    document.getElementById('help_hint').innerHTML           = txtHTML;
  }
  
  function hidehelphint()
  { document.getElementById('help_hint').style.visibility = 'hidden';
    document.getElementById('help_hint').style.display    = 'none';
  }
  
  function alertSize(cId) 
  { var myWidth = 0, myHeight = 0, posunuti = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
      } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
      var elem01 = document.getElementById(cId);
      //alert(myWidth +'-'+myHeight);
      if(elem01)
      { elem01.style.top = myHeight +"px";
        elem01.style.left = (myWidth / 2)  +"px";
      }
    }
  
  // AUTOMATIC TRIGGERING
  //document.onmousemove = getMouseXY;
  
  
  var objekt;

  function obrPresun(id,x,y,zx,zy)
  {
  	objekt = document.getElementById(id);
  	objekt.snimky = 10;
  
  	//// Ziskani aktualni pozice objektu
  	objekt.realx = parseInt(zx);
  	objekt.realy = parseInt(zy);
  
  	//// Vypocitani jednotlivych kroku
  	objekt.dx = (x-objekt.realx) / objekt.snimky ;
  	objekt.dy = (y-objekt.realy) / objekt.snimky ;
  
  	//// provedme presun
  	obrPresun2 = setInterval('krok();',20);
  }
  
  function presun(id,x,y,zx,zy)
  {
  	objekt = document.getElementById(id);
  	objekt.snimky = 10;
  
  	//// Ziskani aktualni pozice objektu
  	objekt.realx = parseInt(zx);
  	objekt.realy = parseInt(zy);
  
  	//// Vypocitani jednotlivych kroku
  	objekt.dx = (x-objekt.realx) / objekt.snimky ;
  	objekt.dy = (y-objekt.realy) / objekt.snimky ;
  
  	//// provedme presun
  	presun2 = setInterval('krok2();',20);
  }
  
  function krok()
  {
  	//// Zmena x,y souradnic realne
  	objekt.realx += objekt.dx;
  	objekt.realy += objekt.dy;
  
  	//// Zmena x,y souradnice v dokumentu
    //alert(parseInt(objekt.realy));      	
  	//objekt.style.width = parseInt(objekt.realx) + "px";
  	objekt.style.height = parseInt(objekt.realy) + "px";
  
  	//// pripocti snimek, maximalne do 50;
  	--objekt.snimky;
  	if(objekt.snimky==0) clearInterval(obrPresun2);
  }
  
  function krok2()
  {
  	//// Zmena x,y souradnic realne
  	objekt.realx += objekt.dx;
  	objekt.realy += objekt.dy;
  
  	//// Zmena x,y souradnice v dokumentu
    //alert(parseInt(objekt.realy));      	
  	//objekt.style.width = parseInt(objekt.realx) + "px";
  	objekt.style.height = parseInt(objekt.realy) + "px";
  
  	//// pripocti snimek, maximalne do 50;
  	--objekt.snimky;
  	if(objekt.snimky==0) {clearInterval(presun2); objekt.style.display = "none";}
  }
