function onLoadFinished(){ ResetRightLeaves(); } function ResetRightLeaves(){ var winW = 0; if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winW = window.innerWidth; } if (navigator.appName.indexOf("Microsoft")!=-1) { winW = document.body.offsetWidth; } } /* 990px; is the inner width of the Page, that should be visible*/ if (winW > 0){ var eleHeaderCornerRight = document.getElementById("HeaderCornerRight"); //alert(winW); if (winW < 990){ eleHeaderCornerRight.style.left = "867px"; /*depending on the leave image width of 123px;*/ } else { eleHeaderCornerRight.style.left = ""; eleHeaderCornerRight.style.right = "0"; } } } function zoom(img, w, h){ //alert (screen.availWidth+' '+screen.availHeight); var width = w+20; var height = h+20; var zoomWin; //comparing the available size with the image size: if (width < (screen.availWidth-30) & height < (screen.availHeight)-130){ zoomWin = window.open('','zoom'+w+h,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+width+',height='+height); zoomWin.document.open(); zoomWin.document.write("Bild Detailansicht
"); zoomWin.document.close(); } else { //if the image is bigger than the screen, than only open image-file in the broser, so that the browser can reduce the image size his-self zoomWin = window.open(img,'zoom'+w+h,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no'); } zoomWin.focus(); //-> Beispiel zur Verwendung: // }