var app={};app.w3c=(document.createElement&&document.getElementsByTagName);app.trans={"timeout":{"pl":"Upłynął czas zapytania. Spróbuj wysłać formularz jeszcze raz.","en":"Request timed out. Try to submit the form again."}};app.byId=function(id){if(app.w3c){return document.getElementById(id);}return null;};app.inArray=function(_2,_3){return dojo.some(_3,function(_4){return _4==_2;});};app.clone=function(_5){function F(){};F.prototype=_5;return new F();};app.scrollIntoView=function(_6){if(_6.scrollIntoView){_6.scrollIntoView();}};app.Event=new function(){var _7=new Array;var _8=new Object;var _9=new Array;var _a=false;var _b=function(e){e.preventDefault=function(){this.returnValue=false;};e.stopPropagation=function(){this.cancelBubble=true;};return e;};var _d=function(){if(_a==true){return;}if(/KHTML|WebKit/i.test(navigator.userAgent)){if(/loaded|complete/.test(document.readyState)){_e();}else{setTimeout(_d,250);}}else{if(app.byId("__ie_onload")){return;}}return;};var _e=function(e){if(_a==true){return;}for(var i=0,l=_9.length;i<l;i++){_9[i](e);}_a=true;};this.isDomLoaded=function(){return _a;};this.addOnLoad=function(fn,_13){_9.push(fn);if(typeof _13!="undefined"&&_13===true){return;}setTimeout(_d,250);this.add(window,"load",_e);if(document.addEventListener){document.addEventListener("DOMContentLoaded",_e,false);}/*@cc_on @if (@_win32 || @_win64) document.write("<script id=__ie_onload defer src=\"//:\"></script>");app.byId("__ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){_e();}};@end @*/ };this.add=function(obj,_15,fn){if(obj.addEventListener){obj.addEventListener(_15,fn,false);_7.push(new Array(obj,_15,fn));}else{if(obj.attachEvent){var _17="";if(typeof obj.id!="undefined"&&obj.id!=""){_17=obj.id;}else{if(typeof obj.name!="undefined"&&obj.name!=""){_17=obj.name;}}if(typeof _8[_17+_15+fn]!="function"){_8[_17+_15+fn]=function(){fn.apply(window.event.srcElement,new Array(_b(((this.ownerDocument||this.document||this).parentWindow||window).event)));};obj.attachEvent("on"+_15,_8[_17+_15+fn]);_7.push(new Array(obj,_15,fn));}obj=null;}}};this.remove=function(obj,_19,fn){if(obj.removeEventListener){obj.removeEventListener(_19,fn,false);}else{if(obj.detachEvent){var _1b="";if(typeof obj.id!="undefined"&&obj.id!=""){_1b=obj.id;}else{if(typeof obj.name!="undefined"&&obj.name!=""){_1b=obj.name;}}obj.detachEvent("on"+_19,_8[_1b+_19+fn]);_8[_1b+_19+fn]=null;obj=null;}}};var _1c=function(){};this.addUnload=function(){this.add(window,"unload",_1c);};};app.html2dom=function(_1d,_1e){if(typeof _1e=="undefined"){_1e="div";}try{var _1f;var _20=null;try{_20=document.createRange();}catch(e){_20=null;}if(_20!=null&&_20.createContextualFragment){_20.selectNode(document.getElementsByTagName(_1e)[0]);_1f=_20.createContextualFragment(_1d);}else{var _21=document.createElement("div");_21.innerHTML=_1d;var _1f=document.createDocumentFragment();while(_21.childNodes.length>0){_1f.appendChild(_21.firstChild);if(_21.childNodes.length>1){_21.innerHTML=_1d.replace(_21.firstChild.innerHTML,"");}}}return _1f;}catch(e){alert(e.message);throw new Error("Create html fragment error");}};
