|    
			
				27/06/2011, 11:29
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: enero-2010 Ubicación: Santander 
						Mensajes: 413
					 Antigüedad: 15 años, 8 meses Puntos: 6 |  | 
  |  Centrar foto  
  Muy buenas.Tengo el siguiente script
 function imagen(){
 fecha = new Date();
 
 hora = fecha.getHours();
 
 if(hora>=1 && hora<=10){//imagen desde la 1am hasta las 10am
 document.getElementById("fondo").style.backgroundI  mage="url(img/mañana.jpg)";
 }
 
 if(hora>=11 && hora<=18){//imagen desde las 11am hasta las 6pm
 document.getElementById("fondo").style.backgroundI  mage="url(img/frontal3.jpg)";
 document.getElementById("fondo").style.backgroundR  epeat= "no-repeat";
 document.getElementById("fondo").style.backgroundP  osition= "top";
 }
 
 if(hora>=19 && hora<=24){//imagen desde las 7pm hasta las 12pm
 document.getElementById("fondo").style.backgroundI  mage="url(img/frontal3.jpg)";
 document.getElementById("fondo").style.backgroundR  epeat= "no-repeat";
 }
 
 }
 Y me gustari saber cual es el codigo para poder alinear esta foto.
 Vamos que debo poner en:
 document.ger.ElementById("fondo").style...........  ................?
 Esta foto deberia ir centrada en el index.
     |