function cancelEvent(e)
{
  e = e ? e : window.event;
  if(e.stopPropagation)
    e.stopPropagation();
  if(e.preventDefault)
    e.preventDefault();
  e.cancelBubble = true;
  e.cancel = true;
  e.returnValue = false;
  return false;
}
function handleMouseWheel(e)
{
  if (!e) e = window.event;

  if ( e.wheelDelta <= 0 || e.detail > 0) { scrolluj(10); }
  else { scrolluj(-10); }
timer = setTimeout("zastav();", 30);
cancelEvent(e);

} 
function verifyCompatibleBrowser(){
	this.ver=navigator.appVersion;
    this.dom = document.getElementById?1:0;
    this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4 = (document.all && !this.dom)?1:0; 
    this.ns5 = (this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4 = (document.layers && !this.dom)?1:0; 
    return this 
} 
bw = new verifyCompatibleBrowser() 
 
function ConstructObject(obj,obj2){ 
    obj2=(!obj2) ? '':'document.'+obj2+'.' 
    this.objekt = bw.dom ? document.getElementById(obj):bw.ie4 ? document.all[obj]:bw.ns4 ? eval(obj2+'document.'+obj):0; 
    this.css = bw.dom ? document.getElementById(obj).style:bw.ie4 ? document.all[obj].style:bw.ns4 ? eval(obj2+'document.'+obj):0; 
    this.scrollHeight = bw.ns4 ? this.css.document.width:this.objekt.offsetWidth 
    this.clipHeight = bw.ns4 ? this.css.clip.width:this.objekt.offsetWidth 
    this.up = MoveAreaUp; this.down = MoveAreaDown; 
    this.MoveArea = MoveArea; this.x; this.y; 
    return this 
} 

var odpocet = 50;
function MoveArea(y){ 
	this.y = y; 
    this.css.left = this.y;
} 

var loop; 
function MoveAreaDown(move){ 
	if(this.y> - this.scrollHeight + objScrollArea.clipHeight){ 
    this.MoveArea(this.y-move) 
    if(loop) setTimeout("objDivContent.down("+move+")",odpocet) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(this.y-move) 
    if(loop) setTimeout("objDivContent.up("+move+")",odpocet) 
	} 
} 
 


function scrolluj(speed){ 
	if(inicializuj){ 
		loop=true; 
		if(speed>0) objDivContent.down(speed) 
		else objDivContent.up(speed) 
	} 
} 
 
function zastav(){ 
    loop=false;
} 
var initialised; 
function inicializuj(){ 
    objScrollArea=new ConstructObject('scrollArea') 
    objDivContent=new ConstructObject('divContent','scrollArea') 
    objDivContent.MoveArea(0) 
    objScrollArea.css.visibility='visible' 
    initialised=true;
	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){
		document.getElementById("scrollArea").addEventListener("DOMMouseScroll", handleMouseWheel, false);
	}
	else { document.getElementById("scrollArea").onmousewheel = handleMouseWheel } 
} 

