Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/i-plan.ru/components/com_jce/media/js/
Upload File :
Current File : /var/www/iplanru/data/www/i-plan.ru/components/com_jce/media/js/popup.js

/* JCE Editor - 2.4.3 | 11 September 2014 | http://www.joomlacontenteditor.net | Copyright (C) 2006 - 2014 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
(function(win){var doc=win.document,body=doc.body,domLoaded=false;function ready(){if(doc.addEventListener){doc.addEventListener("DOMContentLoaded",function(){doc.removeEventListener("DOMContentLoaded",arguments.callee,false);return WFWindowPopup._init();},false);}else if(doc.attachEvent){doc.attachEvent("onreadystatechange",function(){if(doc.readyState==="complete"){doc.detachEvent("onreadystatechange",arguments.callee);return WFWindowPopup._init();}});if(doc.documentElement.doScroll&&win==win.top){(function(){if(domLoaded)
return;try{doc.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}
return WFWindowPopup._init();})();}}
if(win.attachEvent){win.attachEvent('onload',function(){return WFWindowPopup._init();});}}
var WFWindowPopup={init:function(width,height,click){this.width=parseInt(width);this.height=parseInt(height);this.click=!!click;if(!this.width&&!this.height){return;}
if(!domLoaded){return ready();}
this._init();},_init:function(){this.resize();if(this.click){this.noclick();}},resize:function(){var x,oh=0;var vw=win.innerWidth||doc.documentElement.clientWidth||body.clientWidth||0;var vh=win.innerHeight||doc.documentElement.clientHeight||body.clientHeight||0;var divs=doc.getElementsByTagName('div');for(x=0;x<divs.length;x++){if(divs[x].className=='contentheading'){oh=divs[x].offsetHeight;}}
win.resizeBy(vw-this.config.width,vh-(this.config.height+oh));this.center();},center:function(){var vw=win.innerWidth||doc.documentElement.clientWidth||body.clientWidth||0;var vh=win.innerHeight||doc.documentElement.clientHeight||body.clientHeight||0;var x=(screen.width-vw)/2;var y=(screen.height-vh)/2;win.moveTo(x,y);},noclick:function(){doc.onmousedown=function(e){return win.close();};}};win.WFWindowPopup=WFWindowPopup;})(window);