function doBump(r,k,b,p,l,m,A,n,a,g,v,q,j,e,d,c,u){x=0;var o=r.replace(/\./,"");var y=new Array();var B=null;B=$$(r);B.each(function(F){var E=F.get("href");if(F.get("href").indexOf("^")==0){var G=F.get("href").replace("^","");$(G).setStyle("display","none")}var i=F.get("href").split("/");var f=i[i.length-1].split(".");f=f[0];if(F.get("href").indexOf(".jpg")!=-1||F.get("href").indexOf(".png")!=-1||F.get("href").indexOf(".gif")!=-1){var D=Asset.image(F.get("href"),{onLoad:function(J,I){var H=F.get("href").split("/");var I=H[H.length-1].split(".");I=I[0];if(!$(I)){J.set("id",I);J.setStyle("display","none");J.inject(document.body)}}})}F.set("id",o+"_"+x);++x});var z="";var x=0;var t=0;if(!k){k=750}if(!b){b=250}if(!p){p="000"}if(!l){l="000"}if(!m||m>1){m=0.3}if(!A){A=7}if(!n){n=2}if(!a){a="303132"}if(!g){g=10}if(!v){v="000"}if(!q){q=4}if(!j){j=new Fx.Transition(Fx.Transitions.Quad.easeInOut,k)}if(!e){e=new Fx.Transition(Fx.Transitions.Quad.easeOut,b)}if(!c){c="center center"}if(!u){u="no-repeat"}if(!d){d="http://is.muni.cz/el/1433/test/Etech135/styl/bumpbox/images/ajax-loader.gif"}var C="iconsets/"+q+"/";closeBtnPos=n+10;closeBtnPos=-closeBtnPos;nextBtnPos=n+20;prevBtnPos=n+20;prevBtnPos=-prevBtnPos;$$(r).addEvent("click",function(T){T=new Event(T).stop();if($("grow")!=null){$("grow").dispose()}if(this.get("rev")!=null){var Y=this.get("rev")}var Q=this.get("href");var N=this.get("id");var M=N.split(/_/);N=M[1];maxw=0;maxh=0;var aa="";$$("object").setStyle("display","none");if(this.get("rel")!=null){var X=this.get("rel").split("-");maxw=X[0];maxh=X[1]}if(this.get("title")!=null){aa=this.get("title")}if(this.get("href")!=null){hr=this.get("href")}if(maxw==0){maxw=640}if(maxh==0){maxh=480}if(Q.indexOf(".jpg")!=-1||Q.indexOf(".gif")!=-1||Q.indexOf(".png")!=-1){img=new Image();img.src=Q;maxw=img.width;maxh=img.height}w=window.getSize().x.toInt();h=window.getSize().y.toInt();s=window.getScrollTop();var K=(w)/2;var G=(h)/2;var V=(w-maxw)/2;var P=((h-maxh)/2)+s;var S=n+"px solid #"+a;var D="#"+p+"  url("+d+") "+u+" "+c;if($("grow")!=null){$("grow").dispose()}var f=new Element("div",{styles:{width:"1px",height:"1px",position:"absolute",border:S,padding:"4px",background:D,left:K,top:G,cursor:"pointer",display:"block","z-index":"100000"},id:"grow"});$(f).setStyles({"-moz-border-radius":A+"px","-webkit-border-radius":A+"px","border-radius":A+"px"});var L=window.getScrollTop();bg=new Element("div",{styles:{background:"#"+l,width:"100%",height:"100%",opacity:m,position:"absolute",top:L,left:0},id:"bg"});if(Browser.Engine.name=="trident"&&Browser.Engine.version==4){var F=window.getHeight();$(bg).setStyle("height",F)}var I=new Element("img",{styles:{width:"24px",height:"24px",position:"absolute",top:closeBtnPos+"px",right:closeBtnPos+"px","z-index":"100000"},src:C+"closed.png",id:"nycloser"});I.addEvent("click",function(af){bg.dispose();$(f).getChildren().dispose();w=window.getSize().x.toInt();h=window.getSize().y.toInt();s=window.getScrollTop();var ac=(w)/2;var ab=(h)/2;var ae=(w-maxw)/2;var ad=((h-maxh)/2)+s;E.start({width:[maxw,1],height:[maxh,1],left:[ae,ac],top:[ad,ab+s]})});if(Browser.Engine.name!="trident"){window.addEvent("keyup",function(af){if(af.key=="esc"){bg.dispose();$(f).getChildren().dispose();w=window.getSize().x.toInt();h=window.getSize().y.toInt();s=window.getScrollTop();var ac=(w)/2;var ab=(h)/2;var ae=(w-maxw)/2;var ad=((h-maxh)/2)+s;E.start({width:[maxw,1],height:[maxh,1],left:[ae,ac],top:[ad,ab+s]})}})}else{document.addEvent("keyup",function(af){if(af.key=="esc"){bg.dispose();$(f).getChildren().dispose();w=window.getSize().x.toInt();h=window.getSize().y.toInt();s=window.getScrollTop();var ac=(w)/2;var ab=(h)/2;var ae=(w-maxw)/2;var ad=((h-maxh)/2)+s;E.start({width:[maxw,1],height:[maxh,1],left:[ae,ac],top:[ad,ab+s]})}})}bg.inject(document.body);f.injectInside(document.body);I.injectInside(f);window.addEvent("scroll",function(){$(bg).setStyle("top",window.getScrollTop());w=window.getSize().x.toInt();h=window.getSize().y.toInt();s=window.getScrollTop();var ac=(w)/2;var ab=(h)/2;var ae=(w-maxw)/2;var ad=((h-maxh)/2)+s;$(f).setStyle("top",ad)});var i=new Fx.Morph($("grow"),{transition:j,duration:k,wait:"link",onComplete:function(){$(f).dispose()}});var E=new Fx.Morph($("grow"),{transition:e,duration:b,wait:"link",onComplete:function(){$(f).dispose()}});var J=new Fx.Morph($("grow"),{transition:j,duration:k,wait:"link",onComplete:function(){if(d!=null){var al="#"+p+"  url("+d+") "+u+" "+c;$(f).setStyle("background",al)}else{$(f).setStyle("background","#"+p)}if($("prev")!=null){$("prev").setStyle("display","block")}if($("next")!=null){$("next").setStyle("display","block")}$("grow").setStyle("-moz-box-shadow","3px 3px "+g+"px #"+v);$("grow").setStyle("-webkit-box-shadow","3px 3px "+g+"px #"+v);$("grow").setStyle("box-shadow","3px 3px "+g+"px #"+v);if(Q.indexOf(".jpg")!=-1||Q.indexOf(".gif")!=-1||Q.indexOf(".png")!=-1){var af=new Element("img");af.src=Q;maxw=af.width;maxh=af.height;document.id(af).inject(f)}else{if(Q.indexOf(".flv")==-1&&Q.indexOf(".mp3")==-1&&Q.indexOf(".pdf")==-1&&Q.indexOf(".swf")==-1&&Q.indexOf(".jpg")==-1&&Q.indexOf(".gif")==-1&&Q.indexOf(".png")==-1&&Q.indexOf("^")==-1){var ad=new Element("div");ad.setStyle("display","block");ad.setStyle("overflow","hidden");ad.setStyle("padding","20px");ad.setStyle("height",maxh-40);ad.setStyle("width",maxw-40);ad.setAttribute("id","htmlframe");ad.inject(f);var aj=new IFrame();aj.setStyle("overflow","auto");aj.set("frameborder","0");aj.setStyle("width",maxw-40);aj.setStyle("height",maxh-40);aj.src=Q;aj.inject(ad)}else{if(Q.indexOf(".pdf")!=-1){var ab=new Element("div",{styles:{padding:"20px",height:maxh-40,width:maxw-40}});ab.inject(f);var aj=new IFrame();aj.src=Q;aj.setStyle("width",maxw-40);aj.setStyle("height",maxh-40);aj.inject(ab)}else{if(Q.indexOf(".swf")!=-1){var ab=new Element("div",{styles:{padding:"20px",height:maxh-40,width:maxw-40},id:"swf"});ab.inject(f);var ae=new Swiff(Q,{id:"video",width:maxw-40,height:maxh-40,container:ab})}else{if(Q.indexOf(".flv")!=-1){var ab=new Element("div",{styles:{padding:"20px",height:maxh-40,width:maxw-40}});ab.inject(f);var ag=flowplayer(ab,"http://is.muni.cz/el/1433/test/Etech135/styl/bumpbox/flowplayer/flowplayer.swf",{plugins:{viral:{url:"http://is.muni.cz/el/1433/test/Etech135/styl/bumpbox/flowplayer/flowplayer.viralvideos-3.2.3.swf",embed:{title:"artViper&trade; designstudio www.artviper.de - copy and paste following code to your page"}}},buffering:true,autoplay:true,clip:Q,wmode:"transparent",id:"player"})}else{if(Q.indexOf(".mp3")!=-1){var ab=new Element("div",{styles:{padding:"20px",height:maxh-50,width:maxw-40,"z-index":"1",id:"flowplay"}});ab.inject(f);ag=flowplayer(ab,"http://is.muni.cz/el/1433/test/Etech135/styl/bumpbox/flowplayer/flowplayer.swf",{buffering:true,autoplay:true,clip:Q,wmode:"transparent",plugins:{controls:{fullscreen:false,height:30,autoHide:false},myContent:{url:"http://is.muni.cz/el/1433/test/Etech135/styl/bumpbox/flowplayer/flowplayer.audio.swf",bottom:0,width:maxw-20,left:0,borderRadius:10,html:aa,onClick:function(){this.hide()}}},playlist:[{url:Q,autoPlay:true}]})}else{if(Q.indexOf("youtube")==0||Q.indexOf("vimeo")==0){var ad=new Element("div");ad.setStyle("display","block");ad.setStyle("overflow","hidden");ad.setStyle("padding","20px");ad.setStyle("height",maxh-40);ad.setStyle("width",maxw-40);ad.setAttribute("id","htmlframe");ad.inject(f);var aj=new IFrame();aj.setStyle("overflow","auto");aj.set("frameborder","0");aj.setStyle("width",maxw-40);aj.setStyle("height",maxh-40);aj.set("class","youtube-player");aj.src=Q;aj.inject(ad)}else{if(Q.indexOf("^")==0){Q=Q.replace("^","");var ab=new Element("div",{styles:{padding:"20px",height:"auto",width:"auto",color:"#fff",overflow:"hidden"}});var ai=document.id(Q).get("html");ab.set("html",ai);ab.inject(f)}}}}}}}}var ah=30+n;ah=-ah;if(aa!=""){var ak=new Element("div",{styles:{height:"auto","line-height":"15px",position:"absolute",bottom:ah+"px",left:"0px",color:"#eee",opacity:"0.9","z-index":"10000",background:"#111","-webkit-border-radius":"5px","-moz-border-radius":"5px","-border-radius":"5px",display:"block",padding:"6px 5px",border:"1px solid #"+a}});ak.set("html",aa);ak.inject(f);ak.set("id","maindesc")}if(Y!=null){var ac=new Element("div",{styles:{width:"auto",height:"20px",position:"absolute",left:"20px",bottom:"-41px",color:"#eee","text-decoration":"none",background:"#000","-webkit-border-radius":"5px","-moz-border-radius":"5px","-border-radius":"5px",display:"block",padding:"10px","border-bottom":"2px solid #303132","border-left":"2px solid #303132","border-right":"2px solid #303132"}});ac.inject(f);ac.set("html",Y);ac.set("id","addondesc")}}});$(bg).addEvent("click",function(ab){bg.dispose();$(f).getChildren().dispose();E.start({width:[maxw,1],height:[maxh,1],left:[V,K],top:[P,G+s]})});var H=this.get("id");var X=H.split(/_/);X=X[1].toInt()+1;if(B[X]!=null){var Z=(maxh-30)/2;var W=new Element("a",{styles:{width:"30px",height:"30px",background:"url("+C+"next.png) no-repeat center center",position:"absolute",right:-nextBtnPos+"px",bottom:Z,display:"none"},id:"next"});W.addEvent("click",function(ad){if(Browser.Engine.trident){if(document.id("video")!=null){document.id("video").stop()}if(document.id("swf")!=null){document.id("swf").dispose()}}document.id("bg").dispose();document.id("grow").dispose();var ac=N.toInt()+1;var ab=o+"_"+ac;document.id(ab).fireEvent("click",this)});W.inject(f)}var R=this.get("id");var U=R.split("_");U=U[1].toInt()-1;if(B[U]!=null){var Z=(maxh-30)/2;var O=new Element("a",{styles:{width:"30px",height:"30px",background:"url("+C+"prev.png) no-repeat center center",position:"absolute",left:prevBtnPos+"px",bottom:Z,display:"none"},id:"prev"});O.addEvent("click",function(ad){if(Browser.Engine.trident){if(document.id("video")!=null){document.id("video").stop()}if(document.id("swf")!=null){document.id("swf").dispose()}}document.id("bg").dispose();document.id("grow").dispose();var ac=N.toInt()-1;var ab=o+"_"+ac;N=ac;document.id(ab).fireEvent("click",this)});O.inject(f)}J.start({width:[1,maxw],height:[1,maxh],left:[K,V],top:[G+s,P]})})};