MediaWiki:Common.js: Różnice pomiędzy wersjami

Z Wiki The-West PL
Przejdź do nawigacji
mNie podano opisu zmian
mNie podano opisu zmian
 
(Nie pokazano 27 pośrednich wersji utworzonych przez tego samego użytkownika)
Linia 27: Linia 27:
});
});
});
});
function switchW(W1,W2){
var gW1 = document.getElementById(W1);
var gW2 = document.getElementById(W2);
if(gW2.style.display=='block' ){
document.getElementById(W2).style.display = "none";
document.getElementById(W1).style.display = "block";
} else {
document.getElementById(W2).style.display = "block";
document.getElementById(W1).style.display = "none";
}
}


$("<div id='ZP_wynik'></div>").appendTo("#fancy-header");  
$("<div id='ZP_wynik'></div>").appendTo("#fancy-header");  
Linia 56: Linia 69:
         if(this.value==''){
         if(this.value==''){
             $('.popup_inform').show();
             $('.popup_inform').show();
            //zadania
            $('.BoxLiniaZadan').show();
         } else {
         } else {
             $('.popup_inform').hide();
             $('.popup_inform').hide();
             $('.popup_inform:containsCI("'+this.value+'")').show();
             $('.popup_inform:containsCI("'+this.value+'")').show();
            //zadania
            $('.BoxLiniaZadan').hide();
            $('.BoxLiniaZadan:containsCI("'+this.value+'")').show();
         }
         }
     }).appendTo($("#wyszukiwarka"));
     }).appendTo($("#wyszukiwarka"));
Linia 180: Linia 198:


});
});
if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'user' ) === -1 ) {
document.getElementById("p-personal").remove();
document.getElementById("p-tb").remove();
}
window.onload = function what(){
var getPageName = document.getElementById('ca-nstab-main');
if(getPageName.className == "selected"){
getPageName.innerHTML += '<img src="https://dziennikthewest.pl/ws.png">';
}
}


/*
/*

Aktualna wersja na dzień 18:33, 22 sty 2020

/* Umieszczony tutaj kod JavaScript zostanie załadowany przez każdego użytkownika, podczas każdego ładowania strony. */

/*Preto - ładowanie szablonów ajaxem*/
$(function(){
	$('.pokazSzablon').click(function(){
		var id = this.id;
		if (document.getElementById('wynik'+id).style.display == "none") {
			$.ajax({
				beforeSend:function(){
					$("#"+id+" #ladowanie").css('display', 'inline-block');		
				},
				url: 'https://wiki.the-west.pl/wiki/Szablon:'+id,
				type:'GET',
				data:'action=render',
				success:function(data){
					$("#"+id+" #ladowanie").css('display', 'none');		
					$('#wynik'+id).html(data);
				}
			});
			document.getElementById('wynik'+id).style.display = 'block';
			document.getElementById('wynik'+id).style.visibility = 'block';
		}else{
			document.getElementById('wynik'+id).style.display = 'none';
			document.getElementById('wynik'+id).style.visibility = 'none';
		}
		return false;
	});
});

	function switchW(W1,W2){
		var gW1 = document.getElementById(W1);
		var gW2 = document.getElementById(W2);
		if(gW2.style.display=='block' ){
			document.getElementById(W2).style.display = "none";
			document.getElementById(W1).style.display = "block";
		} else {
			document.getElementById(W2).style.display = "block";
			document.getElementById(W1).style.display = "none";
		}
	}


$("<div id='ZP_wynik'></div>").appendTo("#fancy-header"); 
if ($("#szukajPrzedmiot").length==1){
    var szukajPrzedmiot=$('<input type="text" class="ZP_Input" placeholder="Podaj ID lub nazwę" >').bind("propertychange keyup input paste", function (){
        if(this.value.length >= 2){
			
			$.ajax({
				url: 'https://w.dziennikthewest.pl/t2.php',
				type:'GET',
				data:'z='+this.value,
				success:function(data){
					$('#ZP_wynik').html(data); 
				}
			});
		}
    }).appendTo($("#szukajPrzedmiot"));
}

