//funciones para efecto de rollover sobre los enlaces.

function sobre(id){
	id.style.fontWeight='bold';
        id.style.cursor='hand';
        id.style.backgroundImage='url("http://www.chguadalquivir.es/chg/opencms/chg-web/actualizacion/contenido.html")';
        id.style.color='#FFFFFF'
        }

function fuera(id){
	id.style.fontWeight='bold';
        id.style.backgroundImage='url("../../../opencms/opencms/riopudio/pics/menu.html")';
        id.style.color='#000000'
	}

function sobre2(id){
	id.style.fontWeight='bold';
	id.style.cursor='hand';
        id.style.backgroundColor='#006291'
        }

function fuera2(id){
	id.style.fontWeight='normal';
        id.style.backgroundColor='#006291'
        }


function window.onbeforeprint() {
        document.all.logos.rows[0].deleteCell('mapa')
        document.all.myTable.rows[0].deleteCell('menu_lateral')
        document.all.logos.rows[1].deleteCell('menu_superior')
        document.all.pie.rows[0].deleteCell()
}

function window.onafterprint() {
        location.reload(false)
}

function popupBanner(pag,nombre,h,w){
        var height = h;
        var width  = w;
        x= (screen.height-height)/2;
	y= (screen.width-width)/2;
        var esp = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+width+",height="+height+",top="+x+",left="+y;
	var venta = window.open(pag,nombre,esp);
        venta.focus()
}

function Suscripcion (){
    window.open('participa_boletin.html','Participa', 'width=400, height=300, titlebar=no, scroll=no, toolbar=no')
}


function SuscripcionDetalle (){
    window.open('http://www.chguadalquivir.es/chg/opencms/participa_boletin.html','Participa', 'width=400, height=300, titlebar=no, scroll=no, toolbar=no')
}


function MostrarFecha() {
   var meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")

   var fecha_actual = new Date()
   mes = fecha_actual.getMonth() + 1
   anio = fecha_actual.getYear()

   if (anio < 100)					//pasa el aņo a 4 digitos
      anio = '19' + anio
   else if ( ( anio > 100 ) && ( anio < 999 ) ) {	//efecto 2000
      var cadena_anio = new String(anio)
      anio = '20' + cadena_anio.substring(1,3)
   }

   //escribe en pagina
   document.write(meses[mes - 1] + "&nbsp;" + anio)
   }


function MostrarFecha1() {
   var meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")

   var fecha_actual = new Date()
   mes = fecha_actual.getMonth() + 1
   anio = fecha_actual.getYear()

   if (anio < 100)					//pasa el aņo a 4 digitos
      anio = '19' + anio
   else if ( ( anio > 100 ) && ( anio < 999 ) ) {	//efecto 2000
      var cadena_anio = new String(anio)
      anio = '20' + cadena_anio.substring(1,3)
   }

   //escribe en pagina
   document.write(meses[mes - 1] + anio)
   }
