// This is Nux s.r.o. standard library
NLoad=function(emailClass,loginId){this.emailClass=emailClass;this.loginId=loginId;this.loadEmails();this.focusLogin();return};NLoad.load=function(emailClass,loginId){var loader=function(){new NLoad(emailClass,loginId);};return $(window).ready(loader);};NLoad.prototype.loadEmails=function(){$("span."+this.emailClass).each(function(){var text=$(this).text();if($(this).attr("title"))var address=$(this).attr("title");else var address=text;address=address.replace('&#64;','@');address=address.replace('&#46;','.');$(this).html('<a href="mailto:'+address+'">'+text+'</a>')});return};NLoad.prototype.focusLogin=function(){var login=document.getElementById(this.loginId);if(login)login.focus();return};function openWindow(location){window.open(location);return false};
NController=function(instanceName){this.instanceName=instanceName};NController.prototype.email=function(coded,linkname,makeLink,sameAddress){var cipher='ZabcXYdeWVfUTghSiRQjklPmONnMoLpqKJrIHstGuFvEwDxCyBz1A234568790';var shift=coded.length;var link='';var ltr=null;for(var i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);link+=(ltr)}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;link+=(cipher.charAt(ltr))}}if(sameAddress)linkname=link;if(makeLink!==false)document.write('<a class="email" href="mailto:'+link+'">'+linkname+'</a>');else document.write(linkname);return};NController.prototype.flashEmbed=function(flashPath,width,height,bgColor,quality,menu,border,transparent,flashVars,loop){var embedVar="";loop=loop==null?"true":loop;transparent=transparent==null?"transparent":transparent;border=border==null?"false":border;quality=quality==null?"high":quality;embedVar='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flashPath+'" /><param name="flashvars" value="'+flashVars+'" /><param name="quality" value="'+quality+'" /><param name="menu" value="'+menu+'" /><param name="loop" value="'+loop+'" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="'+transparent+'" /><embed src="'+flashPath+'" flashvars="'+flashVars+'" quality="'+quality+'" menu="'+menu+'" loop="'+loop+'" bgcolor="'+bgColor+'" width="'+width+'" height="'+height+'" wmode="'+transparent+'" name="'+flashPath+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.write(embedVar)};NController.prototype.getOffset=function(what,id){var el=document.getElementById(id);var offset=0;do{switch(what){case"left":offset+=el.offsetLeft;break;case"top":offset+=el.offsetTop;break}el=el.offsetParent}while(el);return offset};NController.prototype.getLeft=function(id){return this.getOffset('left',id)};NController.prototype.getTop=function(id){return this.getOffset('top',id)};NController.prototype.getScrollLeft=function(){return document.documentElement.scrollLeft||window.pageXOffset||0};NController.prototype.getScrollTop=function(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(window.pageYOffset)return window.pageYOffset;else return 0};NController.prototype.windowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||0};NController.prototype.windowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||0};NController.prototype.windowScrollWidth=function(){return document.documentElement.scrollWidth};NController.prototype.windowScrollHeight=function(){return document.documentElement.scrollHeight};var controller=new NController("controller");var loader = new NLoad();NLoad.load("noJsEmail", "username");

// Textarea resizers
NAreaResizer=function(){$(window).ready(function(){$("textarea").each(function(){if(!window.parseInt($(this).css("min-width")))$(this).css("min-width",$(this).width());if(!window.parseInt($(this).css("max-width")))$(this).css("max-width",$(this).width());if(!$(this).css("resize")){var a=window.parseInt($(this).css("padding-left"))+window.parseInt($(this).css("padding-right"));var b=window.parseInt($(this).css("width"))+a;var c=window.parseInt($(this).css("height"))+window.parseInt($(this).css("padding-top"))+window.parseInt($(this).css("padding-bottom"));var d=window.parseInt($(this).css("margin-left"));var e=$('<div style="position:relative;" />');var f=$('<div style="cursor:nw-resize;width:11px;height:10px;background:url(http://www.aras.cz/lib/content/images/resizer.png) no-repeat;right:'+(19+a)+'px;bottom:3px;position:absolute;z-index:100;" />');$(e).css("width",b+"px");$(e).css("height",c+"px");$(e).css("margin-left",d+"px");$(e).css("margin-right",$(this).css("margin-right"));$(e).css("margin-top",$(this).css("margin-top"));$(e).css("margin-bottom",$(this).css("margin-bottom"));$(e).css("clear",$(this).css("clear"));$(this).css("margin-left","0");$(this).css("margin-right","0");$(this).css("margin-top","0");$(this).css("margin-bottom","0");$(this).css("position","absolute");$(this).css("left","0");$(this).css("resize","none");$(this).wrap(e);$(this).after(f);if($(this).css("overflow")!="auto")$(this).css("overflow-y","scroll");if($(this).css('clear') != 'both' && $(this).parent().prev("label").css("float")=="left")$(this).parent().css("margin-left",$(this).parent().prev("label").width()+window.parseInt($(this).parent().prev("label").css("padding-right"))+"px");$(f).bind("mousedown",{element:this,handle:f},function(a){$(document).bind("mousemove",{element:a.data.element},function(a){var b=a.clientX;var c=a.clientY;if(!NAreaResizer.prototype.prevMouseX)NAreaResizer.prototype.prevMouseX=b;if(!NAreaResizer.prototype.prevMouseY)NAreaResizer.prototype.prevMouseY=c;var d=window.parseInt($(a.data.element).css("min-width"));var e=window.parseInt($(a.data.element).css("max-width"));var f=window.parseInt($(a.data.element).css("min-height"));var g=window.parseInt($(a.data.element).css("max-height"));if(!window.parseInt($(a.data.element).css("min-height"))||window.parseInt($(a.data.element).css("min-height"))<0)f=NAreaResizer.prototype.minHeight;if(!window.parseInt($(a.data.element).css("max-height"))||window.parseInt($(a.data.element).css("max-height"))<0)g=NAreaResizer.prototype.maxHeight;var h=NAreaResizer.prototype.prevMouseX-b;var i=NAreaResizer.prototype.prevMouseY-c;var j=window.parseInt($(a.data.element).parent().css("width"))-h;var k=window.parseInt($(a.data.element).parent().css("height"))-i;var l=window.parseInt($(a.data.element).css("width"))-h;var m=window.parseInt($(a.data.element).css("height"))-i;var n=window.parseInt($(a.data.handle).css("right"))+h;var o=window.parseInt($(a.data.handle).css("bottom"))+i;NAreaResizer.prototype.prevMouseX=b;NAreaResizer.prototype.prevMouseY=c;if(l>d&&l<e){$(a.data.element).parent().css("width",j+"px");$(a.data.element).css("width",l+"px")}if(m>f&&m<g){$(a.data.element).parent().css("height",k+"px");$(a.data.element).css("height",m+"px")}});$(document).bind("mouseup",{handle:a.data.handle},function(a){$(document).unbind('mousemove');$(document).unbind('mouseup');NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0})})}})})};NAreaResizer.prototype.minHeight=50;NAreaResizer.prototype.maxHeight=1e3;NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0;new NAreaResizer;

// This is Nux s.r.o. standard library
NLoad=function(emailClass,loginId){this.emailClass=emailClass;this.loginId=loginId;this.loadEmails();this.focusLogin();return};NLoad.load=function(emailClass,loginId){var loader=function(){new NLoad(emailClass,loginId);};return $(window).ready(loader);};NLoad.prototype.loadEmails=function(){$("span."+this.emailClass).each(function(){var text=$(this).text();if($(this).attr("title"))var address=$(this).attr("title");else var address=text;address=address.replace('&#64;','@');address=address.replace('&#46;','.');$(this).html('<a href="mailto:'+address+'">'+text+'</a>')});return};NLoad.prototype.focusLogin=function(){var login=document.getElementById(this.loginId);if(login)login.focus();return};function openWindow(location){window.open(location);return false};
NController=function(instanceName){this.instanceName=instanceName};NController.prototype.email=function(coded,linkname,makeLink,sameAddress){var cipher='ZabcXYdeWVfUTghSiRQjklPmONnMoLpqKJrIHstGuFvEwDxCyBz1A234568790';var shift=coded.length;var link='';var ltr=null;for(var i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);link+=(ltr)}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;link+=(cipher.charAt(ltr))}}if(sameAddress)linkname=link;if(makeLink!==false)document.write('<a class="email" href="mailto:'+link+'">'+linkname+'</a>');else document.write(linkname);return};NController.prototype.flashEmbed=function(flashPath,width,height,bgColor,quality,menu,border,transparent,flashVars,loop){var embedVar="";loop=loop==null?"true":loop;transparent=transparent==null?"transparent":transparent;border=border==null?"false":border;quality=quality==null?"high":quality;embedVar='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flashPath+'" /><param name="flashvars" value="'+flashVars+'" /><param name="quality" value="'+quality+'" /><param name="menu" value="'+menu+'" /><param name="loop" value="'+loop+'" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="'+transparent+'" /><embed src="'+flashPath+'" flashvars="'+flashVars+'" quality="'+quality+'" menu="'+menu+'" loop="'+loop+'" bgcolor="'+bgColor+'" width="'+width+'" height="'+height+'" wmode="'+transparent+'" name="'+flashPath+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.write(embedVar)};NController.prototype.getOffset=function(what,id){var el=document.getElementById(id);var offset=0;do{switch(what){case"left":offset+=el.offsetLeft;break;case"top":offset+=el.offsetTop;break}el=el.offsetParent}while(el);return offset};NController.prototype.getLeft=function(id){return this.getOffset('left',id)};NController.prototype.getTop=function(id){return this.getOffset('top',id)};NController.prototype.getScrollLeft=function(){return document.documentElement.scrollLeft||window.pageXOffset||0};NController.prototype.getScrollTop=function(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(window.pageYOffset)return window.pageYOffset;else return 0};NController.prototype.windowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||0};NController.prototype.windowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||0};NController.prototype.windowScrollWidth=function(){return document.documentElement.scrollWidth};NController.prototype.windowScrollHeight=function(){return document.documentElement.scrollHeight};var controller=new NController("controller");var loader = new NLoad();NLoad.load("noJsEmail", "username");

// Textarea resizers
NAreaResizer=function(){$(window).ready(function(){$("textarea").each(function(){if(!window.parseInt($(this).css("min-width")))$(this).css("min-width",$(this).width());if(!window.parseInt($(this).css("max-width")))$(this).css("max-width",$(this).width());if(!$(this).css("resize")){var a=window.parseInt($(this).css("padding-left"))+window.parseInt($(this).css("padding-right"));var b=window.parseInt($(this).css("width"))+a;var c=window.parseInt($(this).css("height"))+window.parseInt($(this).css("padding-top"))+window.parseInt($(this).css("padding-bottom"));var d=window.parseInt($(this).css("margin-left"));var e=$('<div style="position:relative;" />');var f=$('<div style="cursor:nw-resize;width:11px;height:10px;background:url(http://www.aras.cz/lib/content/images/resizer.png) no-repeat;right:'+(19+a)+'px;bottom:3px;position:absolute;z-index:100;" />');$(e).css("width",b+"px");$(e).css("height",c+"px");$(e).css("margin-left",d+"px");$(e).css("margin-right",$(this).css("margin-right"));$(e).css("margin-top",$(this).css("margin-top"));$(e).css("margin-bottom",$(this).css("margin-bottom"));$(e).css("clear",$(this).css("clear"));$(this).css("margin-left","0");$(this).css("margin-right","0");$(this).css("margin-top","0");$(this).css("margin-bottom","0");$(this).css("position","absolute");$(this).css("left","0");$(this).css("resize","none");$(this).wrap(e);$(this).after(f);if($(this).css("overflow")!="auto")$(this).css("overflow-y","scroll");if($(this).css('clear') != 'both' && $(this).parent().prev("label").css("float")=="left")$(this).parent().css("margin-left",$(this).parent().prev("label").width()+window.parseInt($(this).parent().prev("label").css("padding-right"))+"px");$(f).bind("mousedown",{element:this,handle:f},function(a){$(document).bind("mousemove",{element:a.data.element},function(a){var b=a.clientX;var c=a.clientY;if(!NAreaResizer.prototype.prevMouseX)NAreaResizer.prototype.prevMouseX=b;if(!NAreaResizer.prototype.prevMouseY)NAreaResizer.prototype.prevMouseY=c;var d=window.parseInt($(a.data.element).css("min-width"));var e=window.parseInt($(a.data.element).css("max-width"));var f=window.parseInt($(a.data.element).css("min-height"));var g=window.parseInt($(a.data.element).css("max-height"));if(!window.parseInt($(a.data.element).css("min-height"))||window.parseInt($(a.data.element).css("min-height"))<0)f=NAreaResizer.prototype.minHeight;if(!window.parseInt($(a.data.element).css("max-height"))||window.parseInt($(a.data.element).css("max-height"))<0)g=NAreaResizer.prototype.maxHeight;var h=NAreaResizer.prototype.prevMouseX-b;var i=NAreaResizer.prototype.prevMouseY-c;var j=window.parseInt($(a.data.element).parent().css("width"))-h;var k=window.parseInt($(a.data.element).parent().css("height"))-i;var l=window.parseInt($(a.data.element).css("width"))-h;var m=window.parseInt($(a.data.element).css("height"))-i;var n=window.parseInt($(a.data.handle).css("right"))+h;var o=window.parseInt($(a.data.handle).css("bottom"))+i;NAreaResizer.prototype.prevMouseX=b;NAreaResizer.prototype.prevMouseY=c;if(l>d&&l<e){$(a.data.element).parent().css("width",j+"px");$(a.data.element).css("width",l+"px")}if(m>f&&m<g){$(a.data.element).parent().css("height",k+"px");$(a.data.element).css("height",m+"px")}});$(document).bind("mouseup",{handle:a.data.handle},function(a){$(document).unbind('mousemove');$(document).unbind('mouseup');NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0})})}})})};NAreaResizer.prototype.minHeight=50;NAreaResizer.prototype.maxHeight=1e3;NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0;new NAreaResizer;

// This is Nux s.r.o. standard library
NLoad=function(emailClass,loginId){this.emailClass=emailClass;this.loginId=loginId;this.loadEmails();this.focusLogin();return};NLoad.load=function(emailClass,loginId){var loader=function(){new NLoad(emailClass,loginId);};return $(window).ready(loader);};NLoad.prototype.loadEmails=function(){$("span."+this.emailClass).each(function(){var text=$(this).text();if($(this).attr("title"))var address=$(this).attr("title");else var address=text;address=address.replace('&#64;','@');address=address.replace('&#46;','.');$(this).html('<a href="mailto:'+address+'">'+text+'</a>')});return};NLoad.prototype.focusLogin=function(){var login=document.getElementById(this.loginId);if(login)login.focus();return};function openWindow(location){window.open(location);return false};
NController=function(instanceName){this.instanceName=instanceName};NController.prototype.email=function(coded,linkname,makeLink,sameAddress){var cipher='ZabcXYdeWVfUTghSiRQjklPmONnMoLpqKJrIHstGuFvEwDxCyBz1A234568790';var shift=coded.length;var link='';var ltr=null;for(var i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);link+=(ltr)}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;link+=(cipher.charAt(ltr))}}if(sameAddress)linkname=link;if(makeLink!==false)document.write('<a class="email" href="mailto:'+link+'">'+linkname+'</a>');else document.write(linkname);return};NController.prototype.flashEmbed=function(flashPath,width,height,bgColor,quality,menu,border,transparent,flashVars,loop){var embedVar="";loop=loop==null?"true":loop;transparent=transparent==null?"transparent":transparent;border=border==null?"false":border;quality=quality==null?"high":quality;embedVar='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flashPath+'" /><param name="flashvars" value="'+flashVars+'" /><param name="quality" value="'+quality+'" /><param name="menu" value="'+menu+'" /><param name="loop" value="'+loop+'" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="'+transparent+'" /><embed src="'+flashPath+'" flashvars="'+flashVars+'" quality="'+quality+'" menu="'+menu+'" loop="'+loop+'" bgcolor="'+bgColor+'" width="'+width+'" height="'+height+'" wmode="'+transparent+'" name="'+flashPath+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.write(embedVar)};NController.prototype.getOffset=function(what,id){var el=document.getElementById(id);var offset=0;do{switch(what){case"left":offset+=el.offsetLeft;break;case"top":offset+=el.offsetTop;break}el=el.offsetParent}while(el);return offset};NController.prototype.getLeft=function(id){return this.getOffset('left',id)};NController.prototype.getTop=function(id){return this.getOffset('top',id)};NController.prototype.getScrollLeft=function(){return document.documentElement.scrollLeft||window.pageXOffset||0};NController.prototype.getScrollTop=function(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(window.pageYOffset)return window.pageYOffset;else return 0};NController.prototype.windowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||0};NController.prototype.windowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||0};NController.prototype.windowScrollWidth=function(){return document.documentElement.scrollWidth};NController.prototype.windowScrollHeight=function(){return document.documentElement.scrollHeight};var controller=new NController("controller");var loader = new NLoad();NLoad.load("noJsEmail", "username");

// Textarea resizers
NAreaResizer=function(){$(window).ready(function(){$("textarea").each(function(){if(!window.parseInt($(this).css("min-width")))$(this).css("min-width",$(this).width());if(!window.parseInt($(this).css("max-width")))$(this).css("max-width",$(this).width());if(!$(this).css("resize")){var a=window.parseInt($(this).css("padding-left"))+window.parseInt($(this).css("padding-right"));var b=window.parseInt($(this).css("width"))+a;var c=window.parseInt($(this).css("height"))+window.parseInt($(this).css("padding-top"))+window.parseInt($(this).css("padding-bottom"));var d=window.parseInt($(this).css("margin-left"));var e=$('<div style="position:relative;" />');var f=$('<div style="cursor:nw-resize;width:11px;height:10px;background:url(http://www.aras.cz/lib/content/images/resizer.png) no-repeat;right:'+(19+a)+'px;bottom:3px;position:absolute;z-index:100;" />');$(e).css("width",b+"px");$(e).css("height",c+"px");$(e).css("margin-left",d+"px");$(e).css("margin-right",$(this).css("margin-right"));$(e).css("margin-top",$(this).css("margin-top"));$(e).css("margin-bottom",$(this).css("margin-bottom"));$(e).css("clear",$(this).css("clear"));$(this).css("margin-left","0");$(this).css("margin-right","0");$(this).css("margin-top","0");$(this).css("margin-bottom","0");$(this).css("position","absolute");$(this).css("left","0");$(this).css("resize","none");$(this).wrap(e);$(this).after(f);if($(this).css("overflow")!="auto")$(this).css("overflow-y","scroll");if($(this).css('clear') != 'both' && $(this).parent().prev("label").css("float")=="left")$(this).parent().css("margin-left",$(this).parent().prev("label").width()+window.parseInt($(this).parent().prev("label").css("padding-right"))+"px");$(f).bind("mousedown",{element:this,handle:f},function(a){$(document).bind("mousemove",{element:a.data.element},function(a){var b=a.clientX;var c=a.clientY;if(!NAreaResizer.prototype.prevMouseX)NAreaResizer.prototype.prevMouseX=b;if(!NAreaResizer.prototype.prevMouseY)NAreaResizer.prototype.prevMouseY=c;var d=window.parseInt($(a.data.element).css("min-width"));var e=window.parseInt($(a.data.element).css("max-width"));var f=window.parseInt($(a.data.element).css("min-height"));var g=window.parseInt($(a.data.element).css("max-height"));if(!window.parseInt($(a.data.element).css("min-height"))||window.parseInt($(a.data.element).css("min-height"))<0)f=NAreaResizer.prototype.minHeight;if(!window.parseInt($(a.data.element).css("max-height"))||window.parseInt($(a.data.element).css("max-height"))<0)g=NAreaResizer.prototype.maxHeight;var h=NAreaResizer.prototype.prevMouseX-b;var i=NAreaResizer.prototype.prevMouseY-c;var j=window.parseInt($(a.data.element).parent().css("width"))-h;var k=window.parseInt($(a.data.element).parent().css("height"))-i;var l=window.parseInt($(a.data.element).css("width"))-h;var m=window.parseInt($(a.data.element).css("height"))-i;var n=window.parseInt($(a.data.handle).css("right"))+h;var o=window.parseInt($(a.data.handle).css("bottom"))+i;NAreaResizer.prototype.prevMouseX=b;NAreaResizer.prototype.prevMouseY=c;if(l>d&&l<e){$(a.data.element).parent().css("width",j+"px");$(a.data.element).css("width",l+"px")}if(m>f&&m<g){$(a.data.element).parent().css("height",k+"px");$(a.data.element).css("height",m+"px")}});$(document).bind("mouseup",{handle:a.data.handle},function(a){$(document).unbind('mousemove');$(document).unbind('mouseup');NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0})})}})})};NAreaResizer.prototype.minHeight=50;NAreaResizer.prototype.maxHeight=1e3;NAreaResizer.prototype.prevMouseX=0;NAreaResizer.prototype.prevMouseY=0;new NAreaResizer;


