// JavaScript Document

function changeFilInfo(value,inc)
{

	var changedItemId='breves_fil_info'+(value+inc);
	if(document.getElementById(changedItemId))
	{
		document.getElementById('breves_fil_info'+value).style.display='none';
		document.getElementById(changedItemId).style.display='';
	}
	var changedItemId2='page'+(value+inc);
	if(document.getElementById(changedItemId2))
	{
  	document.getElementById('page'+value).style.display='none';
  	document.getElementById(changedItemId2).style.display='';
	}

}

function init_fillinfo()
{
  var value;
  for (value = 2;value<=20;value=value+1) 
  {
    document.getElementById('breves_fil_info'+value).style.display='none';
    document.getElementById('page'+value).style.display='none';
  }
  document.getElementById('breves_fil_info1').style.display='';
  document.getElementById('page1').style.display='';
	
}

function changeFilInfoCatPays(selectPays, sectionid, releasecatid)
{
	var countrytitle=selectPays.options[selectPays.selectedIndex].value;
	var url='';
	
	url = 'index.php?option=com_content&task=view&id=15&Itemid=28&countrytitle='+countrytitle+'&releasecatid='+releasecatid+'&sectionid='+sectionid;
	url = url.replace('\/\/','/');
	//alert('url'+url);
	new Ajax.Request( url, {
					method:'get',
					onSuccess: function(transport)
					{
						var text=transport.responseText;
						var container=$('breves_FilInfo');
						//alert('good');
						if ( container )
						{
							if ( navigator.appVersion.indexOf('MSIE') != -1 )
								text = '<br />' + text;
							container.innerHTML = text;
						}

					}
				}
			);
}
function changeFilInfoCat2(countrytitle, sectionid, releasecatid)
{
	var url='';
	url = 'index.php?option=com_content&task=view&id=15&Itemid=28&countrytitle='+countrytitle+'&sectionid='+sectionid+'&releasecatid='+releasecatid;
	url = url.replace('\/\/','/');
	new Ajax.Request( url, {
					method:'get',
					onSuccess: function(transport)
					{
						var text=transport.responseText;
						var container=$('breves_FilInfo');
						if ( container )
						{
							if ( navigator.appVersion.indexOf('MSIE') != -1 )
								text = '<br />' + text;
							container.innerHTML = text;
						}

					}
				}
			);
}

function changeFilInfoCatSection(selectSection, countrytitle, releasecatid)
{
	var sectionid=selectSection.options[selectSection.selectedIndex].value;
	var url='';
	url = 'index.php?option=com_content&task=view&id=15&Itemid=28&countrytitle='+countrytitle+'&releasecatid='+releasecatid+'&sectionid='+sectionid;
	url = url.replace('\/\/','/');
	new Ajax.Request( url, {
					method:'get',
					onSuccess: function(transport)
					{
						var text=transport.responseText;
						var container=$('breves_FilInfo');
						if ( container )
						{
							if ( navigator.appVersion.indexOf('MSIE') != -1 )
								text = '<br />' + text;
							container.innerHTML = text;
						}

					}
				}
			);
}
function changeFilInfoCatComm(selectComm, sectionid, countrytitle)
{
	var releasecatid=selectComm.options[selectComm.selectedIndex].value;
	var url='';
	url = 'index.php?option=com_content&task=view&id=15&Itemid=28&countrytitle='+countrytitle+'&releasecatid='+releasecatid+'&sectionid='+sectionid;
	url = url.replace('\/\/','/');
	new Ajax.Request( url, {
					method:'get',
					onSuccess: function(transport)
					{
						var text=transport.responseText;
						var container=$('breves_FilInfo');
						if ( container )
						{
							if ( navigator.appVersion.indexOf('MSIE') != -1 )
								text = '<br />' + text;
							container.innerHTML = text;
						}

					}
				}
			);
}
