function switchImage(interior,imgID,imgSRC){
	if (document.getElementById){
		document.getElementById(imgID).src = imgSRC;		
		}
	document.getElementById(interior).className="selected";
	var nodeList=document.getElementById('interiorlinks').childNodes;
	for(var i=1;i<nodeList.length;i++){
	
		var interiorid = nodeList[i].id;
		if(interiorid != interior){
			nodeList[i].className="";
		}
		
	
		/* This is for testing
		document.write(nodeList.length);
		document.write(nodeList[i].id);
		document.write(nodeList[i].className);*/
	}
}


/// popup window function with name
function wpopup(URL,n,w,h) {

day = new Date();

var name = n;
var width = w;
var height = h;

var left = ((screen.width-width)/2);
var top = ((screen.height-height)/2);

var features = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top;

//eval("page" + name + " = window.open(URL, '" + name + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + '');");
    
var popWin = window.open(URL, name, features);
popWin.focus();

}