	function init_movover(imgsrc,imgw,imgh)
	{
	    var bordersize=11;
	    fromtop=getScrollTop();
		wh=winH();
		oh=getDocHeight();
		if (fromtop+2*bordersize+imgh>oh) oh=2*bordersize+imgh+fromtop;

		e=document.getElementById('ol');
		eio=document.getElementById('io');
		e.className='imgover';
		e.style.height=oh+'px';
	/*
  fromtop=document.body.scrollTop;
		e=document.getElementById('ol');
		eio=document.getElementById('io');
		e.className='imgover';
		height=winH();
		bheight=document.body.scrollHeight;
		if (bheight>height) oh=bheight; else oh=height;
		e.style.height=oh;
	*/
		et=fromtop+(wh-imgh-(2*bordersize))/2;	// 2x border override
		eio.className='imgover-img';
		eio.style.top=et+'px';
		eio.innerHTML='<div id="movarea"><object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+imgw+'" height="'+imgh+'"><param name="src" value="'+imgsrc+'"><param name="controller" value="true"><param name="autoplay" value="false"><!--[if !IE]>--><object type="video/quicktime" data="'+imgsrc+'" width="'+imgw+'" height="'+imgh+'"><param name="autoplay" value="false"><param name="controller" value="true"></object><!--<![endif]--></object></div>';

	}
	
	function closemovover()
	{
		e=document.getElementById('ol');
		eio=document.getElementById('io');
		e.className='imgover-hidden';
		eio.className='imgover-hidden';
		eio.innerHTML='';
	}



function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return null;
}

function livebody()
{
return (document.compatMode=="CSS1Compat")
? document.documentElement
: document.body;
}


function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}


function getScrollTop(){
    if(typeof pageYOffset!= 'undefined'){
        //most browsers
        return pageYOffset;
    }
    else{
        var B= document.body; //IE 'quirks'
        var D= document.documentElement; //IE with doctype
        D= (D.clientHeight)? D: B;
        return D.scrollTop;
    }
}
