if (Drupal.jsEnabled) { $(document).ready(function() { NX_IS_MSIE6 = /MSIE 6/gi.test(navigator.userAgent); NX_GET_OBJ = document.getElementById; NX_B = $('body')[0]; }); } function doLoadImg(url, width, height) { globalGalleryPreview = new cPopUp( 'globalGalleryPreview', nx_theme_url.substr(0,nx_theme_url.length-7-('hunter'.length)) + url, width, height); return false; } function cPopUp(iName,iURL,iW,iH){ this.oName = iName; this.oURL = iURL; this.oW = iW?iW:100; this.oH = iH?iH:100; if(this.oH>500){ this.oW = this.oW / this.oH * 500; this.oH = 500} this.show()} cPopUp.prototype.show=function(){ var popUp_html = ''+ '
'; $('body').append(popUp_html); if(NX_IS_MSIE6){ NX_GET_OBJ(this.oName).style.position = 'absolute'; $(window).scroll(eval('new Function("","'+this.oName+'.move()")')) this.move(); } } cPopUp.prototype.hide=function(){ var o = document.getElementById(this.oName); o.parentNode.removeChild(o); } cPopUp.prototype.move=function(){ try{NX_GET_OBJ(this.oName).style.top = NX_B.scrollTop; }catch(e){} }