var _ajaxModulesUrl = location.protocol + "//" + location.hostname + "/ajaxservices/AjaxModules.aspx";
var _ajaxModulesUrl = "/ajaxservices/AjaxModules.aspx";
if (typeof(AjaxModules) == 'undefined') var AjaxModules = {};
if (!AjaxModules.Eventos) AjaxModules.Eventos = {};
if (!AjaxModules.Noticias) AjaxModules.Noticias = {};
if (!AjaxModules.Click) AjaxModules.Click = {};
if (!AjaxModules.ErrorClass) AjaxModules.ErrorClass = {};

AjaxModules._$ajax = new $Ajax();

AjaxModules.Eventos = function()
{
	var returnValue = null;

	this.GetEventosList = function(page, tp)
	{
		AjaxModules._$ajax.AjaxPost(_ajaxModulesUrl, this.MethodResponse, false, "method=EventosGetList&page=" + page + "&tp=" + tp);
		return returnValue;
	}

	
	this.MethodResponse = function(response)
	{	
		returnValue = null;
		AjaxModules.Error.Clear();	
		if(response.toString().indexOf("ERROR") != -1 && response.toString().indexOf("MENSAJE") != -1)
		{
			AjaxModules.Error.Set(response.split(';')[0].split(':')[1], response.split(';')[1].split(':')[1]);
			alert(AjaxModules.Error.ToString());
		}
		else
			returnValue = response;
	}		
}
AjaxModules.Noticias = function()
{
	var returnValue = null;

	this.GetNoticiasList = function(page, tp)
	{
		AjaxModules._$ajax.AjaxPost(_ajaxModulesUrl, this.MethodResponse, false, "method=NoticiasGetList&page=" + page + "&tp=" + tp);
		return returnValue;
	}
	this.GetHomeNoticiasList = function(page, tp)
	{
		AjaxModules._$ajax.AjaxPost(_ajaxModulesUrl, this.MethodResponse, false, "method=NoticiasHomeGetList&page=" + page + "&t
