var id;var imgurl;var clockTimeoutID;function popup(a,b){id=a;imgurl=b;clearTimeout(clockTimeoutID);clockTimeoutID=setTimeout("delayProcess()",0)}function delayProcess(){setImgPosition(id);document.getElementById("popup"+id).style.display="block";LoadImage(id,imgurl)}function setImgPosition(c){var a=document.getElementById("popup"+c);a.style.top=parseFloat(getImgRealTop(c))+parseFloat(25)+"px";var b=parseFloat(getImgRealLeft(c))-parseFloat(0);if((parseFloat(b)+parseFloat(document.getElementById("popup"+c).style.width))>screen.width){a.style.left=parseFloat(parseFloat(getImgRealLeft(c))-parseFloat(document.getElementById("popup"+c).style.width))+"px"
}else{a.style.left=parseFloat(parseFloat(getImgRealLeft(c))+parseFloat(10))+"px"}}function getImgRealTop(a){var b=document.getElementById(a).offsetTop;var c=document.getElementById(a).offsetParent;while(c!=null){b+=c.offsetTop;c=c.offsetParent}return b}function getImgRealLeft(a){var b=document.getElementById(a).offsetLeft;var c=document.getElementById(a).offsetParent;while(c!=null){b+=c.offsetLeft;c=c.offsetParent}return b}function LoadImage(c,b){var a=document.getElementById("regimg"+c);a.src=b}function CloseImgDiv(a){clearTimeout(clockTimeoutID);
document.getElementById("popup"+a).style.display="none"}function OpenLargeProductImage(){var b;var a;if(arguments.length==3){a="include/LargeProductImage.aspx?path="+arguments[0];b=window.open(a,"MsgWindow","scrollbars=1,width="+(arguments[1])+"px,height="+(arguments[2])+"px,menubar=0,resizable=1")}else{if(arguments.length==4){a=arguments[0]+"Search/include/LargeProductImage.aspx?path="+arguments[1];b=window.open(a,"MsgWindow","scrollbars=1,width="+(arguments[2])+"px,height="+(arguments[3])+"px,menubar=0,resizable=1")
}else{alert("Invaild number of arguments")}}};
