//START BoxCore.HoverSupport.js /// /// /// Type.registerNamespace('BoxCore'); BoxCore._HoverSupport = function() { /// /// The _HoverSupport class contains functionality for HoverImageBase which is /// used by HoverImage and HoverImageButton /// /// /// You should not create new instances of _HoverSupport. Instead you should use the shared instance HoverSupport (or BoxCore.HoverSupport). /// BoxCore._HoverSupport.initializeBase(this); //if (typeof(Sys) !== 'undefined') { Sys.Application.registerDisposableObject(this); } this._normalImages = new Array(); this._hoverImages = new Array(); this._linkedImages = new Array(); this._linkedHoverImages = new Array(); } BoxCore._HoverSupport.prototype = { initialize: function() { if (typeof (Sys) !== 'undefined') { BoxCore._HoverSupport.callBaseMethod(this, 'initialize'); } this._normalImages = []; this._hoverImages = []; this._linkedImages = []; this._linkedHoverImages = []; }, dispose: function() { this._normalImages = null; this._hoverImages = null; this._linkedImages = null; this._linkedHoverImages = null; if (typeof (Sys) !== 'undefined') { BoxCore._HoverSupport.callBaseMethod(this, 'dispose'); } }, loadImgS: function(tag, url, mode) { return this._loadImg(tag, url, mode, true); }, loadImg: function(tag, url, mode) { return this._loadImg(tag, url, mode, false); }, _loadImg: function(tag, url, mode, resize) { var img = new Image(); img.src = url; this._getList(mode)[tag] = img; if (mode == 0) { this._setImg(tag, $get(tag), mode, resize); } // if (mode == 0) { // normal // this._normalImages[tag] = img; // this._setImg(tag, document.getElementById(tag), mode, resize); // } else if (mode == 1) { // hover // this._hoverImages[tag] = img; // } else if (mode == 2) { // linked // this._linkedImages[tag] = img; // } else if (mode == 3) { // linked hover // this._linkedHoverImages[tag] = img; // } // return false; }, _getList: function(listType) { if (listType == 0) { return this._normalImages; } else if (listType == 1) { return this._hoverImages; } else if (listType == 2) { return this._linkedImages; } else if (listType == 3) { return this._linkedHoverImages; } return null; }, _getImg: function(tag, mode) { var lst = this._getList(mode); if (lst) { return lst[tag]; } return null; }, swapImages: function(tag, src, dst) { this._getList(dst)[tag] = this._getList(src)[tag]; this._setImg(tag, $get(tag), dst, false); // var img = srcLst[tag]; // srcLst[tag] = dstLst[tag]; // dstLst[tag] = img; return false; }, setImgN: function(src, img, resize) { if (resize) { var imgs = new Image(); imgs.src = src; img.src = imgs.src; img.currentStyle.width = imgs.currentStyle.width; img.currentStyle.height = imgs.currentStyle.height; } else { img.src = src; } return false; }, setImgS: function(tag, img, mode) { return this._setImg(tag, img, mode, true); }, setImg: function(tag, img, mode) { return this._setImg(tag, img, mode, false); }, _setImg: function(tag, img, mode, resize) { if (img) { var imgd = this._getList(mode)[tag]; // null; // if (mode == 0) { // normal // imgd = this._normalImages[tag]; // } else if (mode == 1) { // hover // imgd = this._hoverImages[tag]; // } else if (mode == 2) { // linked // imgd = this._linkedImages[tag]; // } else if (mode == 3) { // linked hover // imgd = this._linkedHoverImages[tag]; // } if (imgd) { img.src = imgd.src; if (resize) { img.currentStyle.width = imgd.currentStyle.width; img.currentStyle.height = imgd.currentStyle.height; } } return false; } } }; if (typeof(Sys) !== 'undefined') { BoxCore._HoverSupport.inheritsFrom(Sys.Component); BoxCore._HoverSupport.registerClass('BoxCore._HoverSupport', Sys.Component); } //var $hovs = HoverSupport = BoxCore.HoverSupport = $create(BoxCore._HoverSupport, {'id':'HoverSupport'}); //new BoxCore._HoverSupport(); //var $boxhov = HoverSupport; //END BoxCore.HoverSupport.js if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded(); (function() {var fn = function() {$get('ctl03_HiddenField').value += ';;BoxCore:en-US:1d1ba63f-2f11-4103-982d-132454a9dbea:eaa750a9';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();