var idprev = ''
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.border = '1px solid #333';
	hi.style.display = "block";
	
}

function cl_minFF (ev) {
	if (window.event) {ev = window.event}
	if ( document.getElementById(idprev) ) document.getElementById(idprev).style.display = "none";
	
	var hi = document.getElementById("hi"+this.iid);
	
	var img = hi.firstChild;
	img.src = this.thsrc;
	img.width = this.thw;
	img.height = this.thh;
	img.style.border = '1px solid #333';
	hi.style.left = "25px";//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";
	
	idprev = "hi"+this.iid;
}


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);
	}
	else
	{
		n.thsrc = f;
		n.thw = w;
		n.thh = h;
		n.iid = iid;
		n.onmouseover = cl_minFF;
		n.onmouseout = cl_mout;
		n.onmouseover(ev);
	}
}
