/*
  cultus+
  Copyright (C) 2008 by Systemantics, Bureau for Informatics

  Lutz Issler
  Mauerstr. 10-12
  52064 Aachen
  GERMANY

  Web:    www.systemantics.net
  Email:  mail@systemantics.net

  Permission granted to use the files associated with this
  website only on your webserver.

  Changes to these files are PROHIBITED due to license restrictions.
*/



$(function() {
	$(".external").click(function() {
		window.open(this.href);
		return false;
	});

	$("#images a").click(function() {
		this.blur();
		var p = $("img", this).offset();
		var img = new Image();
		img.onload = function() {
			$('<div class="image"></div>')
				.append(img)
				.css({
					left: p.left-img.width+220-12,
					top: p.top-12
				})
				.click(function() {
					$(this).remove();
				})
				.appendTo("body");
		}
		img.src = this.href;
		return false;
	});
});

