function        betazeta_get_comment_cookies()
{
	var cookie_hash = 'e503c6c6bb8da8e8c8836d7939c66a39';

        var author_cookie = Cookie.read('comment_author_'+cookie_hash+'');
        var author_cookie_url = Cookie.read('comment_author_url_'+cookie_hash+'');
        var author_cookie_email = Cookie.read('comment_author_email_'+cookie_hash+'');

	var form = document.getElementById('commentform');

	form.getElementById('author').value = author_cookie.replace("+", " ");
	form.getElementById('email').value = author_cookie_email;
	form.getElementById('url').value = author_cookie_url;

}

function	betazeta_get_xml_data(container, type, callback) {

		var request = new Request({
			'method': 'get',
			'url': '/wp-content/lists/' + type + '.html',

			onSuccess: function(data, xml) {
				$(container).innerHTML = data;
				if(callback != undefined) callback();
			},

			onFailure: function() {
				$(container).innerHTML = '<p>No encontramos art&iacute;culos</p>';
			},

			onException: function() {
				this.onFailure();
			}

		});

		request.send();

}	
