diff  C:\Dokumente und Einstellungen\stille\Desktop\lightbox2\lightbox2.module C:\devel\Apache2\htdocs\drupal\modules\lightbox2\lightbox2.module
169,175c169,177
<  	 		// Check to see if the Image Node Option is enabled in settings.
<  	 		if (variable_get("lightbox2_image_node", true) && variable_get("lightbox2_image_group", true)) {
<   				drupal_add_js($path . "/js/image_nodes.js");
<  	 		}
< 			elseif (variable_get("lightbox2_image_node", true)) {
< 				drupal_add_js($path . "/js/image_nodes_nogroup.js");
<  	 		}
---
> 		
> 		$js_vars  = "<script type=\"text/javascript\">\n//<![CDATA[\n var drupal_lightbox2 = new Object(); \n";
> 		$js_vars .= 'drupal_lightbox2.autoNode = ' . (variable_get("lightbox2_image_node", true) ? 'true' : 'false') . "; \n";
> 		$js_vars .= 'drupal_lightbox2.autoGroup = ' . (variable_get("lightbox2_image_group", true) ? 'true' : 'false') . "; \n";
> 		$js_vars .= "drupal_lightbox2.infoText = \"" . t('View Image Information') . "\"; \n";
> 		$js_vars .= "//]]>\n</script>";
> 		
> 		drupal_set_html_head($js_vars);
>  	 	
diff  C:\Dokumente und Einstellungen\stille\Desktop\lightbox2\js\lightbox.js C:\devel\Apache2\htdocs\drupal\modules\lightbox2\js\lightbox.js
176a177,188
> 		
> 		if (drupal_lightbox2.autoNode) {
> 			var nodes = document.getElementsByClassName("image");
> 			for (var i = 0; i < nodes.length; i++) {
> 				if (Element.hasClassName(nodes[i], "thumbnail")) {
> 					var parent = nodes[i].parentNode;
> 					parent.rel = (drupal_lightbox2.autoGroup ? "lightbox[node_thumbnails]" : "lightbox");
> 					Element.addClassName(parent, 'lightbox_autoNode');
> 				}
> 			}
> 		}
> 		
300a313,320
> 		if (drupal_lightbox2.infoText) {
> 			var objInfoLink = document.createElement("a");
> 			objInfoLink.setAttribute('id','infoLink');
> 			objInfoLink.setAttribute('href','#');
> 			objInfoLink.innerHTML = drupal_lightbox2.infoText;
> 			objImageDetails.appendChild(objInfoLink);
> 		}
> 		
331a352,362
> 	
> 	drupalAuto: function(link) {
> 		if (Element.hasClassName(link, 'lightbox_autoNode')) {
> 			var node_href = link.getAttribute('href');
> 			link.setAttribute('href', link.firstChild.getAttribute('src').replace('.thumbnail', ''));
> 			return new Array(link.getAttribute('href'), link.firstChild.getAttribute('alt'), node_href);
> 		}else{
> 			return new Array(link.getAttribute('href'), link.getAttribute('title'), false);
> 		}
> 	},
> 	
354c385
< 			imageArray.push(new Array(imageLink.getAttribute('href'), imageLink.getAttribute('title')));			
---
> 			imageArray.push(this.drupalAuto(imageLink));		
362c393
< 					imageArray.push(new Array(anchor.getAttribute('href'), anchor.getAttribute('title')));
---
> 					imageArray.push(this.drupalAuto(anchor));
484a516,521
> 		
> 		var infoLink = document.getElementById('infoLink');
> 		if (infoLink && imageArray[activeImage][2]) {
> 			infoLink.setAttribute('href', imageArray[activeImage][2]);
> 		}
> 
