/**
 * listadoEBooks.js
 *
 * @author IvÃ¡n RodrÃ­guez
 * @date 2009-04-20
 * @brief Script que gestiona los formatos de los eBooks.
 * @version 0.1
 */
window.addEvent('domready', function() {
	var notification = null;


	$$('.info').each(function(el) {


		el.addEvent('click', function(e) {
			new Event(e).stop();



			new Request({
				url : '?',
				method: 'get',
				onComplete : function(texto, xml) {
					
					var xml = xml.documentElement;

					var elemento = xml.firstChild;

					



					var message = '<p>'+elemento.childNodes[1].firstChild.nodeValue+'</p>';
				
					var _MyWindow = new MyWindow({
						//'width' 	: '200',
						//'height' 	: '300',
						'width' 	: '550px',
						'height' 	: '280px',
						'title'		: elemento.childNodes[0].firstChild.nodeValue,
						'msg'		: message,
						'windowType': 'modal',
						'class2'		: 'infotxt',
						'notification' : false,
						'duration'	: 1
					});
				}
			}).send();

	

		});
	});
});


