function SetLanguage(indice){
	if (indice==1) prefijo= 'es';
	if (indice==2) prefijo= 'en';
	if (indice==3) prefijo= 'fr';
	if (indice==4) prefijo= 'de';
	

	if (window.parent.bproduct == 0)
	{
	window.parent.frames["topFrame"].location.href = prefijo + 'top.htm';
	window.parent.frames["medFrame"].location.href = '../frmmed/' + prefijo + 'med' + window.parent.page + '.htm';
	window.parent.frames["mainFrame"].location.href = '../frmmain/' + prefijo + window.parent.page + '.htm';
	}
	else 
	{
	window.parent.frames["topFrame"].location.href = prefijo + 'top.htm';
	window.parent.frames["medFrame"].location.href = '../frmmed/' + prefijo + 'medproducts.htm';
	window.parent.frames["mainFrame"].location.href = '../frmmain/productos/' + prefijo + '/' + window.parent.page + '.htm';
	}

	
}


function openNews(indice){
	switch(indice) {
		case 1: newspage = '../news/actualidad.htm';
			break;
		case 2: newspage = '../news/actuality.htm';
			break;
		case 3: newspage = '../news/actualite.htm';
			break;
		case 4: newspage = '../news/aktualitat.htm';
			break;

		}
	window.open(newspage,'news','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=780,height=500');
}


function setDateTime()
{
  	var lDate = new Date();
	var dia = lDate.getDate();
	var mes = lDate.getMonth() + 1;
	var anio = lDate.getYear();
	var hours=lDate.getHours();
	var minutes=lDate.getMinutes();
	var seconds=lDate.getSeconds();
	if (mes < 10) mes = '0' + mes;
	if (dia < 10) dia = '0' + dia;
	if (hours<10) hours='0'+ hours;
	if (minutes<10) minutes = '0' + minutes;
	if (seconds<10) seconds = '0' + seconds;

   	if (anio < 100)
      		anio = '19' + anio
   	else if ( ( anio > 100 ) && ( anio < 999 ) ) {
      		var cadena_anio = new String(anio);
      		anio = '20' + cadena_anio.substring(1,3);
   		}

	document.getElementById('fecha').innerHTML = dia + '/' + mes + '/' + anio + '&nbsp;';
	document.getElementById('hora').innerHTML = hours + ':' + minutes + '&nbsp;';
   	//document.all.fecha.innerHTML = dia + "/" + mes + "/" + anio;
   	//document.all.hora.innerHTML = hours + ":" + minutes;
  	setTimeout("setDateTime()",60000)
   	
}

