function show(co)
{
	var oContent = document.getElementById(co);
 	if (!oContent){ return;}
 	oContent.style.display = "block"; 	
}

function InputValue(paEl,paValue){
  if(paEl.value=="")
    paEl.value=paValue;
}
function AddFav(linkObj,addUrl,addTitle)
{
  if (document.all && !window.opera)
  {
    window.external.AddFavorite(addUrl,addTitle);
    return false;
  }
  else if (window.opera && window.print)
  {
    linkObj.title = addTitle;
    return true;
  }
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
  {
    if (window.confirm('Pridať stránku do obľúbených ako nový panel?'))
    {
      window.sidebar.addPanel(addTitle,addUrl,'');
      return false;
    }
  }
  window.alert('Pre potrdenie stlačte CTRL+D,\nstránka bude uložený k Vaším obľúbeným odkazom.');
  return false;
}

//scroll box
function getObject( obj ) {
  var strObj;  
  
  if ( document.all ) {  
    strObj = document.all.item( obj );  
  } else if ( document.getElementById ) {  
    strObj = document.getElementById( obj );  
  }
  
  return strObj;
}

var theTop = 0;
//var theHeight = 190;
var theWidth = 186;
var theLeft = 0;
var toClip = 290;
var RychlostScroll=40; //milisecond

function scrollBox( newsDiv, toMove,theHeight ) {
  theDiv = getObject(newsDiv.toString());
  
  if ( theDiv == null ) { return; }  
  if ( document.layers ) {  
    theDiv.clip.top = toMove;  
    theDiv.clip.bottom = toMove + toClip;  
    theDiv.top = theTop - toMove;  
  } else {  
    theDiv = theDiv.style;  
    theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";  
    theDiv.top = theTop - toMove + 'px';  
  }
  
  if ( ( theHeight - toMove ) < ( - 20 ) ) { //( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) 
    toMove = 0;  
    if ( document.layers ) {    
      theDiv.clip.top = theTop;      
      theDiv.clip.bottom = toClip;      
      theDiv.top = theTop    
    } else {    
      theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";      
      theDiv.top = theTop + 'px';    
    }  
  }
  
  toMove = (toMove + 1);
  setTimeout("scrollBox('" + newsDiv + "'," + toMove + ","+theHeight+")", RychlostScroll);
}
















