function sendFormActionRedirect(B,A,C){document.forms[B].action=C;document.forms[B].k_a.value=A;document.forms[B].submit()}function sendFormAction(B,A){document.forms[B].k_a.value=A;document.forms[B].submit()}function sendFormActionAsk(C,B,A){if(confirm(A)){document.forms[C].k_a.value=B;document.forms[C].submit()}}function sendFormAsk(B,A){if(confirm(A)){document.forms[B].submit()}}function sendForm(A){document.forms[A].submit()}function linkAsk(B,A){if(confirm(B)){location.href=A}}function linkTo(A){location.href=A}function checkAll(D,C,B){var A;B=B;jQuery("#"+D+" input[@name='"+C+"']").each(function(E){switch(B){case"select":this.checked=true;break;case"unselect":this.checked=false;break;case"flip":default:this.checked=!this.checked;break}})}function newWindow(A,D,E,H,G,I){var B=450;var J=350;if(D!=0&&E!=0){if(D<0){B=-0.01*screen.width*D}else{B=D}if(D<0){J=-0.01*screen.height*E}else{J=E}}if(H!=0&&G!=0){var F=(screen.height-J)*0.01*G;var C=(screen.width-B)*0.01*H}okienko=window.open(A,"","left="+C+",top="+F+",toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,personalbar=no,directories=no,status=no,width="+B+",height="+J);okienko.focus();if(I==true){okienko.onload=okienko.print}}function newWindowAsk(D,F,B,C,G,E,A){if(confirm(D)){newWindow(F,B,C,G,E,A)}}function newWindow2(A){okienko=window.open(A,"");okienko.focus()}function resize(){var A=0;if(navigator.appName=="Netscape"){A=40}if(document.images[0]){window.resizeTo(document.images[0].width+30,document.images[0].height+60-A)}self.focus()}function dymek(A,B){A.title="";A.parentNode.lastChild.style.display=B?"block":"none"}function flipDisplay(A){current=(document.getElementById(A).style.display=="none")?"block":"none";document.getElementById(A).style.display=current}function flipDisplayNewsEditor(B,A){current=(document.getElementById(B).style.display=="none")?"block":"none";document.getElementById(B).style.display=current;current=(current=="none")?"block":"none";document.getElementById(A).style.display=current}function sendNumber(E,B,A,D){var C=prompt(A,B);if(!isNaN(parseInt(C))){location.href=E+C+D}}function sendText(C,D,A,B){var D=prompt(A,D);if(D!=null){location.href=C+D+B}}function trim(B){var A=B;var C=/^(\s*)([\W\w]*)(\b\s*$)/;if(C.test(A)){A=A.replace(C,"$2")}var C=/ +/g;A=A.replace(C," ");if(A==" "){A=""}return A}var hide_obj_stack=0;function k_hide_obj(A,B){if(A){hide_obj_stack++;embeds=document.getElementsByTagName("embed");for(i=0;i<embeds.length;i++){embeds[i].style.visibility="hidden"}objects=document.getElementsByTagName("object");for(i=0;i<objects.length;i++){objects[i].style.visibility="hidden"}applets=document.getElementsByTagName("applet");for(i=0;i<applets.length;i++){applets[i].style.visibility="hidden"}if(jQuery.browser.msie&&(jQuery.browser.version<7)){jQuery("select").css({visibility:"hidden"})}}else{hide_obj_stack--;if(hide_obj_stack<=0||B==true){hide_obj_stack=0;embeds=document.getElementsByTagName("embed");for(i=0;i<embeds.length;i++){embeds[i].style.visibility="visible"}objects=document.getElementsByTagName("object");for(i=0;i<objects.length;i++){objects[i].style.visibility="visible"}applets=document.getElementsByTagName("applet");for(i=0;i<applets.length;i++){applets[i].style.visibility="visible"}}if(jQuery.browser.msie&&(jQuery.browser.version<7)){jQuery("select").css({visibility:"visible"})}}}function kengine_result(B,C,A){jQuery("#kmessage").remove();jQuery("body").append('<div id="kmessage"><h1>'+C+"</h1><p>"+A+'</p><a href="#" onclick="javascript:jQuery(\'#kmessage\').remove();return false">zamknij</a></div>');switch(B){case"ok":jQuery("#kmessage").addClass("kmessage_ok").css("top",jQuery(document).scrollTop()+5).oneTime("1500ms","info",function(){jQuery("#kmessage").effect("explode",{pieces:25},1000,function(){jQuery("#kmessage").remove()})});break;case"error":jQuery("#kmessage").addClass("kmessage_error").css("top",jQuery(document).scrollTop()+5);break}}function k_background(A){jQuery("#"+A).width(jQuery(document).width());jQuery("#"+A).height(jQuery(document).height())}function k_overlay(A,E,G){if(G==null){G="koverlay"}var F=document.getElementById(G);if(F==null){var B=document.getElementsByTagName("body").item(0);var D=document.createElement("div");D.setAttribute("id",G);D.style.display="block";if(E==true){var C=document.createElement("a");C.setAttribute("class","closewindow");C.setAttribute("title","ZAMKNIJ OKNO");C.setAttribute("onclick","javascript:window.close();return false");B.appendChild(C)}B.appendChild(D);jQuery("#"+G).width(jQuery(document).width());jQuery("#"+G).height(jQuery(document).height())}}function k_loadjscssfile(A,B){if(B=="js"){var C=document.createElement("script");C.setAttribute("type","text/javascript");C.setAttribute("src",A)}else{if(B=="css"){var C=document.createElement("link");C.setAttribute("rel","stylesheet");C.setAttribute("type","text/css");C.setAttribute("href",A)}}if(typeof C!="undefined"){document.getElementsByTagName("head")[0].appendChild(C)}}function k_loader(){k_loader2()}function k_loader2(){}function k_inplaceeditor(A,C,B){new Ajax.InPlaceEditor("id","/demoajaxreturn.html",{rows:15,cols:40})}function kengine_tiny_presubmit(A){tinyMCE.get(A).save()}function k_xajax_getDivValues(H){var E=false;if(arguments.length>1&&arguments[1]==true){E=true}var G="";if(arguments.length>2){G=arguments[2]}var F="<xjxquery><q>";var D=new Array();D[0]=jQuery("#"+H+" input");D[1]=jQuery("#"+H+" select");D[2]=jQuery("#"+H+" textarea");for(var B=0;B<3;B++){for(var C=0;C<D[B].length;C++){if(!D[B][C].name){continue}if(D[B][C].name.substring(0,G.length)!=G){continue}if(D[B][C].type&&(D[B][C].type=="radio"||D[B][C].type=="checkbox")&&D[B][C].checked==false){continue}if(D[B][C].disabled&&D[B][C].disabled==true&&E==false){continue}var A=D[B][C].name;if(A){if(F!="<xjxquery><q>"){F+="&"}if(D[B][C].type=="select-multiple"){for(var B=0;B<D[B][C].length;B++){if(D[B][C].options[B].selected==true){F+=A+"="+encodeURIComponent(D[B][C].options[B].value)+"&"}}}else{F+=A+"="+encodeURIComponent(D[B][C].value)}}}}F+="</q></xjxquery>";return F}function k_portal_login_window(B,A){jQuery.modal('<div id="'+B+'"></div>',{containerCss:{position:"absolute",height:"auto"},onShow:function(C){xajax_xajax_kengine_anonymous_portal_login("form",B,A)},onClose:function(C){jQuery.modal.close()}});location.href="#start"}function k_modal_xajax(B,A){jQuery.modal('<div id="'+B+'"></div>',{containerCss:{position:"absolute",height:"auto"},onShow:A,onClose:function(C){jQuery.modal.close()}});location.href="#start"}function var_dump(A){if(typeof A=="object"){return"Type: "+typeof (A)+((A.constructor)?"\nConstructor: "+A.constructor:"")+"\nValue: "+A}else{return"Type: "+typeof (A)+"\nValue: "+A}}function kengine_news_google_maps(E,D,C,A,B){jQuery(E).jmap({mapType:"hybrid"});jQuery(E).addFeed({feed:"http://digitalspaghetti.me.uk/my.kml",mapCenter:[52.239180084321,21.015043258667]})}function k_hint(C,B,A){if(!A||typeof A!="object"){A={showURL:false}}if(jQuery(C).data("tooltip_set")!=1){jQuery(C).attr("title",B).tooltip(A).data("tooltip_set",1).trigger("mouseover")}}function k_timeoutform(B,A,C){jQuery().stopTime(A);jQuery().oneTime(C,A,B)};