/* --oben-rechts-unten-links-- */ var take=1; var browser=1; var zoom=100; var taketop=0; /* takemaster-0-Punkt */ var takeleft=0; /* takemaster-0-Punkt */ var masterindex=-1; /* index des Masterbildes des Screens für mapdatasall */ var takemapdelay=0; /* wann wird das gesamtimagemap im screen eingeblendet ? */ var screenarr=new Array(); /* Daten des jeweiligen Takes */ var imagearr=new Array(); /* Imageobjete des jeweiligen Takes */ var imaparr=new Array(); /* Mapobjete des jeweiligen Takes */ var wavarr=new Array(); /* Wavobjete des jeweiligen Takes */ var delay=0; var imgmapstartindex=5000; var poparr=new Array(); /* offene popups */ /* Variablen bei Start holen */ function StartSetVars(a,b){ take=a; browser=b; showajcontent("gettakescreen","fillscreenarr",getRequestObject()); delay=0; document.body.innerHTML+="
"; /* Kontroll-Div für Mousewerte */ document.body.innerHTML+="
"; /* Mouseover-Div */} function GetPop(w,h,t,l,name,takeimpop,nowolf){ GetTooltip(0,0); var popheight=h-26-26; var popwidth=w-23-120-120-23; var wolfh=Math.round(popheight/6*5); var wolfw=zoomit(Math.round((wolfh*100/450)*264/100)); wolfh=zoomit(wolfh); var poptemp="
\"\"\"\"\"\"\"\"\"\"
"; poptemp+="
\"\"\"\"\"\"\"\"\"\"
"; poptemp+="
\"\"\"\"\"\"\"\"\"\"
"; poptemp+="
\"Fenster
"; poptemp+="
\"move\"
"; if(nowolf==0) poptemp+="
\"\"
"; if(!document.getElementById(name)){ var pop= document.createElement("div"); pop.id=name; pop.onclick=new Function("ModifyPoparr(1,\""+name+"\",\""+name+"_c\");"); document.body.appendChild(pop); var popc= document.createElement("div"); popc.id=name+"_c"; popc.onclick=new Function("ModifyPoparr(1,\""+name+"\",\""+name+"_c\");"); document.body.appendChild(popc); with(document.getElementById(name)){ style.position="absolute"; style.zIndex=120000+(10*poparr.length);} with(document.getElementById(name+"_c")){ style.position="absolute"; style.overflow="auto"; style.zIndex=120001+(10*poparr.length);} /* poparray füllen */ poparr.push(new Array(name,takeimpop,t,l));} else ModifyPoparr(1,name,name+"_c");/* wenn vorhanden, nach vorne bringen */ for(var p=0;p"; poptempc+=popcontent; poptempc+="
"; document.getElementById(name+"_c").innerHTML=poptempc; /* spezials z.B. fürs bräustüberl-Gästebuch */ if(name=="braeustueberl" && takeimpop==41){ showajcontent('getguestbookentry','',getRequestObject());}} function GetGuestbookEntry(bemerkungen,namen){ /* Feldeinträge aus Session holen */ while(bemerkungen.search("
")!=-1) bemerkungen=bemerkungen.replace("
","\n"); document.forms['bs_guest'].elements['bemerkungen'].value=bemerkungen; document.forms['bs_guest'].elements['namen'].value=namen;} function ResizePop(){ for(var p=0;p"+mapdatasall+"";} function zoomit(p){return Math.round(p/100*zoom);} function zoomitret(p){return Math.round(p*100/zoom);} function StartScreen(){ if(zoom>40){ var a=parseInt(document.getElementById("img_1").style.left); var b=parseInt(document.getElementById("img_1").style.width); document.getElementById("img_1").style.width=zoomit(b)+"px"; document.getElementById("img_1").style.left= a + Math.round((b-parseInt(document.getElementById("img_1").style.width))/2.1)+"px"; var a=parseInt(document.getElementById("img_2").style.left); var b=parseInt(document.getElementById("img_2").style.width); document.getElementById("img_2").style.width=zoomit(b)+"px"; document.getElementById("img_2").style.left= a + Math.round((b-parseInt(document.getElementById("img_2").style.width))/2)+"px"; var a=parseInt(document.getElementById("img_1").style.top); var b=parseInt(document.getElementById("img_1").style.height); document.getElementById("img_1").style.height=zoomit(b)+"px"; document.getElementById("img_1").style.top= a + Math.round(b-parseInt(document.getElementById('img_1').style.height))+"px"; document.getElementById("img_2").style.height=zoomit(parseInt(document.getElementById('img_2').style.height))+"px"; StartDelay(); return true;} else { take=1; showajcontent('switchtake&take=1','SwitchTakeReturn',getRequestObject()); /* Besucherzähler setzen */ showajcontent('setcount','',getRequestObject()); return true;}} function SwitchTakeReturn(takereturn){ if(take==takereturn) showajcontent("gettakescreen","fillscreenarr",getRequestObject()); delay=0;} function fillscreenarr(grafstring){ /* Screenarr: 0=zindex,1=delay,2=name,3=width,4=height,5=left,6=top,7=master,8=imapid,9=subat,10=wavurl */ /* Imaparr: 0=imapid,1=imapdatas,2=overgrafik,3=overclick,4=overhref,5=hreftarget */ screenarr=new Array(); imagearr=new Array(); imaparr=new Array(); wavarr=new Array(); /* grafik und Mapdatas teilen */ var temp=unescape(grafstring).split("+++"); /* screenarr füllen, grafiken und sounds laden */ var temp1=temp[0].split("++"); for(i=0;iwproz)zoom=Math.round(wproz); else zoom=Math.round(hproz); if(zoom>100) zoom=100; /* nur größere Bilder werden scaliert */ taketop=(document.images["WhHo"].height-zoomit(screenarr[i][4]))/2; takeleft=(document.images["WhBr"].width-zoomit(screenarr[i][3]))/2; masterindex=i; } /* zeitverzögerung für gesamt-imagemap ermitteln */ if(Number(screenarr[i][1])>takemapdelay) takemapdelay=Number(screenarr[i][1]);}} function ShowImage(i,addsub){ if(addsub==1) { /* if(screenarr[i][10]!=""){ var wavElement = document.createElement("object"); wavElement.setAttribute("data", wavarr[i].src); wavElement.setAttribute("type", "audio/x-wav"); document.getElementsByTagName("body")[0].appendChild(wavElement);} */ if(document.getElementById("img_"+i)) document.getElementById("img_"+i).style.display="block";} else if(document.getElementById("img_"+i)) document.getElementById("img_"+i).style.display="none";} function MakeLadezeitMap(i,imgmapstartindex,mapdatastempstring){ /* map */ var maplz = document.createElement("map"); maplz.name="imgmap_"+i; maplz.id="imgmap_"+i; document.getElementById("site").appendChild(maplz); /* mapareas */ maparr=mapdatastempstring.split("$"); for(k=0;kcopyright © 2009 by Wolfshöher Privatbrauerei, all rights reserved. Created by: JL-Design; Javascript required | Impressum | Kontakt |
"; showajcontent("getcount","",getRequestObject()); /* Bilder laden... und dazugehörige imaps */ var mapdatasall=new Array(); /* gesamtimap zum Abschluss des Ladevorganges */ for(i=0;i j,coords,href,target,onclick */ mapdatastempstring += "$"+j+"|"+mapdatastemp+"|"+imaparr[j][4]+"|"+imaparr[j][5]+"|"+imaparr[j][3]; if(!mapdatasall[screenarr[i][0]]) mapdatasall[screenarr[i][0]]=""; /* "undefined" entfernen... mehrere Maps auf einer zindex-ebene */ mapdatasall[screenarr[i][0]] += "\"\"";}} window.setTimeout("MakeLadezeitMap("+i+","+imgmapstartindex+",'"+mapdatastempstring+"')",screenarr[i][1]);} /* Images laden */ var imgi = document.createElement("img"); imgi.id="img_"+i; imgi.name="img_"+i; imgi.src=imagearr[i].src; imgi.border="0"; document.getElementById("site").appendChild(imgi); with(document.getElementById("img_"+i)){ style.display="none"; style.position="absolute"; style.top=(zoomit(screenarr[i][6])+taketop)+"px"; style.left=(zoomit(screenarr[i][5])+takeleft)+"px"; style.width=zoomit(screenarr[i][3]); style.height=zoomit(screenarr[i][4]); style.zIndex=screenarr[i][0];}}} /* ... und mit delay darstellen oder ausblenden */ for(i=0;i1){ for(var z=1;z"+form.elements[i].value; else formfields+="|"+form.elements[i].name+"=>"+form.elements[i].value;}} if(from!=2){ /* mails senden und bei Rückkehr des ajax-requests Session und Formular löschen */ showajcontent("sendmail&formname="+form.name+"&formfields="+formfields+"&from="+from,formSendReturn(form,from),getRequestObject());} else{ /* Guestbookeintrag schreiben */ showajcontent("guestbooksend&formname="+form.name+"&formfields="+formfields+"&from="+from,"",getRequestObject());}}} /* spezial für checkboxen */ if(aktion==4){ showajcontent("setsessionvar&formname="+form.name+"&fieldname="+target+"&eintrag="+fieldobj.value,"",getRequestObject());}} function formSendReturn(form,from){ changeFormField(form,1,"","",from); alert("Ihre Kontakt-eMail wurde erfolgreich versandt.");} function guestbookReturn(){ alert("Ihr Gästebucheintrag wurde übernommen."); GetPopContent('braeustueberl','4');} function GetImagegalerie(ordner,header){ showajcontent("getimagegalerie&img="+ordner+"&header="+header+"&zoom="+zoom,"",getRequestObject()); } function GetImagegalerieReturn(ordner1,ordner2,header){ document.getElementById("imagegalerie_thumbs").innerHTML=ordner1; document.getElementById("imagegalerie_header").innerHTML=header; document.getElementById("imagegalerie_list").style.display="none"; document.getElementById("imagegalerie_part").style.display="block"; eval(ordner2);} function getRequestObject(){ httpRequest = null; if (typeof XMLHttpRequest != "undefined") httpRequest = new XMLHttpRequest(); if (!httpRequest && typeof ActiveXObject != "undefined") { try { httpRequest=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpRequest=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { try { httpRequest=new ActiveXObject("Msxml2.XMLHTTP.4.0"); } catch (e3) { httpRequest=null;}}}} if(!httpRequest && window.createRequest) httpRequest = window.createRequest(); return httpRequest;} function showajcontent(aktion,funkt,req) { if(req) { req.open('POST' , 'whnaj.php' , true) ; req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); req.onreadystatechange = function () { if (req.readyState == 4) { if (req.status == 200) { //alert(unescape(req.responseText)); if(funkt!="") eval(funkt + "('" + unescape(req.responseText) +"')"); else eval(unescape(req.responseText));} else { req.abort();}} else return;} req.send("&aktion="+aktion) ;}} /*MD5*/ function array(n) { for(i=0;i=0) {a=a%(0x7fffffff+1);a=a >> b;a+=0x40000000>>(b-1);} else a=a >> b;return a;} function shl1(a) {a=a%(0x7fffffff+1);if (a&0x40000000==0x40000000){a-=0x40000000;a*=2;a+=(0x7fffffff+1);} else a*=2 ;return a; } function shl(a,b) {a=integer(a);b=integer(b);for (var i=0;i=0)if (t2>=0) return ((t1&t2)+(0x7fffffff+1));else return (t1&b);else if (t2>=0) return (a&t2);else return (a&b);} function or(a,b) {a=integer(a);b=integer(b);var t1=(a-(0x7fffffff+1));var t2=(b-(0x7fffffff+1)); if (t1>=0)if (t2>=0) return ((t1|t2)+(0x7fffffff+1));else return ((t1|b)+(0x7fffffff+1));else if (t2>=0) return ((a|t2)+(0x7fffffff+1));else return (a|b); } function xor(a,b) {a=integer(a);b=integer(b);var t1=(a-(0x7fffffff+1));var t2=(b-(0x7fffffff+1));if (t1>=0)if (t2>=0) return (t1^t2);else return ((t1^b)+(0x7fffffff+1));else if (t2>=0) return ((a^t2)+(0x7fffffff+1));else return (a^b);} function not(a) { a=integer(a);return (0x7fffffff+0x7fffffff+1-a);} var state = new array(4);var count = new array(2);count[0] = 0;count[1] = 0;var buffer = new array(64); var transformBuffer = new array(16);var digestBits = new array(16);var S11 = 7;var S12 = 12;var S13 = 17;var S14 = 22;var S21 = 5;var S22 = 9;var S23 = 14;var S24 = 20;var S31 = 4;var S32 = 11; var S33 = 16; var S34 = 23;var S41 = 6;var S42 = 10;var S43 = 15;var S44 = 21; function F(x,y,z) {return or(and(x,y),and(not(x),z));} function G(x,y,z) {return or(and(x,z),and(y,not(z)));} function H(x,y,z) {return xor(xor(x,y),z); } function I(x,y,z) {return xor(y ,or(x , not(z)));} function rotateLeft(a,n) {return or(shl(a, n),(shr(a,(32 - n))));} function FF(a,b,c,d,x,s,ac) {a = a+F(b, c, d) + x + ac;a = rotateLeft(a, s);a = a+b;return a;} function GG(a,b,c,d,x,s,ac) {a = a+G(b, c, d) +x + ac;a = rotateLeft(a, s);a = a+b;return a; } function HH(a,b,c,d,x,s,ac) {a = a+H(b, c, d) + x + ac;a = rotateLeft(a, s);a = a+b;return a;} function II(a,b,c,d,x,s,ac) {a = a+I(b, c, d) + x + ac;a = rotateLeft(a, s);a = a+b;return a;} function transform(buf,offset) {var a=0, b=0, c=0, d=0;var x = transformBuffer;a = state[0];b = state[1];c = state[2];d = state[3];for (i = 0; i < 16; i++) {x[i] = and(buf[i*4+offset],0xff); for (j = 1; j < 4; j++) {x[i]+=shl(and(buf[i*4+j+offset] ,0xff), j * 8); }}a = FF ( a, b, c, d, x[ 0], S11, 0x576aa479+0x7fffffff);d = FF ( d, a, b, c, x[ 1], S12, 0x68c7b757+0x7fffffff);c = FF ( c, d, a, b, x[ 2], S13, 0x242070db);b = FF ( b, c, d, a, x[ 3], S14, 0x41bdceef+0x7fffffff);a = FF ( a, b, c, d, x[ 4], S11, 0x757c0fb0+0x7fffffff);d = FF ( d, a, b, c, x[ 5], S12, 0x4787c62a);c = FF ( c, d, a, b, x[ 6], S13, 0x28304614+0x7fffffff);b = FF ( b, c, d, a, x[ 7], S14, 0x7d469502+0x7fffffff); a = FF ( a, b, c, d, x[ 8], S11, 0x698098d8);d = FF ( d, a, b, c, x[ 9], S12, 0x0b44f7b0+0x7fffffff);c = FF ( c, d, a, b, x[10], S13, 0x7fff5bb2+0x7fffffff);b = FF ( b, c, d, a, x[11], S14, 0x095cd7bf+0x7fffffff); a = FF ( a, b, c, d, x[12], S11, 0x6b901122);d = FF ( d, a, b, c, x[13], S12, 0x7d987194+0x7fffffff); c = FF ( c, d, a, b, x[14], S13, 0x2679438f+0x7fffffff);b = FF ( b, c, d, a, x[15], S14, 0x49b40821);a = GG ( a, b, c, d, x[ 1], S21, 0x761e2563+0x7fffffff);d = GG ( d, a, b, c, x[ 6], S22, 0x4040b341+0x7fffffff);c = GG ( c, d, a, b, x[11], S23, 0x265e5a51);b = GG ( b, c, d, a, x[ 0], S24, 0x69b6c7ab+0x7fffffff);a = GG ( a, b, c, d, x[ 5], S21, 0x562f105e+0x7fffffff);d = GG ( d, a, b, c, x[10], S22, 0x02441453);c = GG ( c, d, a, b, x[15], S23, 0x58a1e682+0x7fffffff);b = GG ( b, c, d, a, x[ 4], S24, 0x67d3fbc9+0x7fffffff);a = GG ( a, b, c, d, x[ 9], S21, 0x21e1cde6);d = GG ( d, a, b, c, x[14], S22, 0x433707d7+0x7fffffff);c = GG ( c, d, a, b, x[ 3], S23, 0x74d50d88+0x7fffffff);b = GG ( b, c, d, a, x[ 8], S24, 0x455a14ed);a = GG ( a, b, c, d, x[13], S21, 0x29e3e906+0x7fffffff);d = GG ( d, a, b, c, x[ 2], S22, 0x7cefa3f9+0x7fffffff);c = GG ( c, d, a, b, x[ 7], S23, 0x676f02d9);b = GG ( b, c, d, a, x[12], S24, 0x0d2a4c8b+0x7fffffff);a = HH ( a, b, c, d, x[ 5], S31, 0x7ffa3943+0x7fffffff);d = HH ( d, a, b, c, x[ 8], S32, 0x0771f682+0x7fffffff);c = HH ( c, d, a, b, x[11], S33, 0x6d9d6122);b = HH ( b, c, d, a, x[14], S34, 0x7de5380d+0x7fffffff);a = HH ( a, b, c, d, x[ 1], S31, 0x24beea45+0x7fffffff);d = HH ( d, a, b, c, x[ 4], S32, 0x4bdecfa9);c = HH ( c, d, a, b, x[ 7], S33, 0x76bb4b61+0x7fffffff);b = HH ( b, c, d, a, x[10], S34, 0x3ebfbc71+0x7fffffff);a = HH ( a, b, c, d, x[13], S31, 0x289b7ec6);d = HH ( d, a, b, c, x[ 0], S32, 0x6aa127fb+0x7fffffff);c = HH ( c, d, a, b, x[ 3], S33, 0x54ef3086+0x7fffffff);b = HH ( b, c, d, a, x[ 6], S34, 0x04881d05);a = HH ( a, b, c, d, x[ 9], S31, 0x59d4d03a+0x7fffffff);d = HH ( d, a, b, c, x[12], S32, 0x66db99e6+0x7fffffff); c = HH ( c, d, a, b, x[15], S33, 0x1fa27cf8);b = HH ( b, c, d, a, x[ 2], S34, 0x44ac5666+0x7fffffff);a = II ( a, b, c, d, x[ 0], S41, 0x74292245+0x7fffffff);d = II ( d, a, b, c, x[ 7], S42, 0x432aff97);c = II ( c, d, a, b, x[14], S43, 0x2b9423a8+0x7fffffff);b = II ( b, c, d, a, x[ 5], S44, 0x7c93a03a+0x7fffffff);a = II ( a, b, c, d, x[12], S41, 0x655b59c3);d = II ( d, a, b, c, x[ 3], S42, 0x0f0ccc93+0x7fffffff);c = II ( c, d, a, b, x[10], S43, 0x7feff47e+0x7fffffff);b = II ( b, c, d, a, x[ 1], S44, 0x05845dd2+0x7fffffff);a = II ( a, b, c, d, x[ 8], S41, 0x6fa87e4f);d = II ( d, a, b, c, x[15], S42, 0x7e2ce6e1+0x7fffffff);c = II ( c, d, a, b, x[ 6], S43, 0x23014315+0x7fffffff);b = II ( b, c, d, a, x[13], S44, 0x4e0811a1);a = II ( a, b, c, d, x[ 4], S41, 0x77537e83+0x7fffffff);d = II ( d, a, b, c, x[11], S42, 0x3d3af236+0x7fffffff);c = II ( c, d, a, b, x[ 2], S43, 0x2ad7d2bb);b = II ( b, c, d, a, x[ 9], S44, 0x6b86d392+0x7fffffff);state[0] +=a;state[1] +=b;state[2] +=c;state[3] +=d;} function init() {count[0]=count[1] = 0;state[0] = 0x67452301;state[1] = 0x6fcdab8a+0x7fffffff;state[2] = 0x18badcff+0x7fffffff;state[3] = 0x10325476;for (i = 0; i < digestBits.length; i++)digestBits[i] = 0;} function update(b) { var index,i;index = and(shr(count[0],3) , 0x3f);if (count[0]<0x7fffffff+0x7fffffff-6)count[0] += 8;else {count[1]++; count[0]-=0x7fffffff+0x7fffffff+2;count[0]+=8;}buffer[index] = and(b,0xff);if (index >= 63) {transform(buffer, 0);}} function finish() {var bits = new array(8);var padding;var i=0, index=0, padLen=0;for (i = 0; i < 4; i++) { bits[i] = and(shr(count[0],(i * 8)), 0xff);} for (i = 0; i < 4; i++) { bits[i+4]=and(shr(count[1],(i * 8)), 0xff);}index = and(shr(count[0], 3) ,0x3f);padLen = (index < 56) ? (56 - index) : (120 - index);padding = new array(64);padding[0] = 0x80;for (i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; function MD5(entree){var l,s,k,ka,kb,kc,kd;init();for (k=0;k