var standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var closingSign="x";var loadingSign="L.O.A.D.I.N.G";var borderDV=2;var spaceDV=20;var borderColorDV="#ffffff";var bgColorDV="black";var bgOpacity=50;var dv=new DVObject();function initDV(){dv.writeHtmlCode();DHTML_init();dv.setAttributes()}function DVObject(){this.htmlCode;this.parentDV;this.childDVCont;this.childDVClose;this.childDVLoad;this.errorMessage;this.img=new DVImg();this.swapImg;this.allImages;this.currentDisplayedImage}function DVImg(){this.src;this.width;this.height;this.border;this.alt}DVObject.prototype.writeHtmlCode=function(){dv.htmlCode='<div id="parentDV" onClick="dv.hideDV();" >\n<div id="childDVCont"><img src="" width="10" height="10" border="0" alt="" title="" name="picDV"></div>\n<div id="childDVLoad">'+loadingSign+'</div><div id="childDVClose" onClick="dv.hideDV();" title="Schliessen!">'+closingSign+"</div></div>";window.document.writeln(dv.htmlCode)};DVObject.prototype.setAttributes=function(){dv.parentDV=getElem("id","parentDV",null);dv.childDVCont=getElem("id","childDVCont",null);dv.childDVClose=getElem("id","childDVClose",null);dv.childDVLoad=getElem("id","childDVLoad",null);with(dv.parentDV.style){position="absolute";zIndex=100;border=borderDV+"px solid "+borderColorDV;visibility="hidden"}with(dv.childDVCont.style){position="relative";zIndex=1;visibility="hidden"}with(dv.childDVClose.style){position="absolute";zIndex=2;cursor="pointer";right=borderDV+"px";top=borderDV+"px";width=16+"px";height=16+"px";textAlign="center";verticalAlign="middle";border=borderDV+"px solid "+borderColorDV;padding=2;color=borderColorDV;backgroundColor=bgColorDV;visibility="hidden"}dv.setOpacityStyle(dv.childDVClose.style);with(dv.childDVLoad.style){position="absolute";zIndex=2;left=borderDV+"px";bottom=borderDV+"px";height=20+"px";textAlign="center";verticalAlign="middle";border=borderDV+"px solid "+borderColorDV;padding=2;color=borderColorDV;backgroundColor=bgColorDV;visibility="hidden"}dv.setOpacityStyle(dv.childDVLoad.style);this.swapImg=document.images.picDV;dv.errorMessage=""};DVObject.prototype.showDV=function(imgString){dv.hideDV();dv.checkImgParameter(imgString);if(dv.errorMessage==""){var width=dv.img.width+2*borderDV+2*spaceDV;var height=dv.img.height+2*borderDV+2*spaceDV;var mid=dv.getMiddlePosition(width,height);with(dv.swapImg){src=dv.img.src;title=dv.img.alt;alt=dv.img.title;width=mid.width-(2*borderDV+2*spaceDV);height=mid.height-(2*borderDV+2*spaceDV)}with(dv.parentDV.style){width=mid.width-(2*borderDV+2*spaceDV);height=mid.height-(2*borderDV+2*spaceDV);top=parseInt(mid.top)+borderDV+spaceDV+"px";left=parseInt(mid.left)+borderDV+spaceDV+"px";visibility="visible"}with(dv.childDVCont.style){visibility="visible"}with(dv.childDVClose.style){visibility="visible"}dv.showLoadDV()}else{alert(dv.errorMessage)}};DVObject.prototype.hideDV=function(){with(dv.parentDV.style){visibility="hidden"}with(dv.childDVCont.style){visibility="hidden"}with(dv.childDVClose.style){visibility="hidden"}with(dv.childDVLoad.style){visibility="hidden"}with(dv.swapImg){src="";width=10;height=10}};DVObject.prototype.showLoadDV=function(){with(dv.childDVLoad.style){visibility="visible"}dv.checkLoad()};DVObject.prototype.checkLoad=function(){if(document.images.picDV.complete==false||dv.img.src==""){window.setTimeout("dv.checkLoad()",200)}else{with(dv.childDVLoad.style){visibility="hidden"}}};DVObject.prototype.checkImgParameter=function(C){if(C){var B=/src=["]?[a-zA-Z0-9.:_\-\/]+["]?/;var E=/width=["]?\d+["]?/;var D=/height=["]?\d+["]?/;var A=/alt=["]?[a-zA-Z0-9._\/&; ]*["]?/;var F=/[a-zA-Z0-9._\/]+/;if(dv.regSearch(C,B,"test")){dv.img.src=dv.regSearch(C,B,"exec")+"";dv.img.src=dv.img.src.substring(5,dv.img.src.length-1)}else{dv.errorMessage+="# The given Parameter within the dv.showDV-call does not consist of an src='...'!\n"}if(dv.regSearch(C,E,"test")){dv.img.width=parseInt(dv.regSearchNumber(dv.regSearch(C,E,"exec")))}else{dv.errorMessage+="# The given Parameter within the dv.showDV-call does not consist of an width='...'!\n"}if(dv.regSearch(C,D,"test")){dv.img.height=parseInt(dv.regSearchNumber(dv.regSearch(C,D,"exec")))}else{dv.errorMessage+="# The given Parameter within the dv.showDV-call does not consist of an hidth='...'!\n"}if(dv.regSearch(C,A,"test")){dv.img.alt=dv.regSearch(C,A,"exec")+"";dv.img.alt=dv.img.alt.substring(5,dv.img.alt.length-1);dv.img.alt=dv.decodeHtml(dv.img.alt);dv.img.title=dv.img.alt}}else{dv.errorMessage+="# The Parameter within the dv.showDV-call is null!\n"}};DVObject.prototype.decodeHtml=function(A){A=A.replace(/&auml;/,"ä");A=A.replace(/&Auml;/,"Ä");A=A.replace(/&uuml;/,"ü");A=A.replace(/&Uuml;/,"Ü");A=A.replace(/&ouml;/,"ö");A=A.replace(/&Ouml;/,"Ö");A=A.replace(/&szlig;/,"ß");return A};DVObject.prototype.regSearch=function(A,B,C){if(C=="exec"){return B.exec(A)}else{if(C=="test"){return B.test(A)}else{dv.errorMessage+="There is no fct-parameter given in the regSearch-call!"}}};DVObject.prototype.regSearchNumber=function(A){if(!isFinite(A)){return dv.regSearch(A,/[-]?\d+([,.]\d+)?/,"exec")}else{dv.errorMessage+="The given string ("+A+") does not consist of a number!\n"}};DVObject.prototype.getMiddlePosition=function(C,F){var A=dv.getScreenSize("width","inner");var E=dv.getScreenSize("height","inner");var B=new Array(4);if(A<C||E<F){if(A/C>E/F){var D=F;F=E;C=F*C/D}else{var D=C;C=A;F=C*F/D}}B.width=Math.round(C);B.height=Math.round(F);if(A/C<E/F){B.top=Math.round((E-F)/2)+"px"}else{B.top=Math.round((E-F)/2)+"px"}if(A/C>E/F){B.left=Math.round((A-C)/2)+"px"}else{B.left=Math.round((A-C)/2)+"px"}if(MS){B.top=parseInt(B.top)+standardbody.scrollTop+"px";B.left=parseInt(B.left)+standardbody.scrollLeft+"px"}else{B.top=parseInt(B.top)+window.pageYOffset+"px";B.left=parseInt(B.left)+window.pageXOffset+"px"}return B};DVObject.prototype.getScreenSize=function(B,A){var F=navigator.userAgent.toLowerCase();var E=((F.indexOf("msie")!=-1)&&(F.indexOf("opera")==-1));var D=(window.document.getElementById)?true:false;var C;if(A=="inner"){if(E){if(B=="width"){C=standardbody.offsetWidth}else{C=standardbody.offsetHeight}}else{if(D){if(B=="width"){C=window.innerWidth}else{C=window.innerHeight}}else{BrowserFailure()}}}else{if(A=="outer"){if(B=="width"){C=screen.availWidth}if(B=="height"){C=screen.availHeight}}else{if(A=="max"){if(B=="width"){C=screen.width}if(B=="height"){C=screen.height}}else{ParameterFailure()}}}return C};DVObject.prototype.setAllImagesArray=function(A){dv.allImages=A};DVObject.prototype.showLastImage=function(){var A=dv.allImages[parseInt(dv.currentDisplayedImage)-1];dv.showDV(A)};DVObject.prototype.showNextImage=function(){var A=dv.allImages[parseInt(dv.currentDisplayedImage)+1];dv.showDV(A)};DVObject.prototype.setOpacityStyle=function(styleObject){with(styleObject){opacity=dv.getOpacityValue("opacity");filter=dv.getOpacityValue("filter");mozOpacity=dv.getOpacityValue("mozOpacity")}};DVObject.prototype.getOpacityValue=function(B){if(B=="opacity"){return"."+bgOpacity}else{if(B=="filter"){return"alpha(opacity="+bgOpacity+")"}else{if(B=="mozOpacity"){var A=bgOpacity/100;return""+A}else{alert("Unknown kind of opacityStyle! Could not set opacity.");return bgOpacity}}}};DVObject.prototype.getPositionOfImage=function(B){for(var A in dv.allImages){if(dv.allImages[A]==B){return A}}};var DHTML=0,DOM=0,MS=0,NS=0,OP=0;function DHTML_init(){if(window.opera){OP=1}if(document.getElementById){DHTML=1;DOM=1}if(document.all&&!OP){DHTML=1;MS=1}if(document.layers&&!OP){DHTML=1;NS=1}}function getElem(D,C,B){var A;if(DOM){if(D.toLowerCase()=="id"){if(typeof document.getElementById(C)=="object"){A=document.getElementById(C)}else{A=void (0)}return(A)}else{if(D.toLowerCase()=="name"){if(typeof document.getElementsByName(C)=="object"){A=document.getElementsByName(C)[B]}else{A=void (0)}return(A)}else{if(D.toLowerCase()=="tagname"){if(typeof document.getElementsByTagName(C)=="object"||(OP&&typeof document.getElementsByTagName(C)=="function")){A=document.getElementsByTagName(C)[B]}else{A=void (0)}return(A)}else{return void (0)}}}}else{if(MS){if(D.toLowerCase()=="id"){if(typeof document.all[C]=="object"){A=document.all[C]}else{A=void (0)}return(A)}else{if(D.toLowerCase()=="tagname"){if(typeof document.all.tags(C)=="object"){A=document.all.tags(C)[B]}else{A=void (0)}return(A)}else{if(D.toLowerCase()=="name"){if(typeof document[C]=="object"){A=document[C]}else{A=void (0)}return(A)}else{return void (0)}}}}else{if(NS){if(D.toLowerCase()=="id"||D.toLowerCase()=="name"){if(typeof document[C]=="object"){A=document[C]}else{A=void (0)}return(A)}else{if(D.toLowerCase()=="index"){if(typeof document.layers[C]=="object"){A=document.layers[C]}else{A=void (0)}return(A)}else{return void (0)}}}}}}initDV();function checkLoad(){};
