function wrapper(){
	var containerHeight=document.getElementById('container').offsetHeight - 17 + 'px';
	document.getElementById('left').style.height = containerHeight;
	if (document.getElementById('center')) {
		document.getElementById('center').style.height = containerHeight;	
	}
	if (document.getElementById('right')) {
		document.getElementById('right').style.height = containerHeight;	
	}
	if (document.getElementById('center1')) {
		document.getElementById('center1').style.height = containerHeight;	
	}
	if (document.getElementById('center2')) {
		document.getElementById('center2').style.height = containerHeight;	
	}
	if (document.getElementById('right1')) {
		document.getElementById('right1').style.height = containerHeight;	
	}
		var album = { 
  startup: function() { 
    new PeriodicalExecuter(album.cycle, 5) // change image every 5 seconds 
   
  }, 
  cycle: function() { 
    new Effect.Fade('headerBlockBgImg', { // the id of the <DIV> containing the photos 
      duration: 1, 
      fps: 50, 
      afterFinish: function() { 
        new Ajax.Updater('headerBlockBgImg','/next-header-img/', { // URL for next <IMG> tag 
          asynchronous: true, 
          onSuccess: function() { 
            new Effect.Appear('headerBlockBgImg', {
              duration: 1,
              fps: 50,
              queue:'end'
            })
          } 
        }) 
      } 
    }) 
  } 
} 
	
	
album.startup();
}
window.onload=wrapper;
