
var main_img;
var found = 0;

//find_img();

window.onload = find_img;
function testing(){
//alert ("hello world");

}


function find_img() {
	for(i=0; i<document.images.length;i++) {
		if(document.images[i].alt == "img") {
			main_img = i;
			found = 1;			
		}
	}	
}

function v_tour(new_img){
	if(!found) {
		alert("I can not find the main image. Please see instruction.");
	}else{
		document.images[main_img].src = "images/sce/" + new_img;
	}
}

//Open browser window

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
