
//	wmtt = null;
//	document.onmousemove = updateWMTT;
//
//	function updateWMTT(e) {
//	  if (wmtt != null && wmtt.style.display == 'block') {
//		x = (e.pageX ? e.pageX : window.event.x) + wmtt.offsetParent.scrollLeft - wmtt.offsetParent.offsetLeft;
//		y = (e.pageY ? e.pageY : window.event.y) + wmtt.offsetParent.scrollTop - wmtt.offsetParent.offsetTop;
//		width = document.images["image_show"].width;
//		height = document.images["image_show"].height;
//		wmtt.style.left = (x - 20 - width) + "px";
//		wmtt.style.top   = (y - 20 - height) + "px";
//
//	  }
//	}
//
//	function showPhotoWMTT(id,image) {
//		wmtt = document.getElementById(id);
//
//		document.images["image_show"].src = "http://www.mietmeile.de";
//		document.images["image_show"].src = image;
//
//		if (document.images["image_show"].src != "http://www.mietmeile.de/img/index/nonPicture.gif")
//		    wmtt.style.display = "block";
//	}
//
//	function hideWMTT(id) {
//		wmtt.style.display = "none";
//	}
Global.call("Thumbs.init()");

var Thumbs = {
    init: function() {
	$$(".thumbs").each(function(t) {
		t.observe("mouseover", function(e){
               
		    $("photo_show_preview").setStyle({
			    top: e.pointerY() - 120 + "px",
			    left: e.pointerX() - 120 + "px",
			    display: "none"
		    });
		    $("image_show").setAttribute("src","");
		    $("image_show").setAttribute("src",t.getAttribute("rel"));

                    if ($("image_show").complete && t.getAttribute("rel") != "/img/index/nonPicture.gif") {
                        $("photo_show_preview").setStyle({
                                top: e.pointerY() - 20 - $("image_show").height + "px",
                                left: e.pointerX() - 20 - $("image_show").width + "px",
                                display: "block"
                        });
                    }
		}),
		t.observe("mouseout", function(e){
		    $("photo_show_preview").hide();
		}),
		t.observe("mousemove", function(e){
		    if ($("image_show").height > 0 && t.getAttribute("rel") != "/img/index/nonPicture.gif") {
			$("photo_show_preview").setStyle({
				top: e.pointerY() - 20 - $("image_show").height + "px",
				left: e.pointerX() - 20 - $("image_show").width + "px",
				display: "block"
			});
		    }
		})
	    }
	)
    }
}
