home *** CD-ROM | disk | FTP | other *** search
- if (document.images) {
-
- var openNewWin=false;
- var onLoadBeforeImage=null;
- var winName='neuwin';
- var ct=0;
- var hbild='';
-
- if (window.onload)
- onLoadBeforeImage=window.onload;
-
- window.onload=BildOeffnenInit;
-
- }
-
-
-
-
- function BildOeffnenInit()
- {
- if (onLoadBeforeImage)
- onLoadBeforeImage();
-
- for (var i=0; i < document.links.length; i++) {
-
- var HREF = document.links[i].href.toLowerCase().split('.');
- if (HREF[HREF.length-1] == 'jpg' || HREF[HREF.length-1] == 'gif' || HREF[HREF.length-1] == 'png')
- document.links[i].onclick = OeffneBild;
-
- }
- }
-
- function OeffneBild()
- {
- var BildName = this.href.split('.');
- var BildGroesse = BildName[BildName.length-2].split('x');
-
- var ModX=0, ModY=0, Dat=this.href.split('/'); Dat=Dat[Dat.length-1];
- if (!document.layers && !document.all) { ModX=20;ModY=30; }
- var breite=parseInt(screen.width)+ModX;
- var hoehe=parseInt(screen.height)+ModY;
- var br=screen.width;
- var dn = this.href.replace("file:","");
- dn = dn.replace("///","");
- dn = dn.replace("//","/");
- dn = dn.replace("//","/");
- dn = dn.replace("//","/");
- dn = dn.slice(2);
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- dn = dn.replace("%20"," ");
- var teil = dn.split('/');
- dn = teil[teil.length-1];
-
- var Param = 'width='+breite+',height='+hoehe+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0';
- if (document.layers)
- Param += ',screenX='+(screen.width/2-breite/2)+',screenY='+(screen.height/2-hoehe/2);
- else if (document.all)
- Param += ',left='+(screen.width/2-breite/2)+',top='+(screen.height/2-hoehe/2);
-
- if(!openNewWin)
- if (window[winName] && !window[winName].closed)
- window[winName].close();
-
- winName='neuwin'+(ct++);
- window[winName] = window.open('', winName, Param);
-
- with (window[winName].document) {
- open();
- write('<html>\n<head>\n<title>'+ dn +'</title>\n</head>\n');
- write('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n');
- write('<applet CODE="pan360.class" width=' + br + ' height=' + screen.height + ' >\n');
- write('<PARAM NAME=URL0 VALUE="' + dn + ',alt.gif,0,0, 113,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0">\n');
- write('</applet>\n');
- write('</body>\n</html>\n');
- close();
- }
-
- return false;
- }
-
- function OeffneBildNeu()
- {
- var ModX=0, ModY=0
- if (!document.layers && !document.all) { ModX=20;ModY=30; }
- var breite=parseInt(screen.width)+ModX;
- var hoehe=parseInt(screen.height)+ModY;
- var br=screen.width;
- var dn = hbild;
-
- var Param = 'width='+breite+',height='+hoehe+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0';
- if (document.layers)
- Param += ',screenX='+(screen.width/2-breite/2)+',screenY='+(screen.height/2-hoehe/2);
- else if (document.all)
- Param += ',left='+(screen.width/2-breite/2)+',top='+(screen.height/2-hoehe/2);
-
- if(!openNewWin)
- if (window[winName] && !window[winName].closed)
- window[winName].close();
-
- winName='neuwin'+(ct++);
- window[winName] = window.open('', winName, Param);
-
- with (window[winName].document) {
- open();
- write('<html>\n<head>\n<title>'+ dn +'</title>\n</head>\n');
- write('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n');
- write('<applet CODE="pan360.class" width=' + br + ' height=' + screen.height + ' >\n');
- write('<PARAM NAME=URL0 VALUE="' + dn + ',alt.gif,0,0, 113,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0">\n');
- write('</applet>\n');
- write('</body>\n</html>\n');
- close();
- }
-
- }
-