function DOMCall(name) {
if (document.layers) 
return document.layers[name];
else if (document.all)
return document.all[name];
else if (document.getElementById)
return document.getElementById(name);
}

function showPic (whichpic) { 
	if (document.getElementById) { 
		DOMCall('theMainImage').src = whichpic.href; 
		if (whichpic.title) { 
			DOMCall('theDesc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			DOMCall('theDesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function findTitles() {
	

		if (document.images) {
		
			randomNum = Math.floor((Math.random() * typeCt))
			node = document.getElementById('image1');
            node.setAttribute('title',title1);
            node = document.getElementById('image2');
            node.setAttribute('title',title2);
			node = document.getElementById('image3');
            node.setAttribute('title',title3);
            node = document.getElementById('image4');
            node.setAttribute('title',title4);
            node = document.getElementById('image5');
            node.setAttribute('title',title5);
            
            DOMCall('theDesc').childNodes[0].nodeValue = title1;
		}
	}
	
function findFeatTitles() {
	

		if (document.images) {
		
			randomNum = Math.floor((Math.random() * typeCt))
			node = document.getElementById('image1');
            node.setAttribute('title',title1);
            node = document.getElementById('image2');
            node.setAttribute('title',title2);
			node = document.getElementById('image3');
            node.setAttribute('title',title3);

            
            DOMCall('theDesc').childNodes[0].nodeValue = title1;
		}
	}
	