/* ----------------------------------------------- Usage: Attach click event to video popup links Last Updated: 03/4/2008 ------------------------------------------------ */ /** * @classDescription popupWindow_class * @constructor */ function popupWindow_class() { this.init(); } /** * @method init */ popupWindow_class.prototype.init = function() { this.items = WSDOM.Element.parseSelector('a.video-popup, area.video-popup'); this.attachEvents(); } /** * @method attachEvents */ popupWindow_class.prototype.attachEvents = function() { for (var i = 0; i < this.items.length; i++) { WSDOM.Events.add( { element: this.items[i], context: this, type: 'click', handler: this.handleClick } ); } } /** * @method handleClick */ popupWindow_class.prototype.handleClick = function(e, el) { e.cancel(); el.blur(); window.open(el.href, 'HS_VIDEO', "height=437,width=700,top=0,resize=no"); } var popupWindows = new popupWindow_class();