function be_on_top(){if(top.frames.length>0){top.location.href=self.location}}function docdate(){var a="";a=document.lastModified;document.writeln("This document was last modified on ");document.write(a);document.writeln()}function docurl(){var a="";a=window.location.href;document.write(a)}function find_fkt(){document.findform.submit()}function felder(a){document.card.Picture.value="../"+a+".jpg";if(document.cookie){document.card.SName.value=Get_Cookie("sname");document.card.SEmail.value=Get_Cookie("saddress")}return true}function error_report(a){document.feedback.error_title.value=decodeURIComponent(a);if(document.cookie){document.feedback.name.value=Get_Cookie("sname");document.feedback.from.value=Get_Cookie("saddress")}return true}function init_title(b){var a=b.lastIndexOf("=")+1;var d=b.length;var c=b.substring(a,d);return c}function feedback_name(){if(document.cookie){document.feedback.name.value=Get_Cookie("sname");document.feedback.from.value=Get_Cookie("saddress")}return true}function send_card(a){Set_Cookie("sname",document.card.SName.value,a);Set_Cookie("saddress",document.card.SEmail.value,a);return true}function send_feedback(a){Set_Cookie("sname",document.feedback.name.value,a);Set_Cookie("saddress",document.feedback.from.value,a);return true}function Get_Cookie(c){var d=document.cookie.indexOf(c+"=");var a=d+c.length+1;if((!d)&&(c!=document.cookie.substring(0,c.length))){return null}if(d==-1){return null}var b=document.cookie.indexOf(";",a);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(a,b))}function Set_Cookie(b,d,a,f,c,e){document.cookie=b+"="+escape(d)+((a)?";expires="+a.toGMTString():"")+((f)?";path="+f:"")+((c)?";domain="+c:"")+((e)?";secure":"")}var message="Copyright Notice%3A All images contained on this website remain the property of J%F6rg Dauerer. Images may not be downloaded%2C reproduced%2C copied%2C projected%2C or used in any way without written permission. If you want to use the images please contact me %28%22Feedback%22%29";function right(a){if((document.layers||(document.getElementById&&!document.all))&&(a.which==2||a.which==3)){alert(unescape(message));return false}else{if(event.button==2||event.button==3){alert(unescape(message));return false}}return true}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=right}else{if(document.all&&!document.getElementById){document.onmousedown=right}}document.oncontextmenu=new Function("alert(unescape(message));return false");function openNewWindow(b){var a=new Request.JSON({url:"/cgi-bin/stat.pl",method:"post",data:JSON.encode({file:b}),});a.send();myWin=window.open(b,"win2","width=800,height=550,left=0,top=0,scrollbars=yes");myWin.focus()}function show_tip(b){var a=window.getScrollSize();$$(b).each(function(e,d){var c=new Element("div",{"class":"tip-container",styles:{visibility:"hidden",display:"none"}});c.inject(e,"after");new Element("h2",{"class":"tip-title",html:"EXIF information of the digital photo"}).inject(c);var f=0;exif_obj=new Object();exif_obj.counter=0;e.addEvents({mouseenter:function(){del();var i=new Element("p",{id:"exif_txt",html:"waiting for exif information ..."});i.inject(c);c.setStyles({height:0,visibility:"hidden",display:"none",overflow:"hidden"});c.set("morph",{duration:500,transition:Fx.Transitions}).morph({height:f});e.set({title:""});if(exif_obj.counter==0){var h=location.href.lastIndexOf("/");var l=location.href.lastIndexOf(".");var k=location.href.substring(h+1,l);var h=location.href.indexOf("/",10);var l=location.href.lastIndexOf("/");var j=location.href.substring(h,l);var g=new Request.JSON({url:"/cgi-bin/exif.pl",method:"post",data:JSON.encode({file:k,dir:j}),onFailure:function(){},onSuccess:function(m,n){exif_obj=JSON.decode(n);exif_obj.counter=0;exif_obj=build_table(exif_obj);show(c,exif_obj,i,f)}});g.send()}else{show(c,exif_obj,i,f)}},mouseleave:function(){c.set("morph",{duration:500,transition:Fx.Transitions,onComplete:function(){c.setStyles({visibility:"hidden",display:"none"});del()}}).morph({height:0})}})})}function build_table(c){var b=new Element("table",{id:"exif_tab","class":"exitab",style:"margin:0"});var a=new Element("tbody").inject(b);c.exif.each(function(f,e){if($chk(f)){var g=new Element("tr").inject(a);var d=new Element("td",{"class":"exi",html:f.text}).inject(g);var d=new Element("td",{"class":"exir",html:f.val}).inject(g);c.counter++}});c.tab=b;return c}function show(a,d,b,e){var c=33+d.counter*15;a.setStyles({height:e,visibility:"visible",display:"block",overflow:"hidden"});d.tab.replaces(b);a.set("morph",{duration:500,transition:Fx.Transitions}).morph({height:c})}function del(){if($chk($("exif_tab"))){$("exif_tab").dispose()}if($chk($("exif_txt"))){$("exif_txt").dispose()}}function rating(c){var a=$(document.body).getElements("ul.rating li a");var b=new Array("bad","poor","ok","good","excellent");var d=new Array("nostar rating","onestar rating","twostar rating","threestar rating","fourstar rating","fivestar rating");exif_obj=new Object();var e;var f=0;exch_data(0,c,f,exif_obj,d);a.each(function(h,g){var j=b[g];h.addEvents({mouseenter:function(){var i=Cookie.read(c);if(i){e=new Element("p",{id:"star_desc","class":"no",html:"You voted '"+i+"'"}).replaces($("star_desc"))}else{e=new Element("p",{id:"star_desc","class":"no",html:j}).replaces($("star_desc"))}},mouseleave:function(){var i="votes";if(num==1){i="vote"}e=new Element("p",{id:"star_desc","class":"no",html:"Rating: <b>"+quot.toFixed(1)+"</b> from "+num+" "+i}).replaces($("star_desc"))},click:function(){var i=Cookie.read(c);f=1;if(!i){exch_data(g+1,c,f,exif_obj,d);var i=Cookie.write(c,j,{duration:30,path:"/"})}}})})}function exch_data(b,c,f,e,d){var a=new Request.JSON({url:"/cgi-bin/rate.pl",method:"post",data:JSON.encode({file:c,rating:b}),onFailure:function(){},onSuccess:function(g,h){e=JSON.decode(h);if(e.num==0){quot=0}else{quot=e.sum/e.num}num=e.num;$("rat").set("class",d[quot.toFixed(0)]);var j="votes";if(num==1){j="vote"}text=new Element("p",{id:"star_desc","class":"no",html:"Rating: <b>"+quot.toFixed(1)+"</b> from "+num+" "+j}).replaces($("star_desc"));var i=$("rat_id");i.setStyles({visibility:"visible",display:"inline"}).fade("hide");if(f==0){(function(){i.set("tween",{duration:500}).setOpacity(0).fade("in")}).delay(100)}else{i.fade("show")}}});a.send()}var Observer=new Class({Implements:[Options,Events],options:{periodical:false,delay:1000},initialize:function(c,a,b){this.setOptions(b);this.addEvent("onFired",a);this.element=$(c)||$$(c);this.value=this.element.get("value");if(this.options.periodical){this.timer=this.changed.periodical(this.options.periodical,this)}else{this.element.addEvent("keyup",this.changed.bind(this))}},changed:function(){var a=this.element.get("value");if($equals(this.value,a)){return}this.clear();this.value=a;this.timeout=this.onFired.delay(this.options.delay,this)},setValue:function(a){this.value=a;this.element.set("value",a);return this.clear()},onFired:function(){this.fireEvent("onFired",[this.value,this.element])},clear:function(){$clear(this.timeout||null);return this}});var $equals=function(b,a){return(b==a||JSON.encode(b)==JSON.encode(a))};var Autocompleter={};Autocompleter.Base=new Class({options:{minLength:1,markQuery:true,width:"inherit",maxChoices:10,injectChoice:null,customChoices:null,className:"autocompleter-choices",zIndex:42,delay:400,observerOptions:{},fxOptions:{},onOver:$empty,onSelect:$empty,onSelection:$empty,onShow:$empty,onHide:$empty,onBlur:function(a){if(a.value==""){a.value="Search..."}},onFocus:function(a){if(a.value=="Search..."){a.value=""}},autoSubmit:true,overflow:false,overflowMargin:25,selectFirst:false,filter:null,filterCase:false,filterSubset:false,forceSelect:false,selectMode:true,choicesMatch:null,multiple:false,separator:", ",separatorSplit:/\s*[,;]\s*/,autoTrim:true,allowDupes:false,cache:true,relative:false},initialize:function(b,a){this.element=$(b);this.setOptions(a);this.build();this.observer=new Observer(this.element,this.prefetch.bind(this),$merge({delay:this.options.delay},this.options.observerOptions));this.queryValue=null;if(this.options.filter){this.filter=this.options.filter.bind(this)}var c=this.options.selectMode;this.typeAhead=(c=="type-ahead");this.selectMode=(c===true)?"selection":c;this.cached=[]},build:function(){if($(this.options.customChoices)){this.choices=this.options.customChoices}else{this.choices=new Element("ul",{"class":this.options.className,styles:{zIndex:this.options.zIndex}}).inject(document.body);this.relative=false;if(this.options.relative){this.choices.inject(this.element,"after");this.relative=this.element.getOffsetParent()}this.fix=new OverlayFix(this.choices)}if(!this.options.separator.test(this.options.separatorSplit)){this.options.separatorSplit=this.options.separator}this.fx=(!this.options.fxOptions)?null:new Fx.Tween(this.choices,$merge({property:"opacity",link:"cancel",duration:200},this.options.fxOptions)).addEvent("onStart",Chain.prototype.clearChain).set(0);this.element.setProperty("autocomplete","off").addEvent((Browser.Engine.trident||Browser.Engine.webkit)?"keydown":"keypress",this.onCommand.bind(this)).addEvent("click",this.onCommand.bind(this,[false])).addEvent("focus",this.toggleFocus.create({bind:this,arguments:true,delay:100})).addEvent("blur",this.toggleFocus.create({bind:this,arguments:false,delay:100}))},destroy:function(){if(this.fix){this.fix.destroy()}this.choices=this.selected=this.choices.destroy()},toggleFocus:function(a){this.focussed=a;if(!a){this.hideChoices(true)}this.fireEvent((a)?"onFocus":"onBlur",[this.element])},onCommand:function(b){if(!b&&this.focussed){return this.prefetch()}if(b&&b.key&&!b.shift){switch(b.key){case"enter":if(this.element.value!=this.opted){return true}if(this.selected&&this.visible){this.choiceSelect(this.selected);return !!(this.options.autoSubmit)}break;case"up":case"down":if(!this.prefetch()&&this.queryValue!==null){var a=(b.key=="up");this.choiceOver((this.selected||this.choices)[(this.selected)?((a)?"getPrevious":"getNext"):((a)?"getLast":"getFirst")](this.options.choicesMatch),true)}return false;case"esc":case"tab":this.hideChoices(true);break}}return true},setSelection:function(g){var h=this.selected.inputValue,i=h;var b=this.queryValue.length,d=h.length;if(h.substr(0,b).toLowerCase()!=this.queryValue.toLowerCase()){b=0}if(this.options.multiple){var f=this.options.separatorSplit;i=this.element.value;b+=this.queryIndex;d+=this.queryIndex;var c=i.substr(this.queryIndex).split(f,1)[0];i=i.substr(0,this.queryIndex)+h+i.substr(this.queryIndex+c.length);if(g){var a=/[^\s,]+/;var e=i.split(this.options.separatorSplit).filter(a.test,a);if(!this.options.allowDupes){e=[].combine(e)}var j=this.options.separator;i=e.join(j)+j;d=i.length}}this.observer.setValue(i);this.opted=i;if(g||this.selectMode=="pick"){b=d}this.element.selectRange(b,d);this.fireEvent("onSelection",[this.element,this.selected,i,h])},showChoices:function(){var c=this.options.choicesMatch,g=this.choices.getFirst(c);this.selected=this.selectedValue=null;if(this.fix){var h=this.element.getCoordinates(this.relative),d=this.options.width||"auto";this.choices.setStyles({left:h.left-4,top:h.bottom,width:(d===true||d=="inherit")?h.width+23:d+23})}if(!g){return}if(!this.visible){this.visible=true;this.choices.setStyle("display","");if(this.fx){this.fx.start(1)}this.fireEvent("onShow",[this.element,this.choices])}if(this.options.selectFirst||this.typeAhead||g.inputValue==this.queryValue){this.choiceOver(g,this.typeAhead)}var b=this.choices.getChildren(c),a=this.options.maxChoices;var f={overflowY:"hidden",height:""};this.overflown=false;if(b.length>a){var e=b[a-1];f.overflowY="scroll";f.height=e.getCoordinates(this.choices).bottom;this.overflown=true}this.choices.setStyles(f);this.fix.show()},hideChoices:function(a){if(a){var c=this.element.value;if(this.options.forceSelect){c=this.opted}if(this.options.autoTrim){c=c.split(this.options.separatorSplit).filter($arguments(0)).join(this.options.separator)}this.observer.setValue(c)}if(!this.visible){return}this.visible=false;this.observer.clear();var b=function(){this.choices.setStyle("display","none");this.fix.hide()}.bind(this);if(this.fx){this.fx.start(0).chain(b)}else{b()}this.fireEvent("onHide",[this.element,this.choices])},prefetch:function(){var f=this.element.value,e=f;if(this.options.multiple){var c=this.options.separatorSplit;var a=f.split(c);var b=this.element.getCaretPosition();var g=f.substr(0,b).split(c);var d=g.length-1;b-=g[d].length;e=a[d]}if(e.length<this.options.minLength){this.hideChoices()}else{if(e===this.queryValue||(this.visible&&e==this.selectedValue)){if(this.visible){return false}this.showChoices()}else{this.queryValue=e;this.queryIndex=b;if(!this.fetchCached()){this.query()}}}return true},fetchCached:function(){return false;if(!this.options.cache||!this.cached||!this.cached.length||this.cached.length>=this.options.maxChoices||this.queryValue){return false}this.update(this.filter(this.cached));return true},update:function(a){this.choices.empty();this.cached=a;if(!a||!a.length){this.hideChoices()}else{if(this.options.maxChoices<a.length&&!this.options.overflow){a.length=this.options.maxChoices}a.each(this.options.injectChoice||function(c){var b=new Element("li",{html:this.markQueryValue(c)});b.inputValue=c;this.addChoiceEvents(b).inject(this.choices)},this);this.showChoices()}},choiceOver:function(c,d){if(!c||c==this.selected){return}if(this.selected){this.selected.removeClass("autocompleter-selected")}this.selected=c.addClass("autocompleter-selected");this.fireEvent("onSelect",[this.element,this.selected,d]);if(!d){return}this.selectedValue=this.selected.inputValue;if(this.overflown){var f=this.selected.getCoordinates(this.choices),e=this.options.overflowMargin,g=this.choices.scrollTop,a=this.choices.offsetHeight,b=g+a;if(f.top-e<g&&g){this.choices.scrollTop=Math.max(f.top-e,0)}else{if(f.bottom+e>b){this.choices.scrollTop=Math.min(f.bottom-a+e,b)}}}if(this.selectMode){this.setSelection()}},choiceSelect:function(a){if(a){this.choiceOver(a)}this.setSelection(true);this.queryValue=false;this.hideChoices()},filter:function(b){var a=new RegExp(((this.options.filterSubset)?"":"^")+this.queryValue.escapeRegExp(),(this.options.filterCase)?"":"i");return(b||this.tokens).filter(a.test,a)},markQueryValue:function(a){return(!this.options.markQuery||!this.queryValue)?a:a.replace(new RegExp("("+((this.options.filterSubset)?"":"^")+this.queryValue.escapeRegExp()+")",(this.options.filterCase)?"":"i"),'<span class="autocompleter-queried">$1</span>')},addChoiceEvents:function(a){return a.addEvents({mouseover:this.choiceOver.bind(this,[a]),click:this.choiceSelect.bind(this,[a])})}});Autocompleter.Base.implement(new Events);Autocompleter.Base.implement(new Options);Autocompleter.Local=new Class({Extends:Autocompleter.Base,options:{minLength:0,delay:200},initialize:function(b,c,a){this.parent(b,a);this.tokens=c},query:function(){this.update(this.filter())}});Autocompleter.Ajax={};Autocompleter.Ajax.Base=new Class({Extends:Autocompleter.Base,options:{postVar:"value",postData:{},ajaxOptions:{},onRequest:$empty,onComplete:$empty},initialize:function(c,b){this.parent(c,b);var a=$(this.options.indicator);if(a){this.addEvents({onRequest:a.show.bind(a),onComplete:a.hide.bind(a)},true)}},query:function(){var a=$unlink(this.options.postData);a[this.options.postVar]=this.queryValue;this.fireEvent("onRequest",[this.element,this.request,a,this.queryValue]);this.request.send({data:a})},queryResponse:function(){this.fireEvent("onComplete",[this.element,this.request,this.response])}});Autocompleter.Ajax.Json=new Class({Extends:Autocompleter.Ajax.Base,initialize:function(c,b,a){this.parent(c,a);this.request=new Request.JSON($merge({url:b,link:"cancel"},this.options.ajaxOptions)).addEvent("onComplete",this.queryResponse.bind(this))},queryResponse:function(a){this.parent();this.update(a)}});Autocompleter.Ajax.Xhtml=new Class({Extends:Autocompleter.Ajax.Base,initialize:function(c,b,a){this.parent(c,a);this.request=new Request.HTML($merge({url:b,link:"cancel",update:this.choices},this.options.ajaxOptions)).addEvent("onComplete",this.queryResponse.bind(this))},queryResponse:function(a,b){this.parent();if(!b||!b.length){this.hideChoices()}else{this.choices.getChildren(this.options.choicesMatch).each(this.options.injectChoice||function(c){var d=c.innerHTML;c.inputValue=d;this.addChoiceEvents(c.set("html",this.markQueryValue(d)))},this);this.showChoices()}}});var OverlayFix=new Class({initialize:function(a){if(Browser.Engine.trident){this.element=$(a);this.relative=this.element.getOffsetParent();this.fix=new Element("iframe",{frameborder:"0",scrolling:"no",src:"javascript:false;",styles:{position:"absolute",border:"none",display:"none",filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"}}).inject(this.element,"after")}},show:function(){if(this.fix){var a=this.element.getCoordinates(this.relative);delete a.right;delete a.bottom;this.fix.setStyles($extend(a,{display:"",zIndex:(this.element.getStyle("zIndex")||1)-1}))}return this},hide:function(){if(this.fix){this.fix.setStyle("display","none")}return this},destroy:function(){this.fix=this.fix.destroy()}});Element.implement({getOffsetParent:function(){var a=this.getDocument().body;if(this==a){return null}if(!Browser.Engine.trident){return $(this.offsetParent)}var b=this;while((b=b.parentNode)){if(b==a||Element.getComputedStyle(b,"position")!="static"){return $(b)}}return null},getCaretPosition:function(){if(!Browser.Engine.trident){return this.selectionStart}this.focus();var a=document.selection.createRange();var b=this.createTextRange();a.setEndPoint("StartToStart",b);return a.text.length},selectRange:function(c,a){if(Browser.Engine.trident){var b=this.createTextRange();b.collapse(true);b.moveEnd("character",a);b.moveStart("character",c);b.select()}else{this.focus();this.setSelectionRange(c,a)}return this}});
