Prinz, is it possible to get the image size with vbscript?
Then you could pass the size directly to Lightbox.
As a test I've loaded this little demo that calls a vbscript function by javascript.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 1</title>
<Script Language=JavaScript>
function callvbs(){
VBSFunktion();
}
</Script>
<Script Language=VBScript>
Function VBSFunktion()
MsgBox "Hello!"
End Function
</Script>
</head>
<body>
<input type=button value="VBScript aufrufen" onclick="callvbs()">
</body>
</html>
<Script Language=JavaScript>
function hallosagen(){
alert("Hello!")
}
</Script>
<Script Language=VBScript>
bsp
Function bsp()
hallosagen()
End Function
</Script>