
if (document.all) {
    docObj = "document.all."
    styleObj = ".style"
}
else {
    docObj = "document."
    styleObj = ""
}

function popUp(evt,currElem,devX, devY) {
if (currElem) {
	var currElem = currElem;
	
	var dom = (document.getElementById) ? true : false;
	var ff1 = ((navigator.userAgent.indexOf("Firefox")>-1) && dom) ? true: false;
	
	var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
	var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
	var ie6 = ((navigator.userAgent.indexOf("MSIE")>-1) && (navigator.userAgent.indexOf("6.0")>-1)) ? true : false;
	var ie7 = ((navigator.userAgent.indexOf("MSIE")>-1) && (navigator.userAgent.indexOf("7.0")>-1)) ? true : false;
	var ns4 = (document.layers && !dom) ? true : false;
	var ie4 = (document.all && !dom) ? true : false;
	var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false; 
	
	if (!inRectZoom) {
	
		if (ie4 || ie5 || ff1 || ie7) {
		        docObj = "document.getElementById('"
		        styleObj = "').style"
		    
		        }
		    else {
		        docObj = "document."
		        styleObj = ""
		        }
		
		    popUpWin = eval(docObj + currElem + styleObj)
		    if (ie4 || ie5) 
		    {
		        sc=document.body.scrollTop;
		        //popUpWin.top = parseInt(evt.clientY)+2+sc
		        //popUpWin.left = Math.max(2,parseInt(evt.clientX)+8)
		
		    }
		    else 
		    {
		        //popUpWin.top = parseInt(evt.pageY)+2
		        //popUpWin.top = popUpWin.top * 1 - devY * 1;
		        
		        //popUpWin.left = Math.max(2,parseInt(evt.pageX)+8)
		        //popUpWin.left = popUpWin.left * 1 - devX * 1;
		    }
		    popUpWin.visibility = "visible"
			popUpWin.zindex= '100';
		    window.status = ""
			rectzoom = false;
		}
	    setTimeout("popDown('"+currElem+"')",5000);	
}	
}

function popDown(currElem) {
    if (currElem) {
	    if (!inRectZoom) {		    
		    try {
		       popUpWin = eval(docObj + currElem + styleObj)
		       popUpWin.visibility = "hidden";
		    } catch(e) {
		    }  		    
		    //popUpWin.top = 0;
		    //popUpWin.left = 0;
	    }
	    rectzoom = true;
    }
}

