Function.prototype.bind=function(context){var _event=this;return function(){return _event.apply(context,arguments);};};var ImageTip={m_Tip:null,m_FollowMouse:false,NS5:(!document.all&&document.getElementById||window.opera)?true:false,IE5:(navigator.userAgent.indexOf("MSIE")>-1&&document.getElementById)?true:false,IE4:(document.all&&!document.getElementById)?true:false,internal:{m_OffsetX:20,m_OffsetY:12,m_bOnTip:false,m_Timer1:null,m_Timer2:null,m_MouseX:0,m_MouseY:0,m_hWnd:null},OnLoad:function(){this.m_Tip=document.getElementById("productToolTip");if(this.m_Tip&&this.m_FollowMouse){this.internal.m_hWnd=this.TrackMousePos.bind(this);document.onmousemove=this.internal.m_hWnd;}},ShowToolTip:function(e,imgUrl,imageId){if(this.m_Tip&&imageId){if(this.internal.m_Timer1)clearTimeout(this.internal.m_Timer1);if(this.internal.m_Timer2)clearTimeout(this.internal.m_Timer2);this.internal.m_bOnTip=true;this.m_Tip.innerHTML="<img src='"+imgUrl+imageId+"'/>";if(this.m_FollowMouse)this.internal.m_Timer1=setTimeout("ImageTip.m_Tip.style.visibility='visible'",100);else this.SetTipPos(e);}},TrackMousePos:function(e){standard=document.compatMode=="CSS1Compat"? document.documentElement:document.body;this.internal.m_MouseX=this.NS5? e.pageX:window.event.clientX+standard.scrollLeft;this.internal.m_MouseY=this.NS5? e.pageY:window.event.clientY+standard.scrollTop;if(this.internal.m_bOnTip)this.SetTipPos(e);},SetTipPos:function(e){if(!this.m_FollowMouse){standard=document.compatMode=="CSS1Compat"? document.documentElement:document.body;this.internal.m_MouseX=this.NS5? e.pageX:window.event.clientX+standard.scrollLeft;this.internal.m_MouseY=this.NS5? e.pageY:window.event.clientY+standard.scrollTop;}var tpWd=this.IE4||this.IE5? this.m_Tip.clientWidth:this.m_Tip.offsetWidth;var tpHt=this.IE4||this.IE5? this.m_Tip.clientHeight:this.m_Tip.offsetHeight;var winWd=this.NS5? window.innerWidth-20+window.pageXOffset:standard.clientWidth+standard.scrollLeft;var winHt=this.NS5? window.innerHeight-20+window.pageYOffset:standard.clientHeight+standard.scrollTop;if((this.internal.m_MouseX+this.internal.m_OffsetX+tpWd)> winWd)this.m_Tip.style.left=this.internal.m_MouseX-(tpWd+this.internal.m_OffsetX)+"px";else this.m_Tip.style.left=this.internal.m_MouseX+this.internal.m_OffsetX+"px";if((this.internal.m_MouseY+this.internal.m_OffsetY+tpHt)> winHt)this.m_Tip.style.top=winHt-(tpHt+this.internal.m_OffsetY)+"px";else this.m_Tip.style.top=this.internal.m_MouseY+this.internal.m_OffsetY+"px";if(!this.m_FollowMouse)this.internal.m_Timer1=setTimeout("ImageTip.m_Tip.style.visibility='visible'",100);},HideToolTip:function(){if(this.m_Tip){this.internal.m_Timer2=setTimeout("ImageTip.m_Tip.style.visibility='hidden'",100);this.internal.m_bOnTip=false;}}};ImageTip.internal.m_hWnd=ImageTip.OnLoad.bind(ImageTip);if(window.addEventListener)window.addEventListener("load",ImageTip.internal.m_hWnd,false);else if(window.attachEvent)window.attachEvent("onload",ImageTip.internal.m_hWnd);else window.onload=ImageTip.internal.m_hWnd;document.write('<div id="productToolTip" style="position:absolute;visibility:hidden;z-index:100"></div>');