Lines Matching refs:_pub

8 	var _pub = {  variable
50 _pub.base_url = path;
63 if (els[i].getAttribute(_pub.attribute_name)) {
64 var t = els[i].getAttribute(_pub.attribute_name);
66 els[i].onclick = _pub.handleTag;
90 _pub.clear();
92_pub.updateObject(els.wrapper.style, {display: 'block', visibility: 'hidden', left: 0, top: 0, hei…
97 var pagesize = _pub.getPageSize();
115 else var width = _pub.default_width;
125 _pub.reposition();
128 for (var i=0; i<_pub.tags_to_hide.length; i++) {
129 showTags(_pub.tags_to_hide[i], els.content);
151 _pub.html(text, active.params);
162 for (var i=0; i<_pub.plugins.list.length; i++) {
163 var plugin = _pub.plugins.list[i];
182 _pub.clear();
184 for (var i=0; i<_pub.tags_to_hide.length; i++) showTags(_pub.tags_to_hide[i]);
188_pub.fade(els.overlay, _pub.getOpacity(null, els.overlay), 0, _pub.fade_out_speed, function() { el…
189 _pub.fireEvent('hide');
199 if (els.loading.style.display != 'none') _pub.center(els.loading);
203 var pagesize = _pub.getPageSize();
230 _pub.updateObject(els.content.style, {width: '', height: ''});
250 _pub.updateObject(els.wrapper.style, {width: width + 'px', height: height + 'px'});
258 if (active.dimensions != ['100%', '100%']) _pub.center(els.wrapper);
275 var pageSize = _pub.getPageSize();
276 var scrollPos = _pub.getScrollPos();
277 var emSize = _pub.getElementSize(obj);
286 _pub.updateObject(obj.style, {top: y + 'px', left: x + 'px'});
336 _pub.setOpacity(null, obj, end);
346 obj.fader = setInterval(_pub.bind(function(e, obj, increment, end, callback) {
347 var opacity = _pub.getOpacity(e, obj) + increment;
348 _pub.setOpacity(e, obj, opacity);
350 _pub.setOpacity(e, obj, end);
374 return _pub.getStyle(obj, 'opacity')*100;
481 var params = _pub.parseQuery(t.substr(5,999));
486 if (_pub.inherit_frames && window.parent) window.parent.iBox.showURL(url, title, params);
487 else _pub.showURL(url, title, params);
496 _pub.plugins.list = [func].concat(_pub.plugins.list);
499 _pub.plugins.list.push(func);
523 pagesize = _pub.getPageSize();
532 _pub.setOpacity(null, els.overlay, 0);
534 if (!_pub.is_firefox) els.overlay.style.background = '#000000';
535 else els.overlay.style.backgroundImage = "url('" + _pub.base_url + "images/bg.png')";
538 _pub.updateObject(els.overlay.style, params);
539 els.overlay.onclick = _pub.hide;
546 els.loading.onclick = _pub.hide
551 _pub.updateObject(els.wrapper.style, {position: 'absolute', top: 0, left: 0, display: 'none'});
555 _pub.updateObject(els.content.style, {overflow: 'auto'})
562 child2.innerHTML = _pub.close_label;
564 child2.onclick = _pub.hide;
577 _pub.updateObject(els.wrapper.style, {right: '', bottom: ''});
591 if (_pub.getStyle(list[i], 'visibility') != 'hidden' && list[i].style.display != 'none') {
617 if (active.plugin) _pub.hide();
624 _pub.center(els.loading);
625 _pub.reposition();
628 for (var i=0; i<_pub.tags_to_hide.length; i++) {
629 hideTags(_pub.tags_to_hide[i]);
638 if (!_pub.is_firefox) var amount = 70;
640 _pub.fade(els.overlay, _pub.getOpacity(null, els.overlay), amount, _pub.fade_in_speed, callback);
642 _pub.fireEvent('show');
680 _pub.setPath(src.substr(0, src.length-7));
685 _pub.checkTags(document.body, 'a');
686 _pub.http = _pub.createXMLHttpRequest();
687 _pub.fireEvent('load');
690_pub.addEvent(window, 'keypress', function(e){ if (e.keyCode == (window.event ? 27 : e.DOM_VK_ESCA…
691 _pub.addEvent(window, 'resize', _pub.reposition);
692 _pub.addEvent(window, 'load', initialize);
693 _pub.addEvent(window, 'scroll', _pub.reposition);
716 var elemSrc = _pub.html().firstChild;
735 _pub.html(document.createTextNode('There was an error loading the document.'), params);
740 _pub.html(elemSrc, params);
745 _pub.plugins.register(iBoxPlugin_Container, true);
761 img.onclick = _pub.hide;
765 _pub.html(img, {width: this.width, height: this.height, constrain: true})
768 _pub.html(document.createTextNode('There was an error loading the document.'), params);
774 _pub.plugins.register(iBoxPlugin_Image);
791 _pub.html(html, params);
795 _pub.plugins.register(iBoxPlugin_YouTube);
804 _pub.http.open('get', url, true);
806 _pub.http.onreadystatechange = function() {
807 if (_pub.http.readyState == 4) {
809 if (_pub.http.status == 200 || _pub.http.status == 0) {
810 _pub.html(_pub.http.responseText, params);
813 _pub.html(document.createTextNode('There was an error loading the document.'), params);
817 _pub.http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
819 _pub.http.send(null);
822 _pub.html(document.createTextNode('There was an error loading the document.'), params);
827 _pub.plugins.register(iBoxPlugin_Document, true);
829 return _pub;