// JavaScript Document, SillyGilly Web Design

//reloads the window if Nav4 resized
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

//Preloads Images for speed
function preloadImages() {
	img1 = new Image();
	img1.src = "BDM_logo1.png";
	img2 = new Image();
	img2.src = "construction1.png";
	img3 = new Image();
	img3.src = "dog2.png";
	img4 = new Image();
	img4.src = "dog3.jpg";
	img5 = new Image();
	img5.src = "dog4.jpg";
	img6 = new Image();
	img6.src = "dog5.jpg";
	img7 = new Image();
	img7.src = "dog7.jpg";
}


function moveImg() {
//Scrolling an image across the screen
	if (document.getElementById) {
		document.getElementById('movingImages').style.left=position+"px";
	}
	else if (document.all) {
		document.all.movingImages.style.left=position+"px";
	}
	else if (document.layers) {
		document.movingImages.left=position;
	}
	
	position = position - 1;
	if(position > 91) {
		setTimeout("moveImg()", 3);
	}
	//To scroll round and round continuously
	//else {
	//	position = 750;
	//	setTimeout("moveImg()", 3);
	//}
}