function search(q)
{
	if (LANG == 'sp') {
		window.location.href = PATH+'busqueda/'+urlencode(q)+'/';
	} else 
	if (LANG == 'en') {
		window.location.href = PATH+'search/'+urlencode(q)+'/';
	}
}

function rss()
{
	
}

function open_image(url, id)
{
	var w = Math.min(document.body.clientWidth, 800);
	var h = Math.min(document.body.clientHeight, 600);
	popUp(PATH+"modules/blog/image.php?id="+id+"&image="+urlencode(url)+"&w="+w+"&h="+h);
}

function refresh_calendar(year,month)
{
	new Ajax.Updater("div_calendario_listado", PATH+"modules/calendario/list.php?LANG="+LANG+"&p=1&Year="+year+"&Month="+month, {evalScripts: true});
}

function sorteo_open()
{
	popUp(PATH+"modules/sorteo/sorteo_banner.php?lang="+LANG);
}

function sorteo_close()
{
	popUpRemove();
}