/**
 * @author      Dipl.-Ing. (FH) André Fiedler / ö_konzept Zwickau <a.fiedler@oe-konzept.de>
 * @license     http://www.creativecommons.org/licenses/by-nc-nd/3.0/deed.de
 * @version     1.0
 * @link        http://www.oe-konzept.de
 */

window.addEvent('domready', function()
{
	$$('img[rel^=popup]').each(function(img)
	{
		img.setStyle('cursor', 'pointer');
		
		img.addEvent('click', function(e)
		{
			e.stop();
			
			var xxl = this.get('rel').replace(/^popup\(/, '').replace(/\)$/, '');
			
			window.open(xxl, '_blank', 'left=0,top=0,width=720,height=520,status=yes,scrollbars=yes,resizable=yes');
		});
	});
});