function cl_min (ev) {
	if (window.event) {ev = window.event}
	var hi = document.getElementById("hi"+this.iid);
	var img = hi.firstChild;
	img.src = this.thsrc;
	img.width = this.thw;
	//img.height = this.thh;
	hi.style.left = "10px";//this.offsetLeft; //(objPos(this).x +10) + "px";//leftPosition(this) + "px";
	hi.style.top = "-20px"; //this.offsehiop; //(objPos(this).y + 10) + "px";//(topPosition(this) + 35) + "px";
	hi.style.display = "block";
}

function cl_mout (ev) {
	if (window.event) {ev = window.event}
	var hi = document.getElementById("hi"+this.iid);
	hi.style.display = "none";
}

function lf(n,ev,f,w,h,iid){

	if (Br.IE || Br.OP) {
	
		n.thsrc = f;
		n.thw = w;
		n.thh = h;
		n.iid = iid;
		n.onmouseover = cl_min;
		n.onmouseout = cl_mout;
		n.onmouseover(ev);
	}
}

/* hover images in commodity list */
var bHoverName = 0, bHoverImage = 0, nLastImageId = 0; // jestli mame mys nad nazvem a obrazkem
function hideHoverImage( hoverWhat, idImage ) {
	if (hoverWhat==1) bHoverName = 0;
	if (hoverWhat==2) bHoverImage = 0;
	setTimeout("if (bHoverName==0 & bHoverImage==0) getE('hover_"+idImage+"').style.display='none';", 500); //getE('hover_'+idImage).style.display='none';
}

function showHoverImage( hoverWhat, idImage ) {
	clearTimeout;
	if (idImage!=nLastImageId) { 
		bHoverName = 0; 
		bHoverImage = 0; 
		if (getE('hover_'+nLastImageId)) getE('hover_'+nLastImageId).style.display='none';
	}
	if (hoverWhat==1) bHoverName = 1;
	if (hoverWhat==2) bHoverImage = 1;
	nLastImageId = idImage;
	getE('hover_'+idImage).style.display='block';
}
