// $Id: projectsmouseover.js 456 2008-09-26 19:17:22Z jelner $

var projectsMouseOver = new Class({
	'img': false,

	'initialize': function() {
		this.img = $$('#inhaltrechts img')[0];
		if($chk(this.img)) {
			var _this = this;
			new stp_js_rel_media(
				'#inhaltlinks',
				function(el,folder,media) {
					var img = new Asset.image(folder+media[0]);
					el.addEvents({
						'mouseover': function() {
							_this.img.src = img.src;
							_this.img.width = img.width;
							_this.img.height = img.height;
						}
					});
				}
			);
		};
	}
});

window.addEvent('domready',function() { new projectsMouseOver(); });
