<!--

// set browser detection variable is_4 to true or false

// use this variable to prevent non 4.0 browser errors for dropdowns



var is_4 = false;

var check_major = parseInt(navigator.appVersion);

if (check_major >= 4){is_4 = true;}





var agt = navigator.userAgent.toLowerCase();



//CHECK FOR OS

var is_mac = (agt.indexOf("mac")!=-1);

var is_pc = ((agt.indexOf("win")!=-1) || (agt.indexOf("winnt")!=-1) || (agt.indexOf("windows")!=-1));



//CHECK FOR BROWSER



//NETSCAPE CHECKS

var is_major = parseInt(navigator.appVersion);

var is_minor = parseFloat(navigator.appVersion);

var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('compatible') == -1));

var is_nav4 = (is_nav && (is_major == 4));

var is_nav4up = (is_nav && (is_major >= 4));

var is_nav6 = (!is_ie && document.getElementById) ? "true" : "false"; 



//IE CHECKS

var is_ie = (agt.indexOf("msie") != -1); 



// EVALUATES OS & BROWSER THEN SETS VARIABLES FOR STYLE SHEET FONT SIZES

if (is_pc) {

   if (is_nav4 || is_nav4up && !is_ie) {

       strSmFontSize = 10;

       formtextfieldFontSize = 10;	   

       strFontSize = 12;

       strLgFontSize = 13;

   } else if (is_ie) {

       strSmFontSize = 10;

       formtextfieldFontSize = 11;		   

       strFontSize = 11;

       strLgFontSize = 13;

   } else {

       strSmFontSize = 10;

	   formtextfieldFontSize = 10;   

       strFontSize = 11;

       strLgFontSize = 13;

   }

} else if (is_mac) {

   if (is_nav4 || is_nav4up && !is_ie) {

       strSmFontSize = 10;

	   formtextfieldFontSize = 10;

       strFontSize = 11;

       strLgFontSize = 13;

   } else if (is_ie) {

       strSmFontSize = 10;

	   formtextfieldFontSize = 10;

       strFontSize = 11;

       strLgFontSize = 13;

   } else {

       strSmFontSize = 10;

	   formtextfieldFontSize = 10;

       strFontSize = 11;

       strLgFontSize = 13;

   }

} else {

   strSmFontSize = 10;

   formtextfieldFontSize = 10;

   strFontSize = 11;

   strLgFontSize = 13;

} 





//WRITE OUT CASCADING STYLE SHEETS



if (is_major >= 4) {

document.write(

'<style type="text/css">\n' +

'h1,h1 font {  font-size: '+ (strFontSize + 13)+'px; line-height: '+ (strFontSize + 15)+'px;}\n'+

'h2,h2 font {  font-size: '+ (strFontSize + 10)+'px; line-height: '+ (strFontSize + 12)+'px;}\n'+

'h3,h3 font {  font-size: '+ (strFontSize + 6)+'px; line-height: '+ (strFontSize + 8)+'px;}\n'+

'h4,h4 font {  font-size: '+ (strFontSize + 4)+'px; line-height: '+ (strFontSize + 6)+'px;}\n'+

'h5,h5 font {  font-size: '+ (strFontSize + 2)+'px; line-height: '+ (strFontSize + 4)+'px;}\n'+

'h6,h6 font {  font-size: '+ (strFontSize)+'px; line-height: '+ (strFontSize + 2)+'px;}\n'+

'.LOCALfont3 {  font-size: '+ (strFontSize + 1)+'px;}\n'+

'.LOCALfont4 {  font-size: '+ (strFontSize + 5) +'px;}\n'+

'.LOCALfont5 {  font-size: '+ (strFontSize + 11) +'px;}\n'+

'.LOCALfont6 {  font-size: '+ (strFontSize + 23) +'px;}\n'+

'.LOCALfont2 {  font-size: '+ (strFontSize - 1) +'px;}\n'+

'.LOCALfont1 {  font-size: '+ (strFontSize - 2) +'px;}\n'+

'form {font-size: ' + formtextfieldFontSize +'px;}\n'+

'form.tb {font-size: ' + formtextfieldFontSize +'px;}\n'+

'body,td,tr,font,p {font-size: ' + strFontSize +'px;}\n'+

'.date {font-size: '+strSmFontSize +'px;}\n'+

'a:link {font-size: '+strFontSize +'px;}\n'+

'a:hover {font-size: '+strFontSize +'px;}\n'+

'a:active {font-size: '+strFontSize +'px;}\n'+

'a:visited {font-size: '+strFontSize +'px;}\n'+

'.grayBreadCrumb {font-size: '+ strFontSize +'px;}\n'+

'.footerLink {font-size: ' + strSmFontSize +'px;}\n'+

'.footerTextGray { font-size: ' + strSmFontSize +'px;}\n'+

'.footerText {font-size: ' + strSmFontSize +'px;}\n'+

'input {font-size: ' + formtextfieldFontSize +'px;}\n'+

'select { font-size: ' + formtextfieldFontSize +'px;}\n'+

'textarea { font-size: ' + formtextfieldFontSize +'px;}\n'+

'.controlForm {font-size: ' + formtextfieldFontSize +'px;}\n'+

'</style>\n');

}



// Global rollover image functions





if (document.images) {

  image1on = new Image();

  image1on.src = "/top_level/assets/images/top_nav/heath_system_home_onT.gif";

  

  image1off = new Image();

  image1off.src = "/top_level/assets/images/top_nav/heath_system_home_offT.gif";



  image2on = new Image();

  image2on.src = "/top_level/assets/images/top_nav/site_index_onT.gif";

  

  image2off = new Image();

  image2off.src = "/top_level/assets/images/top_nav/site_index_offT.gif";



  image2bon = new Image();

  image2bon.src = "/top_level/assets/images/top_nav/search_for_onT.gif";



  image2boff = new Image();

  image2boff.src = "/top_level/assets/images/top_nav/search_for_offT.gif";

  

  image3on = new Image();

  image3on.src = "/top_level/assets/images/top_nav/go_on.gif";

  

  image3off = new Image();

  image3off.src = "/top_level/assets/images/top_nav/go_off.gif";



  image4on = new Image();

  image4on.src = "/top_level/assets/images/top_nav/uva_home_on.gif";

  

  image4off = new Image();

  image4off.src = "/top_level/assets/images/top_nav/uva_home_off.gif";



  image5on = new Image();

  image5on.src = "/top_level/assets/images/top_nav/news_pubs_on.gif";

  

  image5off = new Image();

  image5off.src = "/top_level/assets/images/top_nav/news_pubs_off.gif";



  image6on = new Image();

  image6on.src = "/top_level/assets/images/top_nav/maps_directions_on.gif";

  

  image6off = new Image();

  image6off.src = "/top_level/assets/images/top_nav/maps_directions_off.gif";



  image7on = new Image();

  image7on.src = "/top_level/assets/images/top_nav/jobs_on.gif";

  

  image7off = new Image();

  image7off.src = "/top_level/assets/images/top_nav/jobs_off.gif";



  image8on = new Image();

  image8on.src = "/top_level/assets/images/top_nav/library_on.gif";

  

  image8off = new Image();

  image8off.src = "/top_level/assets/images/top_nav/library_off.gif";



  image9on = new Image();

  image9on.src = "/top_level/assets/images/top_nav/gift_on.gif";

  

  image9off = new Image();

  image9off.src = "/top_level/assets/images/top_nav/gift_off.gif";

  

  image10on = new Image();

  image10on.src = "/top_level/assets/images/main_portal_nav/button_patients_on.gif";

  

  image10off = new Image();

  image10off.src = "/top_level/assets/images/main_portal_nav/button_patients_off.gif";



  image11on = new Image();

  image11on.src = "/top_level/assets/images/main_portal_nav/button_physicians_on.gif";

  

  image11off = new Image();

  image11off.src = "/top_level/assets/images/main_portal_nav/button_physicians_off.gif";

  

  image12on = new Image();

  image12on.src = "/top_level/assets/images/main_portal_nav/button_education_on.gif";

  

  image12off = new Image();

  image12off.src = "/top_level/assets/images/main_portal_nav/button_education_off.gif";





  image13on = new Image();

  image13on.src = "/top_level/assets/images/main_portal_nav/button_employees_on.gif";

  

  image13off = new Image();

  image13off.src = "/top_level/assets/images/main_portal_nav/button_employees_off.gif";
  
  
  image14on = new Image();

  image14on.src = "/top_level/assets/images/main_portal_nav/button_patientsfamilies_on.gif";

  

  image14off = new Image();

  image14off.src = "/top_level/assets/images/main_portal_nav/button_patientsfamilies_off.gif";
  
 
 
  image15on = new Image();

  image15on.src = "/top_level/assets/images/main_portal_nav/button_healthanswers_on.gif";

  

  image15off = new Image();

  image15off.src = "/top_level/assets/images/main_portal_nav/button_healthanswers_off.gif";

}

 

function turnOn(imageName) {

  if (document.images) {

    document[imageName].src =

      eval(imageName + 'on.src');

  }

}



function turnOff(imageName) {

  if (document.images) {

    document[imageName].src =

      eval(imageName + 'off.src');

  }

}





  // this function for opening the site-guide menu

function hspopwin(){

   theIndex=window.open('/home/site-guide.html','_sitewin','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=300,height=450');

}



 // this function for popups as needed

function popnewwin(theURL,winName,features) 

{ window.open(theURL,winName,features); }



// this function to be used for universal onload events

function whenload(){}

//-->