//Wyszukiwarka
if ($("#wyszukiwarka").length==1){
    //Add :containsCI selector (contains case insensitive)
    $.extend($.expr[":"], {
        "containsCI": function(elem, i, match, array) {
            return (elem.textContent || elem.innerText || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
        }
    });
    var wyszukiwarka=$('<input type="text" class="searchBox">').bind("propertychange keyup input paste", function (){
        if(this.value==''){
            $('.popup_inform').show();
            //zadania
             $('.BoxLiniaZadan').show();
        } else {
            $('.popup_inform').hide();
            $('.popup_inform:containsCI("'+this.value+'")').show();
            //zadania
            $('.BoxLiniaZadan').hide();
            $('.BoxLiniaZadan:containsCI("'+this.value+'")').show();
        }
    }).appendTo($("#wyszukiwarka"));
}

$(function(){
	$('.pokazZadanie').click(function(){
		var id = this.id;
		var tTytulZadanie = document.getElementById(this.id);
		var tZadanie = document.getElementById("q"+this.id);
		document.getElementById("boxZadanie").innerHTML = tZadanie.innerHTML;
		document.getElementById("qt_text").innerHTML = tTytulZadanie.innerHTML;

		$('.pokazText').mouseenter(function() {
			var idT=$(this).attr('id');
			var tPodZak = document.getElementById("s_"+idT);
			document.getElementById("sPodZak").innerHTML = tPodZak.innerHTML;
			$('#sPodZak').fadeIn(100);      
		});
		$('.pokazText').mouseleave(function() {
			$('#sPodZak').fadeOut(100);   
		});
		$('.pokazUkryte').click(function() {
			   
$("#HID_"+id).css('display', 'block');	
			document.getElementById("boxZadanie").innerHTML = tZadanie.innerHTML;
		});
	});
});

$.each($('.LEData'), function (index, value) { 
	var id = this.id;
	var argC = document.getElementById(id).className.replace(/ /gi,'_');
	var is = id.includes("is_"); 
	var set = id.includes("setID_");
	var opis = $(".opis", this).html();

	if(is===true){var what = 'is='+id+'&arg='+argC;} else if (set===true){var what = 'set='+id+'&arg='+argC;} else {var what = 'id='+id+'&arg='+argC;}
	$.ajax({
		beforeSend:function(){
			$("#"+id+" #ladowanie").css('display', 'inline-block');		
		},
		url: 'https://w.dziennikthewest.pl/index.php',
		type:'POST',
		data:what,
		success:function(data){
			$("#"+id+" #ladowanie").css('display', 'none');
			data = data.replace("TU_OPIS",opis);
			$('#'+id).html(data);
		}
	});
});

/*Preto koniec*/

function hideLogo(){
// $('#p-logo a').css('background-image','none');
// $('#p-logo').css('background-image','none');
}
jQuery(document).ready( hideLogo );
mw.loader.using('jquery.ui.accordion', function() {
 jQuery(document).ready(function ($) {
  $("#accordion").tabs();
 });
});

mw.loader.using('jquery.ui.tabs', function() {
 jQuery(document).ready(function ($) {
  $("#tabs").tabs();
 });
});

var nr_intrebari = 4;
var anunt_list
var nr_anunturi
var anunt_curent
var anunt_timer, hint_timer;

function ch_hints() {
   var hint_nr=Math.round(Math.random()*nr_intrebari);
   $("#west_pl_hints").slideUp("slow");
   $.get("/index.php",{title:"Szablon:Porady ",action:"raw",section:hint_nr}, function(response,succes) {
      if (succes) {
      resp= "__NOEDITSECTION__" + response
      $.get("/api.php",{action:"parse",text:resp,format:"xml"},function(xresp,succ) {
          if (succ) {
              $("#west_pl_hints").html(xresp.getElementsByTagName("text")[0].childNodes[0].nodeValue);
          }
      },"xml");
      };
},"html");
   $("#west_pl_hints").slideDown("slow");
}

function ch_anunt() {
        $(anunt_list[anunt_curent]).fadeOut("normal",function() {
             anunt_curent++;
             if (anunt_curent >= nr_anunturi) {
                 anunt_curent=0;
             }
             $(anunt_list[anunt_curent]).fadeIn();
        });
}

$(document).ready(function() {

   if ((wgAction != "edit") && (wgCanonicalNamespace != "Special") && (wgCanonicalNamespace != "Template") && (wgCanonicalNamespace != "Help") && (wgCanonicalNamespace != "Project") && (wgCanonicalNamespace != "File") && (wgTitle != "Global.js") && (wgTitle != "Szablon:Porady") ) {
$("#content").before("<div style='clear:both'></div><div id='west_pl_hints_container' style='padding: 10px 15px; background: url(&quot;/skins/thewest/images/content/contentBg.png&quot;) repeat scroll 0% 0% transparent; width: 610px; min-height:100px; text-align: center;'><a title='Zamknij' href='#' id='west_pl_close_hints'><img style='float:right; height:26px; width:33px;' src='https://wiki.the-west.pl/images/a/a5/X.png' /></a><img id='west_pl_hints_image' style='position:relative; float:right; height:75px; width:75; top:35px; left:0px;' src='https://wiki.the-west.pl/images/1/1c/Znak_zapytania.png' alt='Porady' /> <span id='west_pl_hints' style='width:80%'></span></div>");
   ch_hints();
   hint_timer=window.setInterval("ch_hints()",30000);
   $("#west_pl_close_hints").click(function() {
        hint_timer=window.clearInterval(hint_timer);
        $("#west_pl_hints").slideUp("slow", function() {
             $("#west_pl_close_hints").hide();
             $("#west_pl_hints_image").hide();
             $("#west_pl_hints_container").css("min-height","0px");
        });
   });
 };


});

if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'user' ) === -1 ) {
document.getElementById("p-personal").remove();
document.getElementById("p-tb").remove();
}


window.onload = function what(){
	var getPageName = document.getElementById('ca-nstab-main');
		if(getPageName.className == "selected"){
	getPageName.innerHTML += '<img src="https://dziennikthewest.pl/ws.png">';
	}
}

