// JavaScript Document
function startList(thisDiv) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById(thisDiv);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


function mailpage(){
	mail_str = "mailto:?subject=Check out this page at Sonora Regional Medical Center";
	mail_str += "&body=I thought you might be interested in the " + document.title + " page";
	mail_str += ". You can view it at, " + location.href + " or visit their home page at http://www.sonoramedicalcenter.org/"; 
	location.href = mail_str;
} 


function copyrightDate(){
	var d = new Date();
	var curr_year = d.getFullYear();
	var dateString = "&copy;" + " " + curr_year + " ";
	//return dateString
	document.write(dateString);
}



NumberOfImagesToRotate = 14;

FirstPart = '<img src="images/content_photo';
LastPart = '.jpg" class="imgAlignRight">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}