function nowe_okno(url, url2) {
	window.open("content/zoom.php?x="+url+"&y="+url2,"","toolbar=no,location=no,directories=no,resizable=no,scrollbars=no,status=no,menubar=no,titlebar=no,height=450,width=600px");
}

function zoomimages() {
	//$('conp2').getElements('.zoom').each(function() { alert('kupa'); });
	if($('conp2')) {
	var temp = $('conp2').getElements('.zoom');
	var temp2;
	var i = 0;
	temp.each(function() {
		i++;
	});
	for(var j = 0; j < i; j++) {
		//alert(temp[j].getProperty('src'));
		//temp2 = temp[j].getProperty('width');
		temp[j].addEvent('click', function(src){
			//x = src.target.height * 1.1;
			//y = src.target.width * 1.1;
			//src.target.setProperty('width', y);
			//src.target.setProperty('height', x);
			
			
			myElement1 = new Element('div', {
				'styles': {
					'position':'absolute',
					'top':0,
					'left':0,
					'height': (window.getHeight() > window.getScrollHeight())?window.getHeight():window.getScrollHeight(),
					'width':(window.getWidth() > window.getScrollWidth())?window.getWidth():window.getScrollWidth(),
					'background':'#000000',
					'z-index':9998,
					//'display':'none',
					'text-align':'left'
				}
			});
			myElement2 = new Element('div', {
				'styles': {
					'position':'absolute',
					'top':0,
					'left':0,
					'height': (window.getHeight() > window.getScrollHeight())?window.getHeight():window.getScrollHeight(),
					'width':(window.getWidth() > window.getScrollWidth())?window.getWidth():window.getScrollWidth(),
					'z-index':9999,
					//'display':'none',
					'text-align':'left'
				}
			});
			
			var path_array = src.target.src.split("/");
			var z = 0;
			path_array.each(function() {
				z++;
			});
			var nazwa = path_array[z-1];
			var klasa = src.target.getProperty('class');
			var new_path;
			for(y = 0; y < z; y++) {
				if(new_path) {
					if(y == z - 1) {
						new_path = new_path + '/' + klasa + '/' + path_array[y];
					} else {
						new_path = new_path + '/' + path_array[y];
					}
				} else {
					new_path = path_array[y];
				}
			}




			//myElement1.inject($('body'));
			//myElement2.inject($('body'));
			
		});
	}
	}
}

