function objektZaCursorem(e,objectCursor,obrX,obrY){

odrolovano=mujScrollY();
oknoX=winW();
oknoY=winH()+odrolovano;
getMouseXY(e);
mouseX=mouseX+10;
mouseY=mouseY-(obrY+10);

obrRLX=mouseX+obrX+20;
obrDUY=mouseY;

if(oknoX<obrRLX)mouseX=mouseX-obrX-20;
if(odrolovano>obrDUY)mouseY=mouseY+obrY+20;

objectCursor.style.left=mouseX+"px";
objectCursor.style.top=mouseY+"px";
}

function obrZaCursorem(e,urlObr,obrX,obrY){
var objectCursor=document.getElementById('objectCursor');
objectCursor.innerHTML="";
objektZaCursorem(e,objectCursor,obrX,obrY);
objectCursor.style.width=obrX+"px";
objectCursor.style.height=obrY+"px";
OBRvls=document.createElement('img');
OBRvls.src=AktualDir+"soubory/Image/stredni/"+urlObr;
objectCursor.appendChild(OBRvls);
}

function titulekZaCursorem(e,titulek,obrX,obrY,noinsert){
var objectCursor=document.getElementById('objectCursor');
if(noinsert!=true)objectCursor.innerHTML="";
objektZaCursorem(e,objectCursor,obrX,obrY);
if(noinsert!=true){
objectCursor.style.width=obrX+"px";
objectCursor.style.height=obrY+"px";

OBRvls=document.createElement('div');
OBRvls.style.padding="3px 3px";
OBRvls.style.fontSize="12px";
mujPopisHoverText=document.createTextNode(titulek );
OBRvls.appendChild(mujPopisHoverText);
objectCursor.appendChild(OBRvls);
}
}


function obrZaCursoremBlock(block){
var objectCursor=document.getElementById('objectCursor');
/*if(block=="none"){
setTimeout('animationAlpha("objectCursor",1);', 25);
}else{*/
//objectCursor.style.opacity=1;
objectCursor.style.display=block;
//}
}

function obrPopisZaCursorem(e,i){
var objectCursor=document.getElementById('objectCursor');
objectCursor.innerHTML="";
objektZaCursorem(e,objectCursor,430,160);
objectCursor.style.width=430+"px";
objectCursor.style.height=160+"px";
mujTD.style.borderWidth="0px";
OBRvls=document.createElement('img');
OBRvls.src=obrazekEshopArray.item(i).firstChild.data;
OBRvls.setAttribute("src",AktualDir+obrazekEshopArray.item(i).firstChild.data);
OBRvls.style.padding="5px";
//OBRvls.style.top="5px";
//OBRvls.style.position="absolute";
objectCursor.appendChild(OBRvls);

mujPopisHover=document.createElement('DIV');
objectCursor.appendChild(mujPopisHover);
var valueText=popisEshopArray.item(i).firstChild.data;
if(valueText!=false){
mujPopisHoverText=document.createTextNode(valueText );
mujPopisHover.appendChild(mujPopisHoverText);
}
mujPopisHover.style.position="absolute";
mujPopisHover.style.left="190px";
mujPopisHover.style.top="5px";
mujPopisHover.style.width="230px";
mujPopisHover.style.height="130px";
mujPopisHover.style.overflow="auto";

mujPopisHover=document.createElement('DIV');
objectCursor.appendChild(mujPopisHover);
mujPopisHover.style.position="absolute";
mujPopisHover.style.left="190px";
mujPopisHover.style.top="131px";
mujPopisHover.style.width="230px";
mujPopisHover.style.textAlign="center";
mujPopisHover.style.height="19px";

mujINPUT=document.createElement('INPUT');
mujINPUT.setAttribute("value","ZAVŘÍT");
mujINPUT.type="button";
mujINPUT.setAttribute("onmousedown","obrZaCursoremBlock('none');");
mujPopisHover.appendChild(mujINPUT);

obHTML=objectCursor.innerHTML;
objectCursor.innerHTML="";
objectCursor.innerHTML=obHTML+"<!--[if gte IE 4]><iframe></iframe><![endif]-->";

}