<!--
// function for exit message
function exitMsg(){
     alert("You are now leaving the U.S. House of Representatives Web site. Thank you for visiting. Neither this office, whose site contains the link, nor the U.S. House of Representatives is responsible for the content of the non-House site you are about to access.")
}

var myimages=new Array()
function preloadImages() {
	for (i=0;i<arguments.length;i++){
		myimages[i]=new Image()
		myimages[i].src=preloadImages.arguments[i]
	}
}
preloadImages(
	"/images/top_bg_home.jpg",
	"/images/top_bg_level_2a.jpg",
	"/images/top_bg_level_2b.jpg"
);
	

/* Script taken from leemessenger.co.uk - Please do not remove this line */
function ChangeCSSBgImg() {
	if (!document.getElementById) return false;
	
	var MyElement = "topBG" //The ID of the element you want to change
	var ImgPath = "/images/" //The file path to your images
	
	if (!document.getElementById(MyElement)) return false;
	
	var random_images = new Array ();
	random_images[0] = "top_bg_home.jpg";
	random_images[1] = "top_bg_level_2a.jpg";
	random_images[2] = "top_bg_level_2b.jpg";
	
	
	
	var $header = document.getElementById(MyElement);
	var $backgroundurl = $header.style.backgroundImage;
	var ImgURL = "url(" + ImgPath + random_images[rand(random_images.length)] + ")";
	
	if ($backgroundurl != ImgURL) {
		$header.style.backgroundImage = ImgURL;	
	}
	
	movement = setTimeout("ChangeCSSBgImg()",103500);
}

/* random number generator */
function rand(n) {
  return ( Math.floor ( Math.random ( ) * n ) );
}

/* Custom onload function */
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
/* trigger onload */
addLoadEvent(ChangeCSSBgImg);
addLoadEvent(preloadImages);




//-->