if (document.images)
{
  pic1= new Image(100,25); 
  pic1.src="images/header_01.jpg"; 

  pic2= new Image(100,25); 
  pic2.src="images/header_02.jpg"; 

  pic3= new Image(100,25); 
  pic3.src="images/header_03.jpg"; 

  pic4= new Image(100,25); 
  pic4.src="images/header_04.jpg"; 

  pic5= new Image(100,25); 
  pic5.src="images/header_05.jpg"; 
}


function fadeIn(element, opacity) {
	var reduceOpacityBy = 5;
	var rate = 30; // 15 fps

	if (opacity < 100) {
		opacity += reduceOpacityBy;
		if (opacity > 100) {
			opacity = 100;
		}

		if (element.filters) {
			try {
				element.filters.item("DXImageTransform.Microsoft.Alpha").opacity = opacity;
			} catch (e) {
				// If it is not set initially, the browser will throw an error.
				// This will set it if it is not set yet.
				element.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity='
						+ opacity + ')';
			}
		} else {
			element.style.opacity = opacity / 100;
		}
	}

	if (opacity < 100) {
		setTimeout(function() {
			fadeIn(element, opacity);
		}, rate);
	}
}