/*
snowControlHidden=true;

//Śnieg
 (function(){if("snow" in window){console.warn("Snow effect seems to be running already. You should avoid multiple includes!");return}if(!Date.now){Date.now=function(){return new Date().getTime()}}function c(g,h,i){if(g===null||typeof(g)==="undefined"){return}if(g.addEventListener){g.addEventListener(h,i,false)}else{if(g.attachEvent){g.attachEvent("on"+h,i)}else{g["on"+h]=i}}}function e(g,h,i){if(g===null||typeof(g)==="undefined"){return}if(g.removeEventListener){g.removeEventListener(h,i,false)}else{if(g.detachEvent){g.detachEvent("on"+h,i)}else{g["on"+h]=null}}}(function(){var k=["webkit","moz"];for(var h=0;h<k.length&&!window.requestAnimationFrame;++h){var g=k[h];window.requestAnimationFrame=window[g+"RequestAnimationFrame"];window.cancelAnimationFrame=(window[g+"CancelAnimationFrame"]||window[g+"CancelRequestAnimationFrame"])}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var j=0;window.requestAnimationFrame=function(m){var l=Date.now();var i=Math.max(j+16,l);return setTimeout(function(){m(j=i)},i-l)};window.cancelAnimationFrame=clearTimeout}}());function b(){return Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}function d(){return Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth)}var a;(function(){var g={};var i=["","Webkit","Moz","ms","O"];var h=document.createElement("div");a=function(k){if(g[k]){return g[k]}for(var j=0,l=i.length;j<l;j++){var m;if(j===0){m=k}else{m=i[j]+k.replace(/^\w/,function(n){return n.toUpperCase()})}if(typeof h.style[m]==="string"){g[k]=m;return m}}return k}})();var f=function(){var M=document.createElement("canvas");if("pointerEvents" in M.style){M.style.pointerEvents="none"}else{console.warn("This browser is not compatible with the snow effect. No snow for you :-(");return}var z=false;var o=typeof window.snowControlHidden==="boolean"&&window.snowControlHidden;var E=new Image();var Q;var P;var i=[];var I=0;var H=0;var w=0;var r=null;var G=0;var C;var q;var m;var A;var J;var j;var k=new Date();var g=false;function t(S){if(!z||!N.enabled){window.snow.toggleFunction()}N={enabled:true,multiplier:1,baseSpeed:1,controlOpen:true,controlTop:200};window.snow={count:100,fps:0,multiplier:1,baseSpeed:1,enabled:true,toggleFunction:window.snow.toggleFunction,resetFunction:window.snow.resetFunction};if(!S){localStorage.setItem("kaemmelotSnow",JSON.stringify(N))}s(true)}window.snow={count:100,fps:0,multiplier:1,baseSpeed:1,enabled:true,toggleFunction:function(S){},resetFunction:function(){}};var N=null;try{N=JSON.parse(localStorage.getItem("kaemmelotSnow"))}catch(O){}if(N===null||typeof N!=="object"){console.info("Invalid/Missing snow properties. Using default.");t()}else{if(typeof N.enabled==="boolean"){window.snow.enabled=N.enabled}if(typeof N.multiplier==="number"){window.snow.multiplier=N.multiplier}if(typeof N.baseSpeed==="number"){window.snow.baseSpeed=N.baseSpeed}if(typeof N.controlOpen!=="boolean"){N.controlOpen=true}if(typeof N.controlTop!=="number"){N.controlTop=200}N={enabled:window.snow.enabled,multiplier:window.snow.multiplier,baseSpeed:window.snow.baseSpeed,controlOpen:N.controlOpen,controlTop:N.controlTop}}if(o){t(true);N.controlOpen=false}z=N.enabled;E.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAMAAADJYP15AAACT1BMVEX4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//4+//5+//4+//4+//4+//4+//4+//5/P/4+//4+//5/P/4+//6/P/4+//4+//4+//4+//6/P/4+//4+//7/P/4+//6/P/4+//5/P/4+//7/P/7/f/5/P/6/P/7/f/6/P/7/f/4+//4+//4+//6/P/7/f/6/P/4+//4+//6/P/7/f/4+//6/P/7/f/6/P/7/f/8/f/5/P/9/v/6/P/6/P/8/f/8/f/7/f/6/P/6/P/5/P/8/f/9/v/5/P/8/f/9/v/6/P/8/f/7/f/6/P/8/f/9/v/6/P/7/P/7/f/8/f/7/f/9/v/7/f/7/f/9/v/8/f/9/v/7/f/9/v/9/v/8/f/8/f/9/v/8/f/8/f/9/v/8/f/8/f/9/v/+/v/9/v/9/v/9/v/+/v/9/v/+/v/9/v/9/v/9/v/9/v/9/v/9/v/+/v/9/v/9/v/9/v/+/v/+/v/9/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+/v/+///+/v/+/v/+///+///+///+///+///+///+///+///+///+///+///+///+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R5MSJAAAAxHRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFRYXGBkaHB0eHh8fICEiJCQlJycoKSorLS8xMjMzNTY3OTo8PD5AQUFBQkNES0xPUVFSU1RVVldYWVlaW1tbYWFiY2NmaWptbXByc3R0dXd5fH1/gIKDhIaIiouOkJKTlZeXmJmbnp+goKGjpaWrrKyusLKztLW2t7m+v8HDxMbHycnMzs/Q0dLV1tfZ2tzd3t/g4ePk5ebo6err7e7v8PHy8/T19vf4+fr7/P3+CE8kbgAAAb1JREFUeAFlkfdzEkEAhfcSjoIKObl4EcVABGPRGHuJvffeezH2GHshaixiERUViyCW80ARUTnLURDPg/eHueOMDOL32347s/vePFKGtXIG8j/cydsuplrWss4Y2oy6fy90rjVTXhbmrWiteIcx1NXvwKuPhafotnM9av78ZGu0jbzRPudhEcDzjesCi+r7CQbCdcePbEXY07ReLnUOdl6Ed494XyD8M0BEcPj8qaK2aqW7C0kg2pcYR59/C7zeEJFkVfyw/C6Q8k03E8Yy+wGAb19ByXwCEN0u0Ji9HyN6NKABqXcAwgcDyA6iutcm71j3YQWfl04MQvV63PsO9aHaPGJJU+PVHKQJLVdQfDTGPrPNSoPX3cG9BQdk4MnNLNRLC0/lk/2ptuyPQwF+gaIBaWQuC7SlfVkQ+N4ZUXNaWu6IAYm9Tj3hzuXxsxgZf3yXqO481nIGGnDdRvgQQh2Qhg6YkSht8Ti64PNDbCCm1tUDR72/NulCAlD8s3antjUvnkxb6thas8vRjryifsFZxxAry/4dg9GPO732xY/NJ+aaGKoqlujZLGGaxVhDquBvvRlGZTV6vsFUPvwGKtSrCstrQtEAAAAASUVORK5CYII=";if("touchAction" in M.style){M.style.touchAction="none"}M.style.position="absolute";M.style.display="block";M.style.top=0;M.style.left=0;M.style.bottom=0;M.style.right=0;M.style.margin=0;M.style.zIndex=-1;M.style[a("transformStyle")]="flat";M.style[a("userSelect")]="none";document.body.appendChild(M);var R=M.getContext("2d");if("globalCompositeOperation" in R){R.globalCompositeOperation="lighter"}function D(T){var U,S,V;for(V=T.length;V;V--){U=Math.floor(Math.random()*V);S=T[V-1];T[V-1]=T[U];T[U]=S}return T}var K=function(){this.radius=1;this.alpha=1;this.startPos={x:-1,y:-1,angle:0};this.pos={x:-1,y:-1,angle:0};this.steps={x:1,y:1,angle:0.5};this.movement={deltaX:1,deltaAngle:0,movement1:1,movement2:1,movement3:1,movement4:1,offset:0,deceleration:1};this.startTime=new Date()};K.prototype.calculateCurrentPosition=function(V){var T=(V.valueOf()-this.startTime.valueOf())/this.movement.deceleration;var U=(T+this.movement.deltaX)/7;var W=(T+this.movement.deltaAngle)/100;var S=this.movement.movement1+this.movement.movement4;var X=this.movement.movement4-this.movement.movement1;this.pos={x:Math.sin(this.movement.movement1*U+this.movement.offset)*Math.sin(this.movement.movement2*U+this.movement.offset/2)*Math.sin(this.movement.movement3*U)*this.steps.x+this.startPos.x,y:-this.steps.y*Math.sin(S*T+this.movement.offset)/(2*S)+this.steps.y*Math.sin(X*T-this.movement.offset)/(2*X)+this.movement.movement2*this.steps.y*T*10+this.startPos.y,angle:Math.sin(this.movement.movement1*W+this.movement.offset)*Math.sin(this.movement.movement2*W+this.movement.offset/2)*this.steps.angle+this.pos.angle}};K.prototype.restart=function(Z,X,Y,T,U,S,W,aa,V){this.radius=Z;this.alpha=X;this.startPos={x:U,y:S,angle:W};this.pos={x:U,y:S,angle:W};this.steps={x:aa,y:Math.round(10*N.baseSpeed),angle:V};this.movement={deltaX:Y,deltaAngle:T,movement1:Math.random(),movement2:Math.random()*2.5+3,movement3:Math.random()*5,movement4:Math.random(),offset:Math.random()*500,deceleration:10000/(N.baseSpeed*N.baseSpeed)};this.startTime=new Date();this.calculateCurrentPosition(this.startTime);this.startPos={x:U+this.startPos.x-this.pos.x,y:S+this.startPos.y-this.pos.y,angle:W+this.startPos.angle-this.pos.angle};this.pos={x:U,y:S,angle:W}};function y(U,V,T){if(typeof V!=="boolean"){var S=Math.floor(Math.random()*5+5);T=typeof T!=="undefined"?T:Math.floor(Math.random()*-(typeof V!=="undefined"?V:100)-S);U.restart(S,Math.min(1,Math.ceil(Math.random()*1000)/1000+0.3),Math.random()*50,Math.random(),Math.floor(Math.random()*(P+S*2)-S),T,Math.random()*Math.PI*2-Math.PI,P/3,Math.PI*N.baseSpeed/200)}else{U.restart(U.radius,U.alpha,U.movement.deltaX,U.movement.deltaAngle,U.pos.x,U.pos.y,U.pos.angle,P/3,Math.PI*N.baseSpeed/200)}}function v(S){R.translate(S.pos.x-I,S.pos.y-H);I=S.pos.x;H=S.pos.y;R.rotate(S.pos.angle);R.globalAlpha=S.alpha;R.drawImage(E,0,0,E.width,E.height,-S.radius,-S.radius,S.radius*2,S.radius*2);R.rotate(-S.pos.angle)}function l(){if(!N.enabled){z=false;C.innerHTML=window.snow.fps=0;C.style.color="black";R.clearRect(0,0,P,Q);i=[];w=0;r=null;return}if(!z){window.snow.enabled=z=true}var T=new Date();if(r===null){r=T}var V,Y;var X=window.snow.baseSpeed!==N.baseSpeed;var Z=[];var S;var aa=G>=i.length;var W;if(X){window.snow.baseSpeed=N.baseSpeed;R.clearRect(0,0,P,Q)}if(!g&&(T.valueOf()-k.valueOf()>5000)){g=true;if(b()!==Q||d()!==P){s(true)}}if(!aa){W=D((Array.apply(null,{length:i.length})).map(Number.call,Number)).slice(0,i.length-G)}for(V=0;V<i.length;V++){S=i[V];if(!aa&&W.indexOf(V)>=0){continue}S.calculateCurrentPosition(T);if(S.pos.y-S.radius>=Q){if(T.valueOf()-r.valueOf()>500){y(S,0,S.pos.y%(Q+100))}else{y(S)}}else{if(X){y(S,true)}}Z.push(S)}i=Z;Y=i.length;while(G>Y){Y++;S=new K();y(S,-Q-100);i.push(S)}R.save();R.clearRect(0,0,P,Q);for(V=0;V<i.length;V++){v(i[V])}R.restore();I=0;H=0;w++;T=new Date();if(T.valueOf()-r.valueOf()>200){var U=window.snow.fps;window.snow.fps=Math.round(w/((T.valueOf()-r.valueOf())/1000));if(N.controlOpen&&U!==window.snow.fps){C.innerHTML=window.snow.fps;if(window.snow.fps>=45&&(U<45||U===0)){C.style.color="green"}else{if(window.snow.fps>=30&&window.snow.fps<45&&(U>=45||U<30||U===0)){C.style.color="darkorange"}else{if(window.snow.fps<30&&(U>=30||U===0)){C.style.color="red"}}}}w=0;r=T}window.requestAnimationFrame(l)}function u(){window.snow.count=G=Math.round(Q*P*N.multiplier/7500)}function s(S){M.height=1;M.width=1;Q=b();P=d();M.height=Q;M.width=P;if(S===true){u()}}function F(){N.controlOpen=!N.controlOpen;localStorage.setItem("kaemmelotSnow",JSON.stringify(N));J.style.right=(N.controlOpen?132:-18)+"px";j.style.right=(N.controlOpen?1:-152)+"px";if(!N.controlOpen){C.style.color="black";C.innerHTML=0}else{window.snow.fps=0}}var h=null;var L=N.controlTop;function n(S){S=S||window.event;S.stopPropagation();S.preventDefault();if(!("touches" in S)&&(S.buttons&1)!==1){p(false,S)}else{L=N.controlTop+("touches" in S?S.touches[0]:S).screenY-h;J.style.top=L+20+"px";j.style.top=L+"px"}}function p(U,S){S=S||window.event;S.stopPropagation();S.preventDefault();if(U&&h===null){h=("touches" in S?S.touches[0]:S).screenY;c(document,"mousemove",n);c(document,"touchmove",n)}else{if(!U&&h!==null){e(document,"mousemove",n);e(document,"touchmove",n);var T=("touches" in S?S.touches[0]:S);if((typeof T==="object")&&("screenY" in T)){N.controlTop+=T.screenY-h}else{N.controlTop=L}J.style.top=N.controlTop+20+"px";j.style.top=N.controlTop+"px";h=null;localStorage.setItem("kaemmelotSnow",JSON.stringify(N))}}}c(window,"resize",s);var x=function(){s(true);window.snow.toggleFunction=function(S){window.snow.enabled=N.enabled=!S&&!N.enabled;localStorage.setItem("kaemmelotSnow",JSON.stringify(N));if(!z&&N.enabled){window.requestAnimationFrame(l)}q.style[a("box-shadow")]=N.enabled?"0 0 5px 5px rgba(0,175,0,0.5)":"0 0 5px 5px rgba(225,0,0,0.5)";q.style.backgroundColor=N.enabled?"rgb(85,111,17)":"transparent"};window.snow.resetFunction=function(){t();i=[];m.value=Math.round(N.baseSpeed*100);A.value=Math.round(N.multiplier*10);J.style.top=N.controlTop+20+"px";j.style.top=N.controlTop+"px";h=null};z&=E.naturalWidth!==0;if(z){window.requestAnimationFrame(l)}else{if(E.naturalWidth===0){console.error("Could not load snowflake :-(")}}};if(E.complete){x()}else{c(E,"load",x)}if(o){return}var B;J=document.createElement("div");J.id="snowControlDent";J.style.width="42px";J.style.height="52px";J.style.position="fixed";J.style.top=N.controlTop+20+"px";J.style.right=(N.controlOpen?132:-18)+"px";J.style[a("box-sizing")]="border-box";J.style.zIndex=2147483001;J.style.background="#a23227";J.style[a("borderRadius")]="10px";J.style[a("box-shadow")]="inset 1px 1px 0 rgba(255,255,255,0.25),inset 0 0 6px #a23227,inset 0 10px 26px -13px #ac3223,1px 1px 3px rgba(0,0,0,0.75)";J.style.overflow="visible";B=document.createElement("div");B.style.display="block";B.style.position="absolute";B.style.top="5px";B.style.left="2px";B.style.width="20px";B.style.height="20px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAaCAMAAAB1owf/AAAAb1BMVEUAAAASCgcKBgEPCwcJBwMLBwQJBQMIBAILBwQJBgMIBQIJBgMJBgMJBgMIBgQLCAUlGxJZPh2AVSOIaDWYbSefdzaqgj+3iCjBlEPLkR/MoVbSoDPZs2HbrUPk0afnvk/sx2Pv37Py1Xj311f///8RBTBRAAAAEnRSTlMAAwgPFh8nMTtIVWJvfZyvsLKBdkHhAAAA20lEQVR42rXR3XKDIBAFYH60RC2JNGm0iLCY93/HLstOmEynlzk3nPGbBQfEWyKlfK4vUdooSeugS2nQTW7UWPTopp6oQbIdts5m9/mB1OBI1vR9b2wEJgZ4eFuT98NZJIaUYA8x5pxjxE5UAUoShouzRglNEwcGPwGXDafECSEdTUpoSpzmJSQgoN0IwjIPuNv843n7nQ9CmLryB/OyBwjr/b5iPLYCSlTaQrA1ARaGSrfN8x3AersQMF2+V743f63Q6MryVaHReB5UKcN5JPjzclIZrf5/7XfkF905GQbaFoOuAAAAAElFTkSuQmCC) center center no-repeat";B.style.backgroundSize="cover";B.style.cursor="pointer";c(B,"click",F);J.appendChild(B);B=B.cloneNode(true);B.style.top="26px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAARVBMVEUAAAAJBQNZPh3UsFQ/LBZgMhUvHw9FNB0gGREkHxNELBVNMRmYbSefdzaqgj+xjVC3iCjnvk/sx2Py1Xj311f75XL///+dvcVOAAAACXRSTlMAJ7Kzyt/i5uqUbM3LAAAAVUlEQVQoz92NoQ6AMBQDr2+TwP9/5wiGMIp4ZppMEGra5sTBP6OswlYQ3Bi3PqIV5TaYfURVRHX+09cMF4Vb6VIbURARyAT0PsG1QKULA+bwe9f38wBFDicKFP+VvQAAAABJRU5ErkJggg==) center center no-repeat";B.style.backgroundSize="cover";B.style.cursor="row-resize";c(B,"mousedown",p.bind(B,true));c(B,"touchstart",p.bind(B,true));c(B,"mouseup",p.bind(B,false));c(B,"touchend",p.bind(B,false));c(B,"touchcancel",p.bind(B,false));J.appendChild(B);j=document.createElement("div");j.id="snowControl";j.style.width="150px";j.style.height="170px";j.style.position="fixed";j.style.top=N.controlTop+"px";j.style.right=(N.controlOpen?1:-152)+"px";j.style[a("box-sizing")]="border-box";j.style.zIndex=2147483002;j.style.background="#5e0d0c";j.style[a("borderRadius")]="15px";j.style[a("box-shadow")]="inset 1px 1px 0 rgba(255,255,255,0.25),inset 0 0 6px #a23227,inset 0 125px 100px -50px #ac3223,1px 1px 3px rgba(0,0,0,0.75)";j.style.font="monospace 14px";j.style.overflow="visible";m=document.createElement("input");m.title="Speed";m.type="range";m.min=75;m.max=270;m.step=15;m.value=Math.round(N.baseSpeed*100);m.style.display="block";m.style.position="absolute";m.style.left="36px";m.style.top="55px";m.style.width="100px";m.style.height="21px";m.style.margin="0";m.style[a("box-sizing")]="border-box";c(m,"change",function(){N.baseSpeed=this.value/100;localStorage.setItem("kaemmelotSnow",JSON.stringify(N))});j.appendChild(m);A=m.cloneNode(true);A.title="Density";A.min=2;A.max=352;A.step=10;A.value=Math.round(N.multiplier*10);A.style.top="83px";c(A,"change",function(){window.snow.multiplier=N.multiplier=this.value/10;u();localStorage.setItem("kaemmelotSnow",JSON.stringify(N))});j.appendChild(A);q=document.createElement("div");q.title="On/Off";q.style.display="block";q.style.width="26px";q.style.height="26px";q.style.position="absolute";q.style.left="40px";q.style.top="17px";q.style[a("borderRadius")]="5px";q.style[a("box-sizing")]="border-box";q.style[a("box-shadow")]=N.enabled?"0 0 5px 5px rgba(0,175,0,0.5)":"0 0 5px 5px rgba(225,0,0,0.5)";q.style.border="1px rgba(0,0,0,0.5) solid";q.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAtFBMVEUAAAASCgcKBgEPCwcJBwMLBwQJBQMIBAILBwQJBgMIBQIJBgMJBgMJBgMGBAMnHRIIBgQLCAUlGxI/LBYjGRB3aT+ofDmVhGJgMhVuUiuLYDZFNB2ll2pNMRllPhhrUihzRCJ4UBF9XDSAVSOIaDWRYBmYbSefdzagh1Wqgj+3iCi4pXrBlEPMoVbNvXLSoDPUu4vbrUPhyobmwnHnvk/sx2Py1Xjy3JP311f75XL88Jb///8zsRImAAAAHXRSTlMAAwgPFh8nMTtIVWJvfYyYnK+wyszNz9jf4OPm/r5HjmAAAAEqSURBVCjPrZJLT8MwEIRnH27SphRxBQkkOPD/fxN3XklK4nh3OSQNLVfwydYnjXdnBvjnQ2dXZrjH+pYVEKckhKBfiFhFdV8XMF8ikpSS6DP1tCHGLKoL0V39CUykjbcEixWpPtn7LFPX0YUHAAZAIvfeERAKeLppRGhFuu/5WKKzKB9ld1ChZQzRJuWxN5RxMC/X3Jn7/BfzXYcvK9HCDLnw1ciLIKgOFLcp58m8TJpoHR4BBcINIEAWPxgAIjN0toFZk01xQu4vCRtRIRIV2eTWfRF0H1M+TGAHS/WIY3E/eUg0HHzLYK12D/raDsVPefEm3YoESFF5+9ZP2c9C6b2ilALDZ9+V4j8pk6jotoGb9ZMVi7MCEIkIAxFmFnHZDSKeF4n4U9m+ARR2jrhkkaYsAAAAAElFTkSuQmCC) center center no-repeat";q.style.backgroundSize="cover";q.style.backgroundColor=N.enabled?"rgb(85,111,17)":"transparent";q.style.cursor="pointer";c(q,"click",function(){window.snow.toggleFunction()});j.appendChild(q);B=q.cloneNode(true);B.title="Reset";B.style.left="84px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAGKklEQVR42qVVeWxURRjfNzPvmPf27Xa3u9vdZbctvRZaKEiXHksprd2WuxBawpWASkVukEMECVgD5Y4HtJwpFBAQhVJAWhBBjlgwogYQ/gADyB0iQURN5Pj82tAYslmoOslk5r35Zn7zfd/v+42hJc2qyk2jJgtMk5lHlegUsyaVKiL1qxLRLfjjGdt/10I3mo2KjEC5DotSObxHzH2DQFcoIsnmIjHZzRr7D2ChxhGarOgKc1EijMv0Wf88VhGA/I6W3wmhtVyiPdEpRyubKcSzFgNYTZxzkbbGg/IoIVMMhP2YHqvD8Y/aQ92SDJhdkvAEzRpwfRB651JlQcEzaItA7DiiB9yoiO6m28psmcalc2lxlsdziuPg49kZsH+RD/YtSIJjlbmwc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DjuF6baH0iMbTYqLN5qUp+ViUhVEDi+JzIjUwNtIu9vndke9iwMQOXYVCjOibvndVg+YZQMQdMM7KnYM7H3RgIt81r45YqJHVFsc+H0hm4wKugB/N+oFrEWXSahCq4QGW/t17m4fli26+GaicmwBkWzYnwKTC/2PerW1nk7zq6eiLWpR5Pc5u+6tvVcn9An+kH9B5lw4bMCOLulEBZhuB1mfg4vXIhEMsdH8FBWYE0QkypZFEaChLIv3gh6YfUEH6wclwjLS6OhcnwSrJvuh6q30p/UlOfCD5uCcLraDxd3IlNrg7BpVmeIcZiuIsBozJEL80PDUjBSlYnOpQiUnEJ0v3Zgmu3BopEJsHxUHCx/1QUrx8bD+ulpsH1uZ9g73we1ZUmwckoWvFmc9NiqSRdFRsc3Pv0agjRLUlgwp1kjKJRWZI3fYCDvKqJ4fGCW4+bovrF/je/ugGm9nTC6wANji+KfDAq0+qWN03gWt23BHPbHPHvxheZOTUWEFjSHRSNmLsnILi/GO4DevSJL8kK3hW9IiNJ3xNjU7ZrE3sf/UxtJgbSO11GqkO3EzuUXFXPoYqSJC/hiSkhVU1O9SDRBEWliU5doDBLHpstMMuPC8875GxKC0BgvWEYWAAAAAElFTkSuQmCC) center center no-repeat";B.style.backgroundSize="cover";B.style.backgroundColor="transparent";B.style[a("box-shadow")]="0 0 1px 2px rgba(0,0,0,0.2)";c(B,"click",function(){window.snow.resetFunction()});j.appendChild(B);B=document.createElement("label");B.title="Speed";B.style.display="block";B.style.position="absolute";B.style.width="26px";B.style.height="26px";B.style.left="7px";B.style.top="52px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAzFBMVEUAAAASCgcJBwMLBwQJBQMIBAIIBQIJBgMJBgMGBAMIBgRZPh0/LBYjGRB3aT9VSDAvHw+LYDZFNB2ll2rIeD85JRFELBVHNSJNMRlUOR5aMRZdPiNiUDplPhhmRSlzRCJ2TzF9XDR9ZkWHXEeIaDWPblKQbUGThW2aekegdFugh1WomYGrcUivhmqxjVC0fle0t1u4m2C4pXq+k3jJom3KqIPMoVbNvXLOxKbUu4vXzrPZs2Hhxpnhyobk0afv37Pw58v8+Nn9873///+1XXgvAAAAFXRSTlMAAxYfJzFVYm+MnLLKzM3a4uPm/v7r0dctAAABTklEQVR42rWSbVuCMBiFIxJxoZYGMVcTX1i6YrgJ6mqB4///qDBYrx+7Ol/v65xnO89z9m+ybAfU6jm29YOcu2BAcynWQ+Da38gFGEiZkPlsHpMh6FhfCZMJ2+x2u4zHMww6n2kgFav962EscpFl/A4Ck2m5gz3ZcF0+POZ5kTEBPbeNtMEN3Zda66oqi0KueBIYmzNIGdf6+I7YRJAc9rsN6tFVVpsSeqxKhuZK8vgKNAiwxUul9fNkUaUY5UqxJDAojZbjg64EJPdYqK0ga9+gJ7wUoh4kEBVKCUEWxtW7nmSqrFWok0rJ0ahFziWiWf1s1ZCCJtBzzL+mkMrGU5RHxfFHHZY7DKdMFrVOhEX41IbpEPuI0TzeriVP8LQxmeZv/eCeLElEEMSoab6N7IC+7wdhGKIIee2+jGwXeKMwhCPPbPnXbYBufRt/0RsCqDU+uJdluwAAAABJRU5ErkJggg==) center center no-repeat";j.appendChild(B);B=B.cloneNode(true);B.title="Density";B.style.left="7px";B.style.top="81px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAMAAADJYP15AAAC91BMVEUAAAD4+//4+//4+//4+//4+//4+//4+//4+/8LBwP4+//4+/82MzD4+//4+//4+//4+//4+//4+//4+/8LCQX4+//4+//4+//4+//5+//4+//4+//4+//4+//4+//5/P/4+//4+//5/P9ubm34+//6/P/4+//4+//4+//4+//6/P/4+//BwsT4+//4+//6/P/4+//5/P/4+//7/P8IBAL7/f/5/P/6/P/7/f/6/P/7/f/4+//4+//4+//6/P/6/P/4+//4+//6/P/7/f/4+//6/P/6/P/7/f/5/P/9/v/6/P/8/f/7/f/6/P/6/P/5/P/8/f/9/v/5/P/8/f/9/v/6/P/8/f/7/f/6/P/8/f/9/v/7/f/7/f/9/v/U1tj7/f8cFg4pJRz8/f8ZEQj9/v/9/v/9/v/8/f/8/f/Z29z9/v/8/f/8/f/9/v/8/f/8/f/+/v8vIxE3Kxj9/v/+/v/9/v/9/v/9/v/9/v/9/v/9/v/+/v/9/v+0s7P9/v/+/v/+/v9KPSz9/v/+/v/+/v/+/v9LNiD+/v9DKxNlXVP+/v/+/v/+/v9RPyj+/v9GNBeNiHX+/v/+/v/+/v/+/v/+/v94dW/+///+/v/+/v/+//+Tj4X+///+//9dPSD+///+///+//+BfXf+//+8taD+///+//+Ae3P+//+alob+//+UjH3+//+bmI7+///////////////////////////////////////Kycn///////+ej3r///////99dGj////My8v////////////s7Oz////t7Oz////////29fX////29fX///////+Bc2D///////+Wk4+al5SamZTt7e329vb///////+gkHn///94al16aViCdWGUj4SWinaWkoafloWknZC/lDnKn0TNnz3StVrZsFDdumrfvF3gvGrhw2/kxnHmwVznv1bnzm3owFXpxF/rx2frzH3syWnty3LtzHPt1HHuzXTx2nv01Fz22Yf29vb////+4Xd5AAAA2nRSTlMAAQIDBAUGBwgJCQoLCwwNDg8QERISExQVFRYXGBkaHB0eHh8fHyAhIiQkJScnKCkqKy0vMTEyMzM1Njc5Ojw+QEFBQUJDS0xRUVJUVldYWVlaW1tbYWFiY2NmbXBydHR1dXV3d3x9f4CCgoOEhoiKjpKSkpWYmZuen6Cgo6WlpausrK6wsrOztLW1tre5ubq7vr/Bw8TFxsfJycvMzs/P0NHS0tXV1tfX2dna2tzc3d7f4OHj5OXm6Ojp6urr7u7v7/Dx8/P09PX29vf4+fr6+/z8/Pz8/P3+/mWKN3sAAAHSSURBVHgBY4ADVkFhdgZMIFzcrsqILsjMqrL+jz0HC6oEi2qIw+IzHgGmSOYwsgtJxP5Zuv3MzD/VssK8TGCbxJTEjJtT3Cdf//Pnz/zIsD5vCTkpdgbh6k250X/maqqF772Zp6tS9acsacVEKQbxWX/+rPgzxcDTccW1oECN8j/b/vxZJ8PAYV6x4c+fZREL1uw9v2Krf/efP3uanLkZGAXcJgFNPbj/DxAc3Qkk1sVIAZ0pOv3Puvy+a0BVG4FiczP6/hzXAgrzR5VZamQf/rPL13bKn/NlmhqpWZJAYW5DHzWl+hN/1tgY1f25PtVC1tVeEOhwoa4/PV7pe//8mdFy/Pel5Z3TTm6TBwoLpG36c/jPnwsgK688+PTyzrEaKaAvZf2m/PlzKG/B+RNXjxxY/eHJ7R2ZOmwMwqWn/py9vsC6IH7F5ZVrl3x8cePhvUViDOJz/szJ+bNGT9Fly/1f37++f/vmw+N90gxcpsHqZpsb7Cq3/Ln749W3zz+fPXnUCPQlCyszt6pCyp9Thy+eu7X7y7t5Hf3JjNAQZ7MqCV14Oq529vfXbSYinIiY4NNe88dJecLzp70iKPEm3rpKnyexqDCBE0WYTVyaC84BAHef1HZaaOtQAAAAAElFTkSuQmCC) center center no-repeat";j.appendChild(B);B=document.createElement("label");B.title="Frames per second (FPS)";B.style.display="block";B.style.position="absolute";B.style.left="53px";B.style.top="118px";B.style.width="45px";B.style.height="36px";B.style.zIndex="0";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAkCAYAAAAdFbNSAAAIpElEQVR4Ae2Y6W9cVxnGoU5iO6kUWqRKFUKtQBWLUtLSgoAICh9KIlARVEqgLV9IoBJLA3xBtChCiEKpnLGT2I7Hy0yc8eJxvMSesevxePZ9Xzz2OPHECYSQD5Ha/gfn5X2u8qI7d+7ESRQhPmDp0Zm5M/f4d57znPecuR/5/999/D26u7UF2r3ro22ivXta90LtrS2PQXiN6/jeff0D3Cwd7mnd8QTUvrPlM0a17Xjo2e3E9x4Qte9qOSRq2/nQYYhfH4VwDd/H/7xnaMAC6Hbn6OzXrBNG7drRclLUtmvH0J301CcenRPtf+YLJejwoWc2v3Xo4A20r752ZLP37aOX8L8Afs/O4ibAvv6rn4dsnW8S5Oz/k7SaZh0W8s9bKL4yRIXYOG0U3CK6XgtC2usb5Qm0DcI9IvQhAj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sZkZoaWV34RwGMD/cVkWov5xAesERoibUGq+++0DdOzVl2QwAoLay672kHfGQt5Ziwq4T1OYD0TYqrcDFul/zMLdX778WTrx4+frzhrga/okCaPBl+Q5nDxTk8df8ogL5Qc5w+HK3vUmqgMGwDnu5/hoEWoaCyO0OI3rT368nZ58/JFbL+x7LAPjEFkw3f+DRsNgZEYwEMzIs1/cXz7ynec2f/ba9/TxagpshIYe3t1aQJ/6h41gaE55j4ORgciTT+MDSRkM4oVZQUbl6ZRZPHAd96Cv+3+s+wBmBAASMf1gZL3se/rzN5FdDEae06GP/4kH5RiQ2WCMz5/x+QOJw39jdkR3Gwl8599syeypTAih/QAAAABJRU5ErkJggg==) center center no-repeat";j.appendChild(B);C=document.createElement("div");C.title="Frames per second (FPS)";C.innerHTML=0;C.style.display="block";C.style.position="absolute";C.style.width="26px";C.style.left="60px";C.style.top="130px";C.style.textAlign="center";C.style.zIndex="1";C.style.color="black";j.appendChild(C);B=document.createElement("div");B.style.display="block";B.style.position="absolute";B.style.width="152px";B.style.height="27px";B.style.left="-1px";B.style.top="-9px";B.style.pointerEvents="none";if("touchAction" in B.style){B.style.touchAction="none"}B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAbCAYAAACeL3bkAAAPL0lEQVRo3u1bW4xd1Xn+/rX23ud+5uqxx2PAhtrUBuoATtqQUpXm1hQpVR5QRR9o1KoPERIvUaS0UlXRPlSNVNSkpQqpaCt6IRKBUkKiKDEBGUzAAV+xwePB+DY3z5yZc9/Xtf4+nLXnrDnMMDa4xYhZ0vKas/c+66z//7//vk24ygYzL/tMRPioDkNLSoAwkwFos/KVovFq4xt92Iy3GcDMAoBMPwJQRMTvk8F0ud+9wmCSAFwAOQAZAHmzAkAbQB1AACA0dF4STSkYU/qY2TGAlRZwY7OnvmqB1asJH0QbrL1SpgsAjpnSTDLMjg3jE4uZ7zWENQFAWVaBe2gV1jXuEZro2Vf3rDbvZM/z6bUMgAEAgwA2A+gDsAtA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NM78srLT9cW5l+vV+aP1+ZmLzQXF5u49BfwsIaff6/rVyuoPk7DDhNiAzD7Td+lrpUdnjjFYkExA1qpNglZsGtQS30zIarSzZwTrjdbmZpsWK5pfXy8hh3X0nsZCDH+5olmEIXVR7/z7Yeki4ip6wYFATkPOPrzn74Orebq83ProFofvW57RSxIVooa1So1azVndnbu4sCmMbdY7htgk/V86/4//aszbxw+tDAzNTU1Md76EAPo9fERGnTjr+32Zqcmi8Mjm7Z52dyNXjaz9ZN3fX5YgXD0wCvnpiZOTjSqi+ONxYVpk7GpdbatjzWBVSz3UbNe84rlvrLjuhvBPOJ4Xl8URggCvxoH/jQzz5pa0+UE7Ovj4wwsa3VMcS6PToEy/d8tTXSKmOugWh+XDaylYB7v/q9evO7+1sfljv8FCDh08Q/7UaAAAAAASUVORK5CYII=) center center no-repeat";j.appendChild(B);B=B.cloneNode(true);B.style.width="26px";B.style.height="20px";B.style.left="0";B.style.top="-9px";B.style.background="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAEGElEQVR4Ae3Sa0ybVRgH8NK3tBS5SClIwbGUC2MzTOwGlm3K0E5gks1lF1D8sgtzw5mwiskkoDHBNF6AZCxOZXG4EeemETKnWwYxzklc2aYlHWIgw02c0A30tdDS9r08/jtOlmZG3Qf5tif55Tk95z3ned7TV/FvcTeIiAMNxEAUhLM5FaMG7v8qpoU0KIatoihakZ+EBZACRljIxtp/OiQMlEEhc0rWaQRoWY4LBAIFkiQ1whB+SxAMEfN7BEEoxXg9bIe1rDG14rZDNaAHAxMLOpkomXWaD2Yo8Pv9zyCPwt8CDYx6vd565Gb8PAhNUAoxof9DLGTBE7iabQKuB6rgOb8oVqP9OqzZRElqxXo3xgLcaXihY2Ji4lbBKFiEgypxFYcwliWZRBEEmeTAbBYwF5CwhnkKgF+azQJI8B/xh91uT0K5sGDBeBQqw923s2KyTyKJF0m6HiD61U/kAreIViXsRB4Lmecx9mAu2IgMt4c825BUWFgYLKhS8Dyvc7vd1cEFEaaw+Tc/ycMzJJ+fIvkbN9G30D+NIj6iX2AIl+TE70sQHF/F3O8CGsLeGTTlAwEkdgteZBQzgkYx7nI9OO3xtGMBbzG7ud9DZJ8i6uYp0DHkGtzS2NT+FU8z/ZgbmCbJMUX+XjfdODnutVub3jnR5ybvgAfFZwANXEZG0zQGk7iBwbGJHhRLu1nwp6HhNZM8/yW6wBWic2z8Dm/0NU+03z54Ln/1U6+mLzbVtP0wcvGY88pol/PKtbbTvf0vtrzbYS4pe2VJ0aqGQ86rF3t4Erv/JDrFo1FAQ3QecJ7vcM/Z11FsHoQrevv6Kkav3ziJtxN/RmedjuEfy3e88JllfUVr7iNFtcnpmeui43SWnOWFO0oqN+/d9Lz18LqtO1uL1m7ck23K25Q4b35p2mJT1ZrddbbaIyc+fOnoqaP7Lly+8N73I84PHCODrWcdp5+urX8WxZKAUxzpOl46fM3VhY9AwP8kvv3JF2fKq3c3my0lW1IzF6yMiddn4sFUjTbSlHB/qiUrd8nqHPMKywN55vxkY3pGuEZjDI/QmpUcVxam5DaqNRGVKRlZ1TnLHq1b+nhxw6L8gu16Q4oZZ8SBUlFvezP3jGOgBR+JYHeTZPv4809rmvdXbdhZY8pdcfPL0jL3QgLoI6NjdMhRoGFriZAFD8HD0br4lQZjenHSfKMFz+ax69RCmCIjO9vQ8v6BihEfiT3j0+MvH/iosaGjc9kbnd3xdQePqYMPMUrgWGZurakgEmJBB3pN5D33QSJ7M6xhLwudSqVaatu7r6p8l3Xbhl3WVZtfeyux7dwl9fFJwmF3GKypEBwAaywkomEhPMapVMvjDcnB11fDnIUaEiADUiGKdTVnEcaKRkIEcDBn8Re/16xasqHKWwAAAABJRU5ErkJggg==) center center no-repeat";J.appendChild(B);document.body.appendChild(J);document.body.appendChild(j)};if(document.readyState!=="loading"){f()}else{c(document,"DOMContentLoaded",f)}})();
*/