﻿function loadExpert(section, doctor, ignoreVideo) {
  $("#videoCaption").attr("src", "images/dr/" + section + "_" + doctor + "_hdr.gif");

  var expert = Experts[doctor];    
  if (expert != null && expert["biolink"] != null && expert["biolink"] != "") {
    $("#drLink").show()
      .attr("href", expert["biolink"])
      .html("Learn more about " + expert["prefix"] + " " + expert["lastname"] + ".");
  }
  else
  {
    $("#drLink").hide();
  }

  if (!ignoreVideo) {
    getFlashMovie("flv").setVideo("video/" + section + "_" + doctor + ".flv");
  }
  return false;
}

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}


var Experts = {
  "bernsteins" : {"firstname" : "Steven", "lastname" : "Bernstein", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=154" }
  ,"derusj" : {"firstname" : "Jeffrey", "lastname" : "Derus", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=430" }
  ,"gouldp" : {"firstname" : "Perry", "lastname" : "Gould", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=672" }
  ,"hansonj" : {"firstname" : "John", "lastname" : "Hanson", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=732" }
  ,"jackowskig" : {"firstname" : "Greg", "lastname" : "Jackowski", "prefix" : "Mr.", "suffix" : "", "biolink" : "" }
  ,"jagetiar" : {"firstname" : "Rakesh", "lastname" : "Jagetia", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=853" }
  ,"johnsonm" : {"firstname" : "Matthew", "lastname" : "Johnson", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=5752" }
  ,"kiddc" : {"firstname" : "Charles", "lastname" : "Kidd", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=8860" }
  ,"leonoviczp" : {"firstname" : "Peter", "lastname" : "Leonovicz", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=8329" }
  ,"pincusm" : {"firstname" : "Mitchell", "lastname" : "Pincus", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1420" }
  ,"rohloffc" : {"firstname" : "Carla", "lastname" : "Rohloff", "prefix" : "Ms.", "suffix" : "", "biolink" : "" }

  ,"bastink" : {"firstname" : "Kenneth", "lastname" : "Bastin", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=3364" }
  ,"brayl" : {"firstname" : "Lisa", "lastname" : "Bray", "prefix" : "Ms.", "suffix" : "", "biolink" : "" }
  ,"gronskit" : {"firstname" : "Ted", "lastname" : "Gronski", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=696" }
  ,"howardm" : {"firstname" : "Margery", "lastname" : "Howard", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2169" }
  ,"krishnans" : {"firstname" : "Santosh", "lastname" : "Krishnan", "prefix" : "Dr.", "suffix" : "PhD, M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=9165" }
	  ,"nuthakkiv" : {"firstname" : "Vijay", "lastname" : "Nuthakki", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=007" }
  ,"stevenl" : {"firstname" : "Steven", "lastname" : "Leh", "prefix" : "Dr.", "suffix" : "", "biolink" : "" }
  ,"olsond" : {"firstname" : "Dave", "lastname" : "Olson", "prefix" : "Dr", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1344" }
  ,"rihawim" : {"firstname" : "Mouhammed", "lastname" : "Rihawi", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=8985" }

  ,"brooksa" : {"firstname" : "Andrew", "lastname" : "Brooks", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=11043" }
  ,"holmeso" : {"firstname" : "Oza", "lastname" : "Holmes", "prefix" : "Ms.", "suffix" : "", "biolink" : "" }
  ,"masteyl" : {"firstname" : "Lynn", "lastname" : "Mastey", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1164" }
  ,"mikkelsonw" : {"firstname" : "Wendy", "lastname" : "Mikkelson", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1218" }
  ,"satchieb" : {"firstname" : "Brenda", "lastname" : "Satchie", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=9617" }
  ,"tjoej" : {"firstname" : "Judy", "lastname" : "Tjoe", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=6665" }
  ,"torkelsona" : {"firstname" : "Allan", "lastname" : "Torkelson", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1836" }
  ,"whamd" : {"firstname" : "Deb", "lastname" : "Wham", "prefix" : "Ms.", "suffix" : "", "biolink" : "" }
  ,"jiajae" : {"firstname" : "Ellen", "lastname" : "Ziaja", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2021" }

  ,"beresr" : {"firstname" : "Robert", "lastname" : "Beres", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=146" }
  ,"klasj" : {"firstname" : "James", "lastname" : "Klas", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=956" }
	,"kluiberr" : {"firstname" : "Rudolph", "lastname" : "Kluiber", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=11013" }
  ,"preussd" : {"firstname" : "Dot", "lastname" : "Preuss", "prefix" : "Ms.", "suffix" : "", "biolink" : "" }
  ,"schmalzm" : {"firstname" : "Michael", "lastname" : "Schmalz", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=3304" }
  ,"steersj" : {"firstname" : "Jeffery", "lastname" : "Steers", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=10464" }
	,"yoselevitzm" : {"firstname" : "Moises", "lastname" : "Yoselevitz", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=9907" }

  ,"ahujaa" : {"firstname" : "Arvind", "lastname" : "Ahuja", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=18" }
  ,"blocks" : {"firstname" : "Spencer", "lastname" : "Block", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2642" }
  ,"bregerr" : {"firstname" : "Robert", "lastname" : "Breger", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2660" }
  ,"brysonj" : {"firstname" : "Julie", "lastname" : "Bryson", "prefix" : "Dr.", "suffix" : "PhD", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=7261" }
  ,"morrisg" : {"firstname" : "George", "lastname" : "Morris", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1254" }

  ,"knabelm" : {"firstname" : "Mark", "lastname" : "Knabel", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2952" }
  ,"mahoneyj" : {"firstname" : "James", "lastname" : "Mahoney", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1122" }
  ,"treismanj" : {"firstname" : "Jonathan", "lastname" : "Treisman", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1840" }

  ,"deshurw" : {"firstname" : "William", "lastname" : "Deshur", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=2043" }

  ,"taylorr" : {"firstname" : "Robert", "lastname" : "Taylor", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=1807" }
  ,"hiremaths" : {"firstname" : "Satchi", "lastname" : "Hiremath", "prefix" : "Dr.", "suffix" : "M.D.", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=8515" }
	
	,"johnsonp" : {"firstname" : "Peter", "lastname" : "Johnson", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=876" }
	,"Kamarajus" : {"firstname" : "Sailaja", "lastname" : "Kamaraju", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=7933" }
  ,"kamelles" : {"firstname" : "Scott", "lastname" : "Kamelle", "prefix" : "Dr.", "suffix" : "", "biolink" : "http://www.aurorahealthcare.org/doctors/display.asp?ID=10462" }

  ,"mcdonaldj" : {"firstname" : "Jean", "lastname" : "McDonald", "prefix" : "Ms.", "suffix" : "", "biolink" : "" } 
};

function MM_swapImgRestore() {var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_preloadImages() {var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
function MM_findObj(n, d) {var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}
function MM_swapImage() {var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}