// JavaScript Document

// 2tno added code

function timer(whatdate) {
var thedate = new Date()
var month = thedate.getMonth()
var year = thedate.getFullYear()
var daynum = thedate.getDate()
if (whatdate == "fulldate"){
   var thisday = ((month + 1) + " - " + daynum + " - " + year)
   return thisday}
else if (whatdate == "currentyear"){
   return year}
 else {
    return "Code Error MT001"}
}

function elink(mdivision, mylinktxt) {
var thedate = new Date()
var month = thedate.getMonth()
var year = thedate.getFullYear()
var daynum = thedate.getDate()
var thisday = ((month + 1) + " - " + daynum + " - " + year)
var mylink = "<a href=\"events.asp?date="+(month + 1)+"%2F"+daynum+"%2F"+year+"&dwzMONTHEvents="+(month + 1)+"&dwzYEAREvents="+year+"&Division="+mdivision+"&button=Submit\">"+mylinktxt+"</a>"
return mylink
}

//FIND the DOM
var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;


if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}



<!-- Side Random -->

//set variables
var textStr = new Array();
//Start Items 

//populate the array

textStr[0]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/bernstein_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Allan Bernstein, M.D.</h3><p>UMI  Radiologist</p><p>Dr. Bernstein\'s broad experience includes being on the radiology staff at St. Luke\'s Memorial Hospital Center in Utica, NY, SUNY Upstate Medical Center in Syracuse, and at Rochester General Hospital in Rochester, NY.<br /> <a href="/bio_bernstein.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[1]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/hollenberg_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Gary Hollenberg, M.D.</h3><p>UMI Radiologist</p><p>Dr. Hollenberg specializes in Body and Musculoskeletal MRI and Cross-Sectional Imaging. He is an Associate Professor of Radiology at the University of Rochester School of Medicine and Dentistry, with 16 years of experience in his field.<br /><a href="bio_hollenberg.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[2]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/kheyfits_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Valeriy Kheyfits, M.D.</h3><p>UMI  Radiologist</p><p>A specialist in Musculoskeletal Imaging, Dr. Kheyfits works closely with orthopaedic surgeons to optimize treatment for their patients. He is a strong proponent of using the imaging sciences as a preventive tool.<br /> <a href="bio_kheyfits.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[3]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/weinberg_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Eric Weinberg, M.D. <br />Medical Director</h3><p>UMI  Radiologist</p><p>Dr. Weinberg specializes in Cross-Sectional Imaging in MRI, CT and Ultrasound. His in-depth knowledge of these sub-specialty areas results in a higher level of accuracy and care. As a professor and researcher at the world-renowned University of Rochester Medical Center, he also teaches the next generation of radiologists about the latest developments in the field.<br /> <a href="bio_weinberg.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[4]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/meyers_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Steven P. Meyers, M.D., Ph.D.</h3><p>UMI  Radiologist</p><p>Steven P. Meyers, M.D., Ph.D. specializes in Magnetic Resonance Imaging, Computed Tomography, Neuroradiology and Musculoskeletal Imaging. Dr. Meyers is committed to providing compassionate and technologically superior care to his patients.<br /> <a href="bio_meyers.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[5]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/rosella_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Peter Rosella, M.D.</h3><p>UMI  Radiologist</p><p>Dr. Peter Rosella gained a personal understanding of disease management when a family member contracted a severe illness. He brings that experience with him to UMI with patient-centered, empathetic medical care.<br /> <a href="bio_rosella.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[6]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/weiss_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Steven D. Weiss, M.D.</h3><p>UMI  Radiologist</p><p>As a Radiologist with advanced training in MRI, Dr. Weiss believes that timing is everything. While it is critical to make a timely diagnosis, it is just as important to make a thorough, detailed review of every single imaging scan.<br /> <a href="bio_weiss.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[7]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/shrier_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>David A. Shrier, M.D.</h3><p>UMI  Radiologist</p><p>Dr. Shrier has been published in many leading peer-reviewed medical journals, and he has collaborated in a number of clinical trials. His current research includes exploring new techniques in contrast-enhanced magnetic resonance angiography (MRA).<br /> <a href="bio_shrier.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[8]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/varnis_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Charlene Varnis, M.D.</h3><p>UMI  Radiologist</p><p>Dr. Varnis specializes in Musculoskeletal, Body, and Neuroradiology Magnetic Resonance Imaging. She received her medical degree from SUNY Downstate, and completed her Internal Medicine Residency and Rheumatology Fellowship at the University of Massachusetts Medical Center. <br /> <a href="bio_varnis.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

textStr[9]='<h2>Meet Your Radiologist.</h2><img id="ea3525" src="images/level2/meet_radiologist/zynda_photo.png" alt="Temp Photo" width="173" height="129" /><br /><h3>Andrea Zynda-Weiss, M.D.</h3><p>UMI  Radiologist</p><p>To Dr. Zynda-Weiss, the imaging sciences bring together anatomy and pathology to answer her patient\'s most critical questions. It is this process of discovery, of uncovering solutions to problems that inspired her to become a radiologist.<br /> <a href="bio_zyndaweiss.asp"><img id="ed0f9c" src="images/level2/btn_more_f1.png" border="0" alt="more" width="32" height="22" /></a></p>';

var myspecials = textStr.length;
var randomnumber=Math.floor(Math.random()*myspecials);

function msgRotate() {
	dom=findDOM("message",0);
    dom.innerHTML = textStr[randomnumber];
}




// This is the implementation of SimpleSwap
// by Jehiah Czebotar
// Version 1.1 - June 10, 2005
// Distributed under Creative Commons
//
// Include this script on your page
// then make image rollovers simple like:
// <img src="/images/ss_img.gif" oversrc="/images/ss_img_over.gif">
//
// http://jehiah.com/archive/simple-swap
// 


function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}
