1/* comentarii */ 2function JComments(a,b,c){this.init(a,b,c)}function JCommentsEditor(a,b){this.init(a,b)}function JCommentsForm(a,b){this.init(a,b)}function JCommentsIndicator(){this.init()}function JCommentsInput(){}function JCommentsEvents(){}JCommentsEvents.prototype={add:function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false);return true}else if(a.attachEvent){return a.attachEvent("on"+b,c)}else{return false}},remove:function(a,b,c){if(a.removeEventListener){a.removeEventListener(b,c,false)}else if(a.detachEvent){a.detachEvent("on"+b,a[b+c]);a[b+c]=null;a["e"+b+c]=null}},cancel:function(a){if(a.stopPropagation){a.cancelBubble=true;a.preventDefault();a.stopPropagation()}a.returnValue=false;return false},target:function(a){var b;if(!a)a=window.event;if(a.target)b=a.target;else if(a.srcElement)b=a.srcElement;if(b.nodeType==3)b=b.parentNode;return b}};JCommentsInput.prototype={register:function(a){if(a){var b=this,c=new JCommentsEvents;c.add(a,"focus",function(a){return b.onFocus(a)});c.add(a,"blur",function(a){return b.onBlur(a)})}},unregister:function(a){if(a){var b=this,c=new JCommentsEvents;c.remove(a,"focus",function(a){return b.onFocus(a)});c.remove(a,"blur",function(a){return b.onBlur(a)})}},onFocus:function(a){var b=JCommentsEvents.prototype.target(a);if(b!=null){b.className=b.className.replace("error","")+" selected"}},onBlur:function(a){var b=JCommentsEvents.prototype.target(a);if(b!=null){var c=b.className.replace("error","");c=c.replace("error","");c=c.replace("selected","");b.className=c.replace(/^\s+/g,"")}}};JCommentsEditor.prototype={ta:null,l10n:{},tags:{},smiles:{},events:null,counter:null,focused:false,resizable:true,init:function(a,b){this.ta=JComments.prototype.$(a);this.panelElements={};this.l10n={counterPre:"",counterPost:" symbols left",enterValue:"Enter value"};this.resizable=b;this.events=new JCommentsEvents;this.defaultHeight=this.ta.clientHeight;this.defaultRows=this.ta.rows;if(this.resizable){this.addGrippie()}this.isWebkit=/webkit/.test(navigator.userAgent.toLowerCase());var c=this;this.events.add(document,!window.opera&&document.all?"keydown":"keypress",function(a){return c.onKeyPress(a)});this.events.add(this.ta,"click",function(a){c.closeSmiles();return c.storeCaret(this.ta)});this.events.add(this.ta,"select",function(a){return c.storeCaret(this.ta)});this.events.add(this.ta,"change",function(a){c.onChange();return c.storeCaret(this.ta)});this.events.add(this.ta,"keyup",function(a){return c.onChange()});this.events.add(this.ta,"focus",function(a){c.closeSmiles();return c.focused=true});this.events.add(this.ta,"blur",function(a){return c.focused=false})},onKeyPress:function(a){if(!this.focused){return}var b=false,c=String.fromCharCode(a.keyCode?a.keyCode:a.charCode),d=null;for(var e in this.tags){d=this.tags[e];if(!d.key||c.toUpperCase()!=d.key.toUpperCase())continue;if(d.ctrl&&!a[d.ctrl+"Key"])continue;this.insertTag(e);return this.events.cancel(a)}return a.returnValue},defined:function(a){return typeof a!="undefined"},clear:function(){this.ta.value="";if(this.defaultHeight){this.ta.style.height=this.defaultHeight+"px"}this.updateCounter()},focus:function(){this.ta.focus()},storeCaret:function(){var a=this.ta;if(a.createTextRange)a.caretPos=document.selection.createRange().duplicate()},getElementPos:function(a){var b={left:0,top:0,right:0,bottom:0};while(a!=null){b.left+=a.offsetLeft;b.top+=a.offsetTop;a=a.offsetParent}b.right+=b.left;b.bottom+=b.top;return b},getSelection:function(){var a=this.ta,b="";if(document.selection&&document.selection.createRange){b=document.selection.createRange().text}else{b=a.value.substr(a.selectionStart,a.selectionEnd-a.selectionStart)}return b},insertText:function(a){var b=this.ta;if(this.defined(b.caretPos)&&b.createTextRange){b.focus();var c=document.selection.createRange();c.text=c.text+a;b.focus()}else if(this.defined(b.selectionStart)){var d=b.value.substr(0,b.selectionStart);var e=b.value.substr(b.selectionEnd),f=b.scrollTop;b.value=d+a+e;if(b.setSelectionRange){b.focus();b.setSelectionRange(d.length+a.length,d.length+a.length)}b.scrollTop=f}else{b.value+=a;b.focus(b.value.length-1)}},surroundText:function(a,b){var c=this.ta;if(this.defined(c.caretPos)&&c.createTextRange){var d=c.caretPos,e=d.text.length;d.text=d.text.charAt(d.text.length-1)==" "?a+d.text+b+" ":a+d.text+b;if(e==0){d.moveStart("character",-b.length);d.moveEnd("character",-b.length);d.select()}else{c.focus(d)}}else if(this.defined(c.selectionStart)){var f=c.value.substr(0,c.selectionStart),g=c.value.substr(c.selectionEnd);var h=c.value.substr(c.selectionStart,c.selectionEnd-c.selectionStart);var i=c.selectionStart,j=c.scrollTop;c.value=f+a+h+b+g;if(c.setSelectionRange){if(h.length==0){c.setSelectionRange(i+a.length,i+a.length)}else{c.setSelectionRange(i,i+a.length+h.length+b.length)}c.focus()}c.scrollTop=j}else{c.value+=a+b;c.focus(c.value.length-1)}},insertTag:function(a){var b=this.tags[a],c=this.ta,d="";if(!b)return;d=this.getSelection();if(d.length>0){this.surroundText(b.open,b.close)}},initTags:function(){if(this.bbc==null||this.bbc.length==0){this.bbc={};this.bbc["b"]={id:"bbcode-b",open:"[b]",close:"[/b]",key:"B",ctrl:"ctrl",hint:"Bold"};this.bbc["i"]={id:"bbcode-i",open:"[i]",close:"[/i]",key:"I",ctrl:"ctrl",hint:"Italic"};this.bbc["u"]={id:"bbcode-u",open:"[u]",close:"[/u]",key:"u",ctrl:"ctrl",hint:"Underline"};this.bbc["s"]={id:"bbcode-s",open:"[s]",close:"[/s]",key:null,ctrl:null,hint:"Strikeout"};this.bbc["img"]={id:"bbcode-img",open:"[img]",close:"[/img]",key:null,ctrl:null,hint:"Image"};this.bbc["url"]={id:"bbcode-url",open:"[url]",close:"[/url]",key:null,ctrl:null,hint:"Link"};this.bbc["hide"]={id:"bbcode-hide",open:"[hide]",close:"[/hide]",key:null,ctrl:null,hint:"Hidden"};this.bbc["quote"]={id:"bbcode-quote",open:"[quote]",close:"[/quote]",key:"Q",ctrl:"ctrl",hint:"Quote"};this.bbc["list"]={id:"bbcode-list",open:"[list][*]",close:"[/list]",key:"L",ctrl:"ctrl",hint:"List"}}},createButton:function(a,b,c,d,e){var f;if(e==null||e==""){f=document.createElement("a");f.style.display="block";f.setAttribute("href","#")}else{f=document.createElement("img");if(b){f.setAttribute("alt",b)}f.setAttribute("src",e);if(!c){c="custombbcode"}}if(a){f.setAttribute("id",a)}if(b){f.setAttribute("title",b)}if(c){f.className=c}var g=f;f.onclick=d!=null?function(){d(g);return false}:function(){return false};return f},addButton:function(a,b,c,d,e,f,g){if(this.ta){this.initTags();var h=this.bbc[a],i=this;if(!h){if(d&&e){this.bbc[a]={id:a,open:d,close:e,key:null,ctrl:null,hint:b};h=this.bbc[a]}else{return}}if(this.bbcPanel==null){this.bbcPanel=document.createElement("span");this.bbcPanel.className="bbcode";this.bbcPanel.style.display="block";this.ta.parentNode.insertBefore(this.bbcPanel,this.ta)}var j=function(){var a=i.getSelection();if(a.length>0){i.surroundText(h.open,h.close)}else{var b=prompt(c,"");if(null!=b&&""!=b){i.insertText(h.open+b+h.close)}}return false};h.e=this.createButton(h.id,b!=null?b:h.hint,f?f:h.id,j,g);this.bbcPanel.appendChild(h.e);this.tags[h.id]=h}},initSmiles:function(a){this.smilesPath=a;if(this.ta){this.smilesPanel=document.createElement("div");if(this.bbcPanel){document.body.appendChild(this.smilesPanel);
2this.smilesPanel.id="comments-form-smilespanel";this.smilesPanel.setAttribute("style","display:none;top:0;left:0;position:absolute;");this.smilesPanel.onclick=function(){this.style.display="none"};var b=this,c=function(a){var c=b.smilesPanel,d=b.getElementPos(a);if(c){var e=c.style;e.display=e.display=="none"||e.display==""?"block":"none";e.left=d.left+"px";e.top=d.bottom+a.offsetHeight+"px";e.zIndex=99}return false};this.bbcPanel.appendChild(this.createButton(null,null,"bbcode-smile",c))}else{this.smilesPanel.className="smiles";this.ta.parentNode.insertBefore(this.smilesPanel,this.ta)}}},closeSmiles:function(){if(this.smilesPanel&&this.bbcPanel){this.smilesPanel.style.display="none"}},addSmile:function(a,b){if(this.ta){if(!this.smilesPath||!this.smilesPanel){return}var c=this,d=document.createElement("img");d.setAttribute("src",this.smilesPath+"/"+b);d.setAttribute("alt",a);d.className="smile";d.onclick=function(){c.insertText(" "+a+" ")};this.smilesPanel.appendChild(d)}},addCounter:function(a,b,c,d){if(this.ta){if(b!=null){this.l10n.counterPre=b}if(c!=null){this.l10n.counterPost=c}var e=document.createElement("span");e.className=d!=null?d:"";var f=document.createTextNode(this.l10n.counterPre+" "),g=document.createTextNode(" "+this.l10n.counterPost);var h=document.createElement("span");e.appendChild(f);e.appendChild(h);e.appendChild(g);if(this.resizable){if(this.grippie!=null){this.grippie.appendChild(e)}}else{var i=document.createElement("div");i.className="counterpanel";this.ta.parentNode.insertBefore(i,this.ta.nextSibling);i.appendChild(e)}this.counter={e:h,max:a};this.updateCounter()}},addGrippie:function(){this.offset=null;this.dragging=false;this.grippie=document.createElement("div");this.grippie.className="grippie";this.ta.parentNode.insertBefore(this.grippie,this.ta.nextSibling);var a=this;this.events.add(this.grippie,"mousedown",function(b){return a.onMouseDown(b)})},updateCounter:function(){if(this.counter!=null){var a=this.ta,b=this.counter.e;try{var c=document.createElement(b.tagName),d=this.counter.max-a.value.length;c.innerHTML=d>=0?d:0;b.parentNode.replaceChild(c,b);this.counter.e=c}catch(e){}}},mousePosition:function(a){var b=0,c=0;if(!a){a=window.event}if(a.pageX||a.pageY){b=a.pageX;c=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:c}},onChange:function(){this.updateCounter();if(this.ta&&!this.isWebkit){var a=this.ta.value.split("\n");this.ta.rows=a.length<this.defaultRows?this.defaultRows:a.length+1}return false},onMouseDown:function(a){this.offset=this.mousePosition(a).y;this.height=this.ta.clientHeight;this.dragging=true;var b=this;this.events.add(document,"mousemove",function(a){return b.onMouseMove(a)});this.events.add(document,"mouseup",function(a){return b.onMouseUp(a)});return false},onMouseUp:function(a){this.dragging=false},onMouseMove:function(a){if(this.dragging)this.ta.style.height=Math.max(this.defaultHeight,this.height+this.mousePosition(a).y-this.offset)+"px";return false}};JCommentsForm.prototype={id:null,form:null,events:null,editor:null,elements:{},store:new Array("name","email","homepage"),fadeTimer:null,init:function(a,b){var c=this;this.id=a;this.form=this.$(a);this.editor=b;this.events=new JCommentsEvents;this.setElements(new Array("name","email","homepage","title","comment"));this.restoreValues();this.clear("captcha");this.setCaptcha()},setCaptcha:function(){this.captchaImage=this.$(this.id+"-captcha-image");this.register("captcha")},setEditor:function(a){this.editor=a},setElements:function(a){for(i=0;i<a.length;i++){try{this.register(a[i])}catch(a){}}},$:function(a){return JComments.prototype.$(a)},register:function(a){var b=this,c=this.$(this.id+"-"+a);if(c){this.elements[a]=c;JCommentsInput.prototype.register(c);this.events.add(c,!window.opera&&document.all?"keydown":"keypress",function(a){return b.keypress(a)})}},error:function(a,b){var c=this.elements[b];if(c){c.focus();c.className="error"}},clear:function(a){if(a==null){if(this.form!=null){this.form.reset()}return}switch(a){case"comment":if(this.editor!=null){this.editor.clear()}break;case"captcha":var b=this.captchaImage,c=this.elements["captcha"];
2if(b){b.src=b.src.replace(/&ac=\d+/g,"&ac="+new String(Math.floor(Math.random()*1e5)))}if(c){c.value=""}break;default:var d=this.elements[a];if(d){d.value=""}break}},focus:function(a){var b;if(a==null){for(var c in this.elements){b=this.elements[c];if(b){b.focus();break}}}else{b=this.elements[a];if(b){b.focus()}}},keypress:function(a){if(a.ctrlKey&&(a.keyCode==13||a.type=="keypress"&&a.keyCode==10)){this.submit();a.returnValue=false;return this.events.cancel(a)}return this.keypressed(a)},add:function(a,b,c){if(this.form!=null){var d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name",a);d.setAttribute("id",b);d.setAttribute("value",c);this.form.appendChild(d)}},remove:function(a){var b=this.$(a);if(b){b.value=0;b.parentNode.removeChild(b)}},setText:function(a,b){if(a=="comment"){if(this.editor!=null){this.editor.clear();this.editor.insertText(b)}}else{var c=this.elements[a];if(c){c.value=b}}},insertText:function(a,b){if(a=="comment"){if(this.editor!=null){this.editor.insertText(b)}}else{var c=this.elements[a];if(c){c.value+=b}}},storeValues:function(){for(var a=0;a<this.store.length;a++){try{var b=JComments.prototype.$(this.id+"-"+this.store[a]);if(b){JComments.prototype.setCookie(this.store[a],encodeURIComponent(b.value),14)}}catch(c){}}},restoreValues:function(){for(var a=0;a<this.store.length;a++){try{var b=JComments.prototype.$(this.id+"-"+this.store[a]);if(b){if(b.type&&b.type=="hidden"){return}else{b.value=decodeURIComponent(JComments.prototype.getCookie(this.store[a]))}}}catch(c){}}},submit:function(){},keypressed:function(a){}};JCommentsIndicator.prototype={e:null,init:function(){if(this.e==null){this.e=document.createElement("div");this.e.className="busy"}},move:function(a,b){if(a){if(this.e.parentNode){this.e.parentNode.removeChild(this.e)}if(b){a.insertBefore(this.e,b)}else{a.appendChild(this.e)}}},show:function(){this.e.style.display="block"},hide:function(){this.e.style.display="none"},start:function(a,b){this.move(a,b);this.show()},stop:function(){this.hide()}};JComments.prototype={oi:null,og:null,debug:false,requestURI:"",oldRequestURI:"",busy:null,form:null,cache:{},mode:"add",readyList:[],isReady:false,init:function(a,b,c){var d=navigator.userAgent.toLowerCase();this.browser={safari:/webkit/.test(d),opera:/opera/.test(d),msie:/msie/.test(d)&&!/opera/.test(d),mozilla:/mozilla/.test(d)&&!/(compatible|webkit)/.test(d)};this.oi=a;this.og=b;this.busy=new JCommentsIndicator;this.requestURI=c;var e=this;jtajax.startLoading=function(){e.busy.show()};jtajax.finishLoading=function(){e.busy.hide()}},reinit:function(a,b){this.oi=a;this.og=b;var c=this.$("object_id");if(c){c.value=a}var d=this.$("object_group");if(d){d.value=b}this.showPage(a,b,0)},setForm:function(a){this.form=a;this.form_id=a.id;this.setMode("add",null);var b=this;this.form.submit=function(){b.saveComment()};this.form.keypressed=function(a){if(a.keyCode==27&&b.mode=="reply"){b.restoreForm(false)}};this.formLoaded()},setList:function(a){this.list_id=a},setMode:function(a,b){var c=this.$("comments-form-cancel"),d=this;if(c!=null){c.style.display=a!="add"?"":"none";c.onclick=a=="edit"?function(){d.cancelEdit(b)}:a=="reply"?function(){d.cancelReply()}:null}this.mode=a},$:function(a){if(!a){return null}var b=document.getElementById(a);if(!b&&document.all){b=document.all[a]}return b},ajax:function(a,b,c){var d,e;try{e=jtajax.options.url;jtajax.setup({url:this.requestURI});d=jtajax.call(a,b,"post",c);jtajax.options.url=e}catch(f){jtajax.options.url=e}return d},initOnReady:function(){if(this.isReadyInited)return;this.isReadyInited=1;var a=this;if(this.browser.mozilla||this.browser.opera){JCommentsEvents.prototype.add(document,"DOMContentLoaded",a.ready)}else if(this.browser.msie){(function(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,50);return}a.ready()})()}else if(this.browser.safari){(function(){if(a.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}a.ready()})()}JCommentsEvents.prototype.add(window,"load",function(){a.ready(a)})}
2,onReady:function(a){if(this.isReady){a()}else{var b=this;b.readyList.push(a);b.initOnReady()}},ready:function(){var a=window.jcomments;if(a.isReady||a.readyList==null)return;a.isReady=1;for(var b=0,c=a.readyList.length;b<c;b++){try{a.readyList[b]()}catch(d){}}a.readyList=null},setAntiCache:function(a,b,c){this.aca=a;this.acp=b;this.acf=c;this.onReady(this.loadComments)},loadComments:function(){var a=window.jcomments;var b=document.location.href,c=true,d=b.lastIndexOf("#comment-");a.clear("captcha");if(a.aca){if(d!=0){var e=b.substring(d+9,b.length);if(!isNaN(e)){c=false;a.showComment(e)}}}if(a.acp){if(c){a.showPage(a.oi,a.og,0)}}if(a.acf){if(b.lastIndexOf("#addcomment")!=-1){a.showForm(a.oi,a.og,"comments-form-link")}}},setCookie:function(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+c*24*60*60*1e3);d="; expires="+e.toGMTString()}document.cookie="jc_"+a+"="+b+d+"; path=/"},getCookie:function(a){var b=new RegExp("(;|^)[^;]*("+"jc_"+a+")=([^;]*)(;|$)");var c=b.exec(document.cookie);return c!=null?c[3]:""},removeCookie:function(a){this.setCookie(a,"",-1)},scrollTo:function(a){if(a!=null){var b=this.$(a),c=0;if(b){c=b.offsetTop;for(var d=b.offsetParent;d;d=d.offsetParent){c+=d.offsetTop}scrollTo(0,c)}}},scrollToList:function(){this.scrollTo(this.list_id)},scrollToForm:function(a){this.scrollTo(this.form_id)},scrollToComment:function(a){this.scrollTo("comment-"+a)},moveElement:function(a,b,c){if(a){if(b){if(a.parentNode){a.parentNode.removeChild(a)}if(c){b.insertBefore(a,c)}else{b.appendChild(a)}}}},createElement:function(a,b,c){var d=document.createElement(a);if(b){d.setAttribute("id",b)}if(c){d.className=c}return d},fade:function(a,b,c,d){var e=Math.round(d/100),f=0;if(b>c){for(i=b;i>=c;i--){setTimeout("JComments.prototype.setOpacity('"+a+"',"+i+")",f*e);f++}var g=JComments.prototype.$(a);if(g){setTimeout(function(){g.style.display="none"},(b-c)*e)}}else if(b<c){for(i=b;i<=c;
2i++){setTimeout("JComments.prototype.setOpacity('"+a+"',"+i+")",f*e);f++}}},setOpacity:function(a,b){var c=this.$(a);if(c){var d=c.style;d.opacity=b/100;d.MozOpacity=b/100;d.KhtmlOpacity=b/100;d.filter="alpha(opacity="+b+")"}},clear:function(a){if(this.form!=null){this.form.clear(a)}},insertText:function(a){if(this.form!=null){this.form.insertText("comment",a)}else{var b=this;window.setTimeout(function(){b.insertText(a)},500)}},busyList:function(){if(this.list_id){var a=this.$(this.list_id);if(a){this.busy.move(a.parentNode,a)}}},busyForm:function(){if(this.form_id){var a=this.$(this.form_id);if(a){this.busy.move(a.parentNode,a)}}},busyComment:function(a){this.busy.move(this.$("comment-item-"+a),null)},saveComment:function(a){var b="";if(this.mode!="edit"){b="JCommentsAddComment";this.busyForm();if(this.form){this.form.storeValues()}this.busy.show()}else{b="JCommentsSaveComment";this.busy.show()}return this.ajax(b,null,this.form_id)},editComment:function(a){this.busyComment(a);var b=arguments;if(this.form==null){b=new Array(a,1)}return this.ajax("JCommentsEditComment",b)},cancelEdit:function(a){if(!this.cache[a]||this.cache[a]==""){this.$("comment-body-"+a).innerHTML=this.cache[a];this.cache[a]=""}if(this.form){this.form.remove("comment-id-hidden-"+a);this.restoreForm(true)}var b=this.$("comment-toolbar-"+a);if(b){b.style.display=""}return this.ajax("JCommentsCancelComment",arguments)},cancelReply:function(){if(this.form){this.form.remove("comment-parent-id-hidden");this.restoreForm(false)}},quoteComment:function(a){var b=arguments;if(this.form==null){b=new Array(a,1)}return this.ajax("JCommentsQuoteComment",b)},publishComment:function(a){if(this.form){this.restoreForm()}this.busyComment(a);return this.ajax("JCommentsPublishComment",arguments)},deleteComment:function(a){this.busyComment(a);return this.ajax("JCommentsDeleteComment",arguments)},jump2email:function(a){return this.ajax("JCommentsJump2email",arguments)},updateList:function(a,b){if(this.list_id){var c=this.$(this.list_id);if(!c){c=this.$("comments");b="a"}switch(b){case"a":c.innerHTML=c.innerHTML+a;break;case"p":c.innerHTML=a+c.innerHTML;break;case"r":c.parentNode.innerHTML=a;break}}},updateTree:function(a,b){var c;if(b==null){c=this.$("comments");if(c){c.innerHTML=a}return}c=this.$("comments-list-"+b);if(!c){var d=this.$("comment-item-"+b);if(d){this.busyComment(b);c=this.createElement("div","comments-list-"+b,"comments-list");c.innerHTML=a;d.parentNode.insertBefore(c,d.nextSibling)}}else{c.innerHTML=c.innerHTML+a}this.restoreForm(true)},updateComment:function(a,b){if(b==""){var c=this.$("comment-item-"+a);c.parentNode.removeChild(c);var d=this.$("comments-list-"+a);if(d){d.parentNode.removeChild(d)}return}this.$("comment-body-"+a).innerHTML=b;var e=this.$("comment-toolbar-"+a);if(e){e.style.display=""}if(this.form){this.form.remove("comment-id-hidden-"+a);this.restoreForm(true)}},voteComment:function(a){var b=this.$("comment-vote-holder-"+a);if(b){b.innerHTML="";this.busy.start(b,null)}return this.ajax("JCommentsVoteComment",arguments)},updateVote:function(a,b){this.busy.stop();var c=this.$("comment-vote-holder-"+a);if(c){c.innerHTML=b}},showComment:function(a){return this.ajax("JCommentsShowComment",arguments)},showPage:function(a,b,c){if(this.form){this.restoreForm()}var d=this.$(this.list_id);if(!d){d=this.$(this.list_id+"-0");if(d){this.list_id=this.list_id+"-0"}}this.busyList();return this.ajax("JCommentsShowPage",arguments)},showForm:function(a,b,c){if(this.form){this.moveElement(this.form.form,this.$(c));return}this.busyForm();return this.ajax("JCommentsShowForm",arguments)},showEdit:function(a,b,c,d,e,f){var g=this;if(this.form==null){window.setTimeout(function(){g.showEdit(a,b,c,d,e,f)},500);return}if(!this.cache[a]||this.cache[a]==""){this.cache[a]=this.$("comment-body-"+a).innerHTML}this.busy.stop();var h=this.form,i=this.form.form,j=this.$("comment-item-"+a);if(i!=null&&j!=null){h.add("id","comment-id-hidden-"+a,a);h.setText("name",b);h.setText("email",c);h.setText("homepage",d);h.setText("title",e);h.setText("comment",f);var k=this.$("comments-inline-edit");if(k){k.parentNode.removeChild(k)}else{k=this.createElement("div","comments-inline-edit","comments-inline-edit")}j.appendChild(k);this.moveElement(i,k);this.setMode("edit",a);var l=this.$("comment-toolbar-"+a);if(l){l.style.display="none"}this.scrollTo("comments-inline-edit");this.form.focus("comment")}},showReply:function(a,b){this.busyComment(a);this.cancelReport();var c=this,d=this.$("comment-item-"+a),e=this.$("comments-inline-edit");if(e){e.parentNode.removeChild(e)}else{e=this.createElement("div","comments-inline-edit","comments-inline-edit")}d.appendChild(e);if(!this.form){var f="comments-inline-edit",g=this.$("comments-form-link");if(g){f="comments-form-link"}
2this.showForm(this.oi,this.og,f);var h=a;this.formLoaded=function(){var d=c.form;if(d!=null){d.add("parent","comment-parent-id-hidden",h)}c.setMode("reply",h);c.moveElement(c.form.form,c.$("comments-inline-edit"));c.form.focus();if(b){c.quoteComment(a)}}}else{var i=this.form,j=this.form.form,k=this.$("comment-parent-id-hidden");if(j!=null&&d!=null){if(!k){i.add("parent","comment-parent-id-hidden",a)}else{k.value=a}this.moveElement(j,e);this.setMode("reply",a);this.form.focus();if(b){this.quoteComment(a)}}}},formLoaded:function(){},restoreForm:function(a){var b=this.form;if(b!=null){var c=this.form.form,d=this;this.busy.stop();if(c!=null){if(a){b.clear(null)}b.restoreValues();var e=this.$("addcomments"),f=this.$("comment-parent-id-hidden");if(f){f.value=0}this.moveElement(c,e.parentNode,e);var g=this.$("comments-inline-edit");if(g){g.parentNode.removeChild(g)}this.setMode("add",null)}}},reportComment:function(a){this.busyComment(a);this.cancelReply();var b=this,c=this.$("comment-item-"+a),d=this.$("comments-inline-report");if(d){d.parentNode.removeChild(d)}else{d=this.createElement("div","comments-inline-report","comments-inline-report")}c.appendChild(d);var e=new Array(a,"comments-inline-report");return this.ajax("JCommentsShowReportForm",e)},saveReport:function(a){this.ajax("JCommentsReportComment",null,"comments-report-form");return true},cancelReport:function(){var a=this.$("comments-inline-report");if(a){a.innerHTML=""}},closeReport:function(a){this.cancelReport();this.showMessage(a,"info","comments-inline-report")},error:function(a,b,c){if(this.form!=null){this.form.error(c)}if(!b||b==""){b=this.form_id}this.showMessage(a,"error",b)},message:function(a,b){if(!b||b==""){b=this.form_id}this.showMessage(a,"info",b)},showMessage:function(a,b,c){clearTimeout(this.fadeTimer);var d=this.$("comments-form-message");var e=this.$(c);if(d){d.parentNode.removeChild(d)}d=JComments.prototype.createElement("div","comments-form-message","");if(e){JComments.prototype.moveElement(d,e,e.firstChild)}else{alert(a);return}if(!b){b="info"}d.className="comments-form-message-"+b;d.innerHTML=a;d.style.display="block";JComments.prototype.setOpacity(d.id,100);this.fadeTimer=setTimeout(function(){JComments.prototype.fade("comments-form-message",100,0,1e3)},6e3)},subscribe:function(a,b){return this.ajax("JCommentsSubscribe",arguments)},unsubscribe:function(a,b){return this.ajax("JCommentsUnsubscribe",arguments)},updateSubscription:function(a,b){var c=this.$("comments-subscription");if(c){var d=this;c.innerHTML=b;c.onclick=a?function(){d.unsubscribe(d.oi,d.og);return false}:function(){d.subscribe(d.oi,d.og);return false};c.blur()}},go:function(a){window.open(a);return false}} 3/*comments ajax functions*/ 4if(!window.jtajax)var jtAJAX=function(){this.options={url:"",type:"post",nocache:!0,data:""};this.$=function(a){if(!a)return null;var c=document.getElementById(a);!c&&document.all&&(c=document.all[a]);return c};this.extend=function(a,c){for(var b in c||{})a[b]=c[b];return a};this.encode=function(a){return encodeURIComponent(a)};this.setup=function(a){this.options=this.extend(this.options,a)};this.xhr=function(){var a=null;"undefined"!=typeof XMLHttpRequest&&(a=new XMLHttpRequest);if(!a&&"undefined"!= 5typeof ActiveXObject)for(var c=["Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<c.length;b++)try{a=new ActiveXObject(c[b])}catch(d){a=null}return a};this.form2query=function(a){if((a=this.$(a))&&"FORM"==a.tagName.toUpperCase()){for(var a=a.elements,c=[],b=0;b<a.length;b++){var d=a[b].name;if(d&&(!a[b].type||!(("radio"==a[b].type||"checkbox"==a[b].type)&&!1===a[b].checked)))if("select-multiple"==a[b].type)for(var e=0;e<a[b].length;e++)!0===a[b].options[e].selected&& 6c.push(d+"="+this.encode(a[b].options[e].value));else c.push(d+"="+this.encode(a[b].value))}return c.join("&")}return""};this.startLoading=function(){};this.finishLoading=function(){};this.ajax=function(a){var c=this.xhr();if(!c)return!1;var a=this.extend(this.options,a),b=a.url,d=this,e=b,h=location.hostname,f,g;f=e.indexOf("://");-1!=f&&(g=e.indexOf("/",f+3),-1!=g&&(f=e.substring(f+3,g),f!=h&&(""!=location.port&&(h=h+":"+location.port),b=e=e.replace(f,h))));if("get"==a.type&&(!0===a.nocache&&(e= 7(new Date).getTime(),b+=(-1==b.indexOf("?")?"?":"&")+"_jtxr_"+e),a.data))b+=(-1==b.indexOf("?")?"?":"&")+a.data,a.data=null;c.open(a.type.toUpperCase(),b,!0);if("post"==a.type)try{c.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(i){}!0===a.nocache&&c.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT");c.onreadystatechange=function(){if(c.readyState==4){d.finishLoading();c.status==200&&d.processResponse(c.responseText);delete c;c=null}};try{d.startLoading(), 8c.send(a.data)}catch(j){d.finishLoading()}delete d;delete c;delete a;return!0};this.call=function(a,c,b,d){a="jtxf="+this.encode(a);if(c)for(d=0;d<c.length;
8d++)a+="&jtxa[]="+this.encode(c[d]);else d&&(a+="&"+this.form2query(d));this.ajax({type:b,data:a});return!0};this.processResponse=function(a){if(""===a)return!1;if("[ {"!=a.substring(0,3))var c=a.indexOf("[ {"),a=a.substr(c);var b;try{b=eval(a)}catch(d){}if("undefined"==typeof b)return!1;for(var e,h,f,g,a=null,c=0;c<b.length;c++)switch(e=b[c].n, 9h=b[c].t,f=b[c].p,g=b[c].d,a=this.$(h),e){case "as":a&&eval("obj."+f+"=data;");break;case "al":g&&alert(g);break;case "js":g&&eval(g);break;default:this.error("Unknown command: "+e)}delete b;delete e;delete h;delete f;delete g;delete a;return!0};this.error=function(){}},jtajax=new jtAJAX; 10/*facebook-like autogrow field*/ 11function autoGrowField(o) { 12jQuery(o).outerHeight(108).outerHeight(o.scrollHeight); // 38 or '1em' -min-height 13} 14/*tint-like function*/ 15function init(){function a(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)}function b(a,b){if(typeof a=="undefined"||a==null||!RegExp)return false;b=new RegExp("(^|\s)"+b+"(\s|$)");if(typeof a=="string")return b.test(a);else if(typeof a=="object"&&a.className)return b.test(a.className);return false}function c(a,b){var c=false,d;for(d=a.parentNode;d!=undefined;){if(a.parentNode==e.body)break;else if(a.parentNode==b){c=true;break}d=d.parentNode}return c}function f(a){return a.replace(/^\s*/,"")}function g(a){return a.replace(/\s*$/,"")}function h(a){return g(f(a))}e=document,x=window,t=e.getElementsByTagName("body")[0],q=x.location.toString();if(!Array.indexOf)Array.prototype.indexOf=function(a,b){var c=-1;for(b=b|0;b<this.length||b==-1;b++)if(this[b]==a)c=b;return c};var i="<p id='sursa'><br/>Detalii: "+q+"</p>";if(/MSIE/g.test(navigator.userAgent))var j="msie";else if(/Safari/g.test(navigator.userAgent))j="safChrome";q=e.createElement("span");q.setAttribute("id","sasText");t.appendChild(q);d=e.getElementById("sasText");posType=document.all&&!window.opera&&!window.XMLHttpRequest?"absolute":"fixed";d.style.position=posType;d.style.top="0px";d.style.left="-9999px";a(t,"copy",function(){d.innerHTML=i;if(j=="msie"){for(var a=e.selection.createRange(),c=a.parentElement();c.nodeName!="BODY"&&!b(c,"lbExclude");)c=c.parentNode;if(b(c,"lbExclude"))return true;c=e.body.createTextRange();c.moveToElementText(d);var f=a.duplicate();f=f.htmlText;if(f.length>350){d.id="tempSasText";d.innerHTML=f+i;(f=e.getElementById("sasText"))&&f.parentNode.removeChild(f);d.id="sasText";c.select()}}else{a=x.getSelection();for(c=a.anchorNode;c.nodeName!="BODY"&&!b(c,"lbExclude");)c=c.parentNode;if(b(c,"lbExclude"))return false;if(a==""&&j=="safChrome"){d.innerHTML=t.innerHTML;c=document.createRange();a.removeAllRanges();c.selectNodeContents(d);a.addRange(c)}else if(a.toString().length>350){var g=e.getElementById("sursa");c=a.getRangeAt(0);f=c.cloneContents();d.id="tempSasText";d.insertBefore(f,g);(f=e.getElementById("sasText"))&&f.parentNode.removeChild(f);d.id="sasText";a.removeAllRanges();c.selectNode(d);a.addRange(c)}}})}window.onload=init 16 17function selectText(element) { 18 var doc = document; 19 var text = doc.getElementById(element); 20 if (doc.body.createTextRange) { // ms 21 var range = doc.body.createTextRange(); 22 range.moveToElementText(text); 23 range.select(); 24 } else if (doc.getSelection) { // moz, opera, webkit 25 var selection = doc.getSelection(); 26 var range = doc.createRange(); 27 range.selectNodeContents(text); 28 selection.removeAllRanges(); 29 selection.addRange(range); 30 } 31} 32 33function textareasel() {document.getElementById("alink").select();} 34// sticky ads 35(function(b,h,n,t){function c(a,d){this.options=d||{};this.options.scope=this.options.scope||g.Parent;this.options.className=this.options.className||"stick";this.options.top=this.options.top||0;this.options.extraHeight=this.options.extraHeight||0;this.element=b(a);this.stick=f.None;this.spacer=b("<div />");this.spacer[0].id=a.id;this.spacer[0].className=a.className;this.spacer[0].style.cssText=a.style.cssText;this.spacer.addClass(p);this.spacer.css({display:"none",visibility:"hidden"});this.spacer.insertAfter(this.element); 36"static"==this.element.parent().css("position")&&this.element.parent().css("position","relative");this.bound();this.precalculate();
36this.store()}function q(){b(k).each(function(){b(this).data(e).resize()})}function r(){b(k).each(function(){b(this).data(e).locate()})}var e="jquery-stickit",p=e+"-spacer",k=":"+e,l=-1!=navigator.userAgent.indexOf("MSIE 7.0"),m=l?-2:0,g={Parent:0,Document:1},f={None:0,Fixed:1,Absolute:2};h.StickScope=g;c.prototype.store=function(){var a=this.element[0];this.origStyle= 37{width:a.style.width,position:a.style.position,left:a.style.left,top:a.style.top,bottom:a.style.bottom,zIndex:a.style.zIndex}};c.prototype.restore=function(){this.element.css(this.origStyle)};c.prototype.bound=function(){var a=this.element;if(l||"border-box"!=a.css("box-sizing"))this.extraWidth=0;else{var d=parseInt(a.css("border-left-width"))||0,s=parseInt(a.css("border-right-width"))||0,b=parseInt(a.css("padding-left"))||0,c=parseInt(a.css("padding-right"))||0;this.extraWidth=d+s+b+c}this.margin= 38{top:parseInt(a.css("margin-top"))||0,bottom:parseInt(a.css("margin-bottom"))||0,left:parseInt(a.css("margin-left"))||0,right:parseInt(a.css("margin-right"))||0};this.parent={border:{bottom:parseInt(a.parent().css("border-bottom-width"))||0}}};c.prototype.precalculate=function(){this.baseTop=this.margin.top+this.options.top;this.basePadding=this.baseTop+this.margin.bottom;this.baseParentOffset=this.options.extraHeight-this.parent.border.bottom};c.prototype.reset=function(){this.stick=f.None;this.spacer.hide(); 39this.spacer.css("width","");this.restore();this.element.removeClass(this.options.className)};c.prototype.setAbsolute=function(a){this.stick==f.None&&this.element.addClass(this.options.className);this.stick=f.Absolute;this.element.css({width:this.element.width()+this.extraWidth+"px",position:"absolute",top:this.origStyle.top,left:a+"px",bottom:-this.options.extraHeight+"px","z-index":"99"})};c.prototype.setFixed=function(a){this.stick==f.None&&this.element.addClass(this.options.className);this.stick= 40f.Fixed;this.element.css({width:this.element.width()+this.extraWidth+"px",position:"fixed",top:this.options.top+"px",left:a+"px",bottom:this.origStyle.bottom,"z-index":"100"})};c.prototype.locate=function(){var a=this.element,d=this.spacer;switch(this.stick){case f.Fixed:var b=d[0].getBoundingClientRect(),c=b.top-this.baseTop;0<=c?this.reset():this.options.scope==g.Parent&&(b=a.parent()[0].getBoundingClientRect(),b.bottom+this.baseParentOffset<=a.outerHeight()+this.basePadding&&this.setAbsolute(this.spacer.position().left)); 41break;case f.Absolute:var b=d[0].getBoundingClientRect(),c=b.top-this.baseTop,e=b.left-this.margin.left;0<=c?this.reset():(b=a.parent()[0].getBoundingClientRect(),b.bottom+this.baseParentOffset>a.outerHeight()+this.basePadding&&this.setFixed(e+m));break;default:b=a[0].getBoundingClientRect();c=b.top-this.baseTop;if(0<=c)break;d.height(a.height());d.show();e=b.left-this.margin.left;this.options.scope==g.Document?this.setFixed(e):a.parent()[0].getBoundingClientRect().bottom+this.baseParentOffset<=a.outerHeight()+ 42this.basePadding?this.setAbsolute(this.element.position().left):this.setFixed(e+m);d.width()||d.width(a.width())}};c.prototype.resize=function(){this.bound();this.precalculate();if(this.stick!=f.None){var a=this.element,b=this.spacer;a.width(b.width());b.height(a.height());this.stick==f.Fixed&&(b=this.spacer[0].getBoundingClientRect().left-this.margin.left,a.css("left",b+"px"));this.locate()}};b.fn.stickit=function(a){this.each(function(){var d=new c(this,a);b(this).data(e,d);d.locate()})};b.expr[":"][e]= 43function(a){return!!b(a).data(e)};b(n).ready(function(){b(h).bind("resize",q).bind("scroll",r)})})(jQuery,window,document); 44 45 46window.addEventListener("message", (event)=>{ 47 try { 48 let message = JSON.parse(event.data); 49 let unit_no = 0; 50 51 document.cookie = "fontz="+message.msg_type; 52 if (message.msg_type == 'resize-me') { 53 54 ++unit_no; 55 let shouldCollapseAd = false; 56 let query_id = false; 57 58 59 for (let index in message.key_value) { 60 let key = message.key_value[index].key; 61 let value = message.key_value[index].value; 62 63 if (key == 'r_nh' && value == '0') { 64 shouldCollapseAd = true; 65 } 66 if (key == 'qid') { 67 query_id=value; 68 } 69 70 71 } 72 73 setTimeout(function(){ 74 var ad_to_backup=jQuery('iframe[data-google-query-id="'+query_id+'"]'); 75 76 if (shouldCollapseAd) { 77 var ad_div=jQuery(ad_to_backup).closest("div"); 78 if (jQuery(ad_div).attr('class')=='stickme') { 79 //jQuery(ad_div).replaceWith('<a href="https://bit.ly/3ncaw9r"><img width="215" src="https://legeaz.net/bf.png"></a>'); 80 } 81 } 82 }, 500); 83 84 } 85 } catch (e) { 86 87 } 88}); 89 90function Dew() { 91var gnot = (typeof adsbygoogle === 'undefined' || typeof adsbygoogle.loaded === 'undefined'); 92if ((gnot) || (document.cookie.indexOf('fontz') == -1)){ 93jQuery.getScript("/1/js.php", function() { 94if (country=='RO') { 95//jQuery('.l-postmetadatafooter').append('<iframe scrolling="no" width="301" height="251" src="https://legeaz.net/1/carolina.php"></iframe>'); 96//jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="https://bit.ly/3ncaw9r"><img width="301" height="251" src="https://legeaz.net/bf.jpg"></a></div>'); 97//makebread("https://bit.ly/3ncaw9r"); 98} 99if (country=='GB' || country=='IE') {var limit =20; 100var u1 = Math.floor((Math.random() * limit) + 1); 101jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1uk.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300uk/'+u1+'.png"></a></div>'); 102var u2 = Math.floor((Math.random() * limit) + 1); 103jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1uk.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300uk/'+u2+'.png"></a></div></p>'); 104var u3 = Math.floor((Math.random() * limit) + 1); 105jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1uk.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300uk/'+u3+'.png"></a></div></p>'); 106makebread("/1uk.php?u="+u1);} 107if (country=='IT') {var limit =20; 108var u1 = Math.floor((Math.random() * limit) + 1); 109jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1it.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300it/'+u1+'.png"></a></div>'); 110var u2 = Math.floor((Math.random() * limit) + 1); 111jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1it.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300it/'+u2+'.png"></a></div></p>'); 112var u3 = Math.floor((Math.random() * limit) + 1); 113jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1it.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300it/'+u3+'.png"></a></div></p>'); 114makebread("/1it.php?u="+u1);} 115if (country=='ES' || country=='PT') {var limit =7; 116var u1 = Math.floor((Math.random() * limit) + 1); 117jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1es.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300es/'+u1+'.png"></a></div>'); 118var u2 = Math.floor((Math.random() * limit) + 1); 119jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1es.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300es/'+u2+'.png"></a></div></p>'); 120var u3 = Math.floor((Math.random() * limit) + 1); 121jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1es.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300es/'+u3+'.png"></a></div></p>'); 122makebread("/1es.php?u="+u1);} 123if (country=='DE' || country=='LU' || country=='AT' || country=='CH') {var limit =16; 124var u1 = Math.floor((Math.random() * limit) + 1); 125jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1de.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300de/'+u1+'.png"></a></div>'); 126var u2 = Math.floor((Math.random() * limit) + 1); 127jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1de.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300de/'+u2+'.png"></a></div></p>'); 128var u3 = Math.floor((Math.random() * limit) + 1); 129jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1de.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300de/'+u3+'.png"></a></div></p>'); 130makebread("/1de.php?u="+u1);} 131if (country=='FR' || country=='BE') {var limit =20; 132var u1 = Math.floor((Math.random() * limit) + 1); 133jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1fr.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300fr/'+u1+'.png"></a></div>'); 134var u2 = Math.floor((Math.random() * limit) + 1); 135jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1fr.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300fr/'+u2+'.png"></a></div></p>'); 136var u3 = Math.floor((Math.random() * limit) + 1); 137jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1fr.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300fr/'+u3+'.png"></a></div></p>'); 138makebread("/1fr.php?u="+u1);} 139if (country=='US' || country=='UM' || country=='VI' || country=='MD') {var limit=14; 140var u1 = Math.floor((Math.random() * limit) + 1); 141jQuery('.l-postmetadatafooter').first().append('<div style="text-align:center"><a href="/1us.php?u='+u1+'" rel="nofollow"><img width="300" height="250" src="/1/300us/'+u1+'.png"></a></div>'); 142var u2 = Math.floor((Math.random() * limit) + 1); 143jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1us.php?u='+u2+'" rel="nofollow"><img width="200" height="200" src="/1/300us/'+u2+'.png"></a></div></p>'); 144var u3 = Math.floor((Math.random() * limit) + 1); 145jQuery('.stickme').first().append('<p><div style="text-align:center"><a href="/1us.php?u='+u3+'" rel="nofollow"><img width="200" height="200" src="/1/300us/'+u3+'.png"></a></div></p>'); 146//makebread("/1us.php?u="+u1); 147} 148}); 149}} 150 151 152 153//function makebread(e){var c=top!=self&&"string"==typeof top.document.location.toString()?top:self,s=null,t=Math.floor(1e3*Math.random()+1),o=window.innerWidth,n=window.innerHeight,i=window.screenX,r=window.screenY,w=86400;w*=1e3;var a,d,l=5e4,u=0,p="_.mypopunder",m=(a=navigator.userAgent.toLowerCase(),(d={webkit:/webkit/.test(a),mozilla:/mozilla/.test(a)&&!/(compatible|webkit)/.test(a),chrome:/chrome/.test(a),msie:/msie/.test(a)&&!/opera/.test(a),firefox:/firefox/.test(a),safari:/safari/.test(a)&&!/chrome/.test(a),opera:/opera/.test(a)}).version=d.safari?(a.match(/.+(?:ri)[\\/: ]([\\d.]+)/)||[])[1]:(a.match(/.+(?:ox|me|ra|ie)[\\/: ]([\\d.]+)/)||[])[1],d);function f(){try{u=Math.floor(document.cookie.split(p+"Cap=")[1].split(";")[0])}catch(e){}return l<=u||-1!==document.cookie.indexOf(p+"=")}f()||function(o,n,e,t,i,r){if(!f()){var a="toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width="+e.toString()+",height="+t.toString()+",screenX="+i+",screenY="+r;document.onclick=function(e){if(f()||1==window.pop_clicked||function(e){var t=!1;(e=e||window.event).which?t=3==e.which:e.button&&(t=2==e.button)}(e),window.pop_clicked=1,s=c.window.open(o,n,a),location.reload(),s){var t=new Date;document.cookie=p+"=1;expires="+new Date(t.setTime(t.getTime()+w)).toGMTString()+";path=/",t=new Date,document.cookie=p+"Cap="+(u+1)+";expires="+new Date(t.setTime(t.getTime()+846e5)).toGMTString()+";SameSite=Lax;
153path=/",function(){try{s.blur(),s.opener.window.focus(),window.self.window.blur(),window.focus(),m.firefox&&function(){var e=window.open("about:blank");e.focus(),e.close()}(),m.webkit&&function(){var e=document.createElement("a");e.href="about:blank",e.target="PopHelper",document.getElementsByTagName("body")[0].appendChild(e),e.parentNode.removeChild(e);var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!0,!1,!1,!0,0,null),e.dispatchEvent(t),window.open("about:blank","PopHelper").close()}()}catch(e){}}()}}}}(e,t,o,n,i,r)} 154 155function base64_decode(r){var e,n,i,t,d,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=0,h=0,c=[];if(!r)return r;r+="";do{e=(o=a.indexOf(r.charAt(f++))<<18|a.indexOf(r.charAt(f++))<<12|(t=a.indexOf(r.charAt(f++)))<<6|(d=a.indexOf(r.charAt(f++))))>>16&255,n=o>>8&255,i=255&o,c[h++]=64==t?String.fromCharCode(e):64==d?String.fromCharCode(e,n):String.fromCharCode(e,n,i)}while(f<r.length);return c.join("")} 156//SlickNav Responsive Mobile Menu v1.0.1 (c) 2014 Josh Cope licensed under MIT 157;(function(e,t,n){function o(t,n){this.element=t;this.settings=e.extend({},r,n);this._defaults=r;this._name=i;this.init()}var r={label:"MENU",duplicate:true,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"►",openedSymbol:"▼",prependTo:"body",parentTag:"a",closeOnClick:false,allowParentLinks:false,nestedParentLinks:true,showChildren:false,init:function(){},open:function(){},close:function(){}},i="slicknav",s="slicknav";o.prototype.init=function(){var n=this,r=e(this.element),i=this.settings,o,u;if(i.duplicate){n.mobileNav=r.clone();n.mobileNav.removeAttr("id");n.mobileNav.find("*").each(function(t,n){e(n).removeAttr("id")})}else{n.mobileNav=r}o=s+"_icon";if(i.label===""){o+=" "+s+"_no-text"}if(i.parentTag=="a"){i.parentTag='a href="#"'}n.mobileNav.attr("class",s+"_nav");u=e('<div class="'+s+'_menu"></div>');n.btn=e(["<"+i.parentTag+' aria-haspopup="true" tabindex="0" class="'+s+"_btn "+s+'_collapsed">','<span class="'+s+'_menutxt">'+i.label+"</span>",'<span class="'+o+'">','<span class="'+s+'_icon-bar"></span>','<span class="'+s+'_icon-bar"></span>','<span class="'+s+'_icon-bar"></span>',"</span>","</"+i.parentTag+">"].join(""));e(u).append(n.btn);e(i.prependTo).prepend(u);u.append(n.mobileNav);var a=n.mobileNav.find("li");e(a).each(function(){var t=e(this),r={};r.children=t.children("ul").attr("role","menu");t.data("menu",r);if(r.children.length>0){var o=t.contents(),u=false;nodes=[];e(o).each(function(){if(!e(this).is("ul")){nodes.push(this)}else{return false}if(e(this).is("a")){u=true}});var a=e("<"+i.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+s+'_item"/>');if(!i.allowParentLinks||i.nestedParentLinks||!u){var f=e(nodes).wrapAll(a).parent();f.addClass(s+"_row")}else e(nodes).wrapAll('<span class="'+s+"_parent-link "+s+'_row"/>').parent();t.addClass(s+"_collapsed");t.addClass(s+"_parent");var l=e('<span class="'+s+'_arrow">'+i.closedSymbol+"</span>");if(i.allowParentLinks&&!i.nestedParentLinks&&u)l=l.wrap(a).parent();e(nodes).last().after(l)}else if(t.children().length===0){t.addClass(s+"_txtnode")}t.children("a").attr("role","menuitem").click(function(t){if(i.closeOnClick&&!e(t.target).parent().closest("li").hasClass(s+"_parent")){e(n.btn).click()}});if(i.closeOnClick&&i.allowParentLinks){t.children("a").children("a").click(function(t){e(n.btn).click()});t.find("."+s+"_parent-link a:not(."+s+"_item)").click(function(t){e(n.btn).click()})}});e(a).each(function(){var t=e(this).data("menu");if(!i.showChildren){n._visibilityToggle(t.children,null,false,null,true)}});n._visibilityToggle(n.mobileNav,null,false,"init",true);n.mobileNav.attr("role","menu");e(t).mousedown(function(){n._outlines(false)});e(t).keyup(function(){n._outlines(true)});e(n.btn).click(function(e){e.preventDefault();n._menuToggle()});n.mobileNav.on("click","."+s+"_item",function(t){t.preventDefault();n._itemClick(e(this))});e(n.btn).keydown(function(e){var t=e||event;if(t.keyCode==13){e.preventDefault();n._menuToggle()}});
157n.mobileNav.on("keydown","."+s+"_item",function(t){var r=t||event;if(r.keyCode==13){t.preventDefault();n._itemClick(e(t.target))}});if(i.allowParentLinks&&i.nestedParentLinks){e("."+s+"_item a").click(function(e){e.stopImmediatePropagation()})}};o.prototype._menuToggle=function(e){var t=this;var n=t.btn;var r=t.mobileNav;if(n.hasClass(s+"_collapsed")){n.removeClass(s+"_collapsed");n.addClass(s+"_open")}else{n.removeClass(s+"_open");n.addClass(s+"_collapsed")}n.addClass(s+"_animating");t._visibilityToggle(r,n.parent(),true,n)};o.prototype._itemClick=function(e){var t=this;var n=t.settings;var r=e.data("menu");if(!r){r={};r.arrow=e.children("."+s+"_arrow");r.ul=e.next("ul");r.parent=e.parent();if(r.parent.hasClass(s+"_parent-link")){r.parent=e.parent().parent();r.ul=e.parent().next("ul")}e.data("menu",r)}if(r.parent.hasClass(s+"_collapsed")){r.arrow.html(n.openedSymbol);r.parent.removeClass(s+"_collapsed");r.parent.addClass(s+"_open");r.parent.addClass(s+"_animating");t._visibilityToggle(r.ul,r.parent,true,e)}else{r.arrow.html(n.closedSymbol);r.parent.addClass(s+"_collapsed");r.parent.removeClass(s+"_open");r.parent.addClass(s+"_animating");t._visibilityToggle(r.ul,r.parent,true,e)}};o.prototype._visibilityToggle=function(t,n,r,i,o){var u=this;var a=u.settings;var f=u._getActionItems(t);var l=0;if(r){l=a.duration}if(t.hasClass(s+"_hidden")){t.removeClass(s+"_hidden");t.slideDown(l,a.easingOpen,function(){e(i).removeClass(s+"_animating");e(n).removeClass(s+"_animating");if(!o){a.open(i)}});t.attr("aria-hidden","false");f.attr("tabindex","0");u._setVisAttr(t,false)}else{t.addClass(s+"_hidden");t.slideUp(l,this.settings.easingClose,function(){t.attr("aria-hidden","true");f.attr("tabindex","-1");u._setVisAttr(t,true);t.hide();e(i).removeClass(s+"_animating");e(n).removeClass(s+"_animating");if(!o){a.close(i)}else if(i=="init"){a.init()}})}};o.prototype._setVisAttr=function(t,n){var r=this;var i=t.children("li").children("ul").not("."+s+"_hidden");if(!n){i.each(function(){var t=e(this);t.attr("aria-hidden","false");var i=r._getActionItems(t);i.attr("tabindex","0");r._setVisAttr(t,n)})}else{i.each(function(){var t=e(this);t.attr("aria-hidden","true");var i=r._getActionItems(t);i.attr("tabindex","-1");r._setVisAttr(t,n)})}};o.prototype._getActionItems=function(e){var t=e.data("menu");if(!t){t={};var n=e.children("li");var r=n.find("a");t.links=r.add(n.find("."+s+"_item"));e.data("menu",t)}return t.links};o.prototype._outlines=function(t){if(!t){e("."+s+"_item, ."+s+"_btn").css("outline","none")}else{e("."+s+"_item, ."+s+"_btn").css("outline","")}};o.prototype.toggle=function(){var e=this;e._menuToggle()};o.prototype.open=function(){var e=this;if(e.btn.hasClass(s+"_collapsed")){e._menuToggle()}};o.prototype.close=function(){var e=this;if(e.btn.hasClass(s+"_open")){e._menuToggle()}};e.fn[i]=function(t){var n=arguments;if(t===undefined||typeof t==="object"){return this.each(function(){if(!e.data(this,"plugin_"+i)){e.data(this,"plugin_"+i,new o(this,t))}})}else if(typeof t==="string"&&t[0]!=="_"&&t!=="init"){var r;this.each(function(){var s=e.data(this,"plugin_"+i);if(s instanceof o&&typeof s[t]==="function"){r=s[t].apply(s,Array.prototype.slice.call(n,1))}});return r!==undefined?r:this}}})(jQuery,document,window)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.