/* This script is part of dimX, the Web-CMS from adera (http://adera.de) dimX was developed by Wolfgang Modrow @author Wolfgang Modrow @copyright Wolfgang Modrow */ function checkGbForm(){var b=document.gb_form;if(!b){return false}var a="";if(b.gb_name.value==""){a+=gbErr1}if(b.gb_email.value!=""&&!checkEmail(b.gb_email.value)){a+=gbErr3}if(b.gb_text.value==""){a+=gbErr4}if(b.gb_code.value==""||b.gb_code.value.length!=4){a+=gbErr5}if(a!=""){alert(a);return false}return true}function checkEmail(b){var a=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([������a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})$");return a.test(b)}function dimx_checkFormFileTypes(l){if(!l||!dimx_fileFields){return false}var c=false;var m=false;for(var e in dimx_fileFields){var b=l.elements[e];if(b&&b.value!=""){found=false;var a=b.value.lastIndexOf(".");if(a>0){var o=b.value.substring(a+1).toLowerCase();var g=dimx_fileFields[e].split("|");for(var d=0;d";a.onclick=album_imgs[j][3]?function(){win=window.open("","_blank","menubar=yes,scrollbars=yes,resizable=yes,width="+(album_imgs[j][4]+40)+",height="+(album_imgs[j][5]+50));win.document.write(g);win.document.close()}:"";a.style.cursor=album_imgs[j][3]?"pointer":"default";var c=document.getElementById("album_headRow");var d=Math.round(album_imgs[j][1]/album_imgs[j][4]*100);if(c){var b=album_imgs[j][3]?albumStr1+d+"%)
":"";if(f){b=""+f+"
"+b}c.innerHTML=b+"
"}a.onload=function(){var k=document.images.album_img;k.width=w;k.height=h;k.title=f};a.src=pageMediaDir+"/"+album_imgs[j][0]}function showNextImg(){currentImg=currentImg==album_imgs.length-1?0:currentImg+1;showImg(currentImg)}function showPrevImg(){currentImg=currentImg==0?album_imgs.length-1:currentImg-1;showImg(currentImg)}var curr=false;var currId=0;var fsize=0;var targetSize=subFontSize;var dx_vis=[]var hideAll=false;var showTimer=null;var hideTimer=null;var dx_unBlockTimer=null;var dx_blockedId=0;function showSubFor(a){if(showTimer){window.clearTimeout(showTimer)}if(hideTimer){window.clearTimeout(hideTimer)}if(currId==a){return}showTimer=window.setTimeout("showSubFor_now("+a+")",menuDelay)}function showSubFor_now(e){if(showTimer){window.clearTimeout(showTimer)}hideAll=false;if(currId==e){if(hideTimer){window.clearTimeout(hideTimer)}return}var d=document.getElementById("sub_"+e);if(!d){hideSubsBeyond(0);dx_vis=[]dx_blockedId=0;return}fsize=targetSize;anim();var b=0,a=0,g;if(!mPath[e]){hideSubsBeyond(0);aId="area_"+e;var c=document.getElementById(aId);g=new Array(10,20,12,22);if(c.coords){g=c.coords.split(",");cont=document.getElementById("menubar");var f=getOffsetPos(cont)}else{var f=getOffsetPos(c)}b=f[0]+parseInt(g[0]);a=f[1]+parseInt(g[1]);if(subMode=="top"){a+=(parseInt(g[3]-parseInt(g[1])-5));b+=borderL}else{b+=(parseInt(g[2])-margLeft);a+=-1}}else{var j=document.getElementById("td_"+e);var f=getOffsetPos(j);b=f[0]+j.offsetWidth;a=f[1]}d.style.top=(a+4)+"px";d.style.left=(b-2)+"px";fsize=0;curr=d;currId=e;dx_vis[dx_vis.length]=d;anim()}function getOffsetPos(c){var b=0,a=0;while(c){b+=c.offsetLeft?c.offsetLeft:0;a+=c.offsetTop?c.offsetTop:0;c=c.offsetParent}return new Array(b,a)}function hideSubsBeyond(c){if(showTimer){window.clearTimeout(showTimer)}if(hideTimer){window.clearTimeout(hideTimer)}hideAll=false;fsize=targetSize;anim();curr=false;currId=0;for(var a=dx_vis.length-1;a>=0;a--){var b=dx_vis[a];if(b.id=="sub_"+c){return}dx_vis.pop();b.style.left="-9000px";b.style.top="-1000px"}}function checkHideAll(){if(hideAll){hideSubsBeyond(0);currId=0;curr=false;dx_vis=[];dx_blockedId=0}}function prepHideAll(){if(showTimer){window.clearTimeout(showTimer)}hideAll=true;hideTimer=window.setTimeout("checkHideAll()",dx_subHideTime)}function anim(){if(!dx_useSubAnim){return}if(curr&&fsize<=targetSize){for(var a=0;a-1){c.className="sub_"+dx_subCls[a]}if(d){showSubFor_now(d)}}function dx_ststart(c,a,b,d){dx_tstart(d,1);if(d>0){dx_sov(c,a,b,d)}}function dx_stend(b,a){dx_unBlockTimer=window.setTimeout("dx_unblock()",50);dx_sout(b,a)}function dx_sclk(a){if(dx_blockedId==0){if(isNaN(a)){location.href=a+sessionString1}else{location.href="/index.php?id="+a+sessionString1}}}function dx_clk(a){dx_sclk(a);return dx_blockedId==0}function dx_tstart(a,d){dx_subHideTime=dx_hideSubTimeTouch;if(dx_unBlockTimer){window.clearTimeout(dx_unBlockTimer)}dx_blockedId=0;var e=false;if(a>0){for(var b=0;b0){dx_blockedId=a}}function dx_tend(){dx_unBlockTimer=window.setTimeout("dx_unblock()",100);prepHideAll()}function dx_unblock(){dx_blockedId=0}function dx_sout3(d,a,b,c){d.className="nav3_sub"+b+"_"+dx_subCls[a]+c;prepHideAll()}function dx_sov3(e,a,c,f,b,d){hideSubsBeyond(c);if(a>-1){e.className="nav3_sub"+b+"_"+dx_subCls[a]+d}if(f){showSubFor3(f)}}function dx_ststart3(e,a,c,f,b,d){dx_tstart(f,1);if(f>0){dx_sov3(e,a,c,f,b,d)}}function dx_stend3(d,a,b,c){dx_unBlockTimer=window.setTimeout("dx_unblock()",50);dx_sout3(d,a,b,c)}function showSubFor3(m){if(showTimer){window.clearTimeout(showTimer)}hideAll=false;if(currId==m){if(hideTimer){window.clearTimeout(hideTimer)}return}var b=document.getElementById("sub_"+m);if(!b){hideSubsBeyond(0);dx_vis=[]dx_blockedId=0;return}var g=0,f=0,l;if(!mPath[m]){hideSubsBeyond(0);aId="area_"+m;var d=document.getElementById(aId);var c=getOffsetPos(d);g=c[0];f=c[1]+d.offsetHeight}else{var k=mPath[m][mPath[m].length-1];var e=document.getElementById("sub_"+k);var j=document.getElementById("td_"+m);var c=getOffsetPos(j);var a=getOffsetPos(e);g=a[0]+e.offsetWidth;f=c[1]}b.style.top=(f+0)+"px";b.style.left=(g-0)+"px";curr=b;currId=m;dx_vis[dx_vis.length]=b}function dimx_switchBlock(a){var c=document.getElementsByTagName("tr");for(var b=0;ba.length){var j=b[d].id.substr(a.length);if(c.indexOf(j)>-1){b[d].style.display="none"}}}}}function dimx_switchDisplay(a){var b=document.getElementById(a);if(b&&b.style){b.style.display=b.style.display=="none"?"block":"none"}}function arrangeTitle(){return}function verschicken(){email()}function toBlock(b){var a=document.getElementById("blk_"+b);if(a){a.scrollIntoView()}else{window.scrollTo(0,0)}}function dimx_hideRedirLink(){var b=document.getElementById("dimx_redirLinkTable");if(b){b.style.display="none";var a=new Image();a.src="/cmd.php?cmd=hrl"+sessionString}}function nav2_go(a){if(isNaN(a)){location.href=a+sessionString1}else{location.href="index.php?id="+a+sessionString1}}function nav2_cls(d,e,a,c){var b=e?"nav2_h":"nav2_n";b=a?b+"2":b;d.className=b;if(a){d.style.paddingLeft=c}}function writeTx(a){document.write(a)}function dimx_setImgSrc(a,b){a.src=b}function dimx_popup(c,a,d){var b=window.open(c,a,d);b.focus()}var dimx_exNavPar=[];function dimx_extraNav2(k,j,f,e,c){var l=document.getElementById("blk_"+k+"_"+j);if(l){ex_els=l.getElementsByTagName("A");var d=location.protocol+"//"+location.host+location.pathname;var b=location.protocol+"//"+location.host;for(i=0;i