"use strict";Type.registerNamespace("ZeroHarm.HoverPanel");ZeroHarm.HoverPanel={_selector:"div.hover-panel",_element:null,_positionDelegate:null,positionHoverPanel:function(){var a=this;if(a._element){var e,b,d,c;e=getWindowSize();b=Sys.UI.DomElement.getBounds(a._element);d=parseInt((e.height-b.height)/2,10);c=parseInt((e.width-b.width)/2,10);if(d<0)d=0;if(c<0)c=0;Sys.UI.DomElement.setLocation(a._element,c,d);if(!(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7))a._element.style.position="fixed";else b.height>500&&$("div.content",a._element).height(500)}},init:function(){var a=this;if(a._positionDelegate!==null){$removeHandler(window,"resize",a._positionDelegate);a._positionDelegate=null}$(a._selector).each(function(){a._element=this;a.positionHoverPanel();a._positionDelegate=Function.createDelegate(a,a.positionHoverPanel);$addHandler(window,"resize",a._positionDelegate)})}};if(typeof Sys!=="undefined"){Sys.Application.add_load(function(){$(Function.createDelegate(ZeroHarm.HoverPanel,ZeroHarm.HoverPanel.init))});Sys.Application.notifyScriptLoaded()};
