  var centaur = { src: '/_sifr/centaur.swf' };
  var myriadprocondensed = { src: '/_sifr/myriadprocondensed.swf'};
  var myriadcondensedweb = { src: '/_sifr/myriadcondensedweb.swf'};
  var gillsans = { src: '/_sifr/gillsansmt.swf'};
  var avenir = { src: '/_sifr/avenirA.swf'};

  sIFR.debugMode = true;
  sIFR.delayCSS  = true;
  // sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
  sIFR.activate(myriadprocondensed, avenir);


  doSifr = function(){
        sIFR.replace(myriadprocondensed, {
    selector: '.sTitleMain'
	,wmode:'transparent'
    ,css: {
   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
     '.sIFR-root': { 'color': '#5292ce', 'letter-spacing': 0.3, 'font-size':'23px'},
	 'a':{ 'color': '#b8b8b8', 'text-decoration': 'none'}
    }
  });
  }
    doSifrsubTitle = function(){
        sIFR.replace(avenir, {
    selector: '.bodyContentsubTitle'
	,wmode:'transparent'
    ,css: {
   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
     '.sIFR-root': { 'color': '#21558c', 'letter-spacing': -0.3, 'font-size':'23px'},
	 'a':{ 'color': '#b8b8b8', 'text-decoration': 'none'}
    }
  });
  }
    doSifrHome = function(){
        sIFR.replace(avenir, {
			selector: '#sifr_welcome'
			,wmode:'transparent'
			,css: {
		   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
			 '.sIFR-root': { 'color': '#666666', 'letter-spacing': '0.2', 'background-color':'#ffffff'}
			 , 'strong' : {'font-weight':'normal', 'color': '#000000', 'letter-spacing': 0, 'background-color':'#ffffff'}
			 ,'a':{ 'color': '#666666'}
			}
		}); 
		sIFR.replace(myriadcondensedweb, {
			selector: '.sifr_nav'
			,wmode:'transparent'
			,css: {
		   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
			 '.sIFR-root': { 'color': '#666666', 'letter-spacing': -0.2, 'font-size':'14px', 'background-color':'#ffffff'}
			 , 'strong' : {'font-weight':'normal', 'color': '#000000', 'letter-spacing': 0,'background-color':'#ffffff'}
			}
		}); 
  }
  doOther = function(color){
	  color = "#"+color;
        sIFR.replace(avenir, {
			selector: '#bmi'
			,wmode:'transparent'
			,css: {
		   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
			 '.sIFR-root': { 'color': '#000000', 'letter-spacing': '0.2', 'background-color':'#ffffff','font-size':'19px'}
			 , 'strong' : {'font-weight':'normal', 'color': color, 'letter-spacing': 0, 'background-color':'#ffffff'}
			 ,'a':{ 'color': '#666666'}
			}
		}); 
  }
 /*     sIFR.replace(myriadprocondensed, {
    selector: '.bdcrumb'
	,wmode:'transparent'
    ,css: {
   //   '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
     '.sIFR-root': { 'color': '#990000', 'letter-spacing': 0.0, 'font-size':'13px','font-weight':'bold','text-decoration':'none'}
	 ,'a': { 'text-decoration': 'none','color':'#000000'}
	 ,'a:link' { 'text-decoration': 'none','color':'#666666'}
    }
  });*/

  //]]>
 contactMe = function(e,x,y, who){
	if(e != null || e != ''){
		cfdisplay = document.getElementById('contactform').style.display;
		if(cfdisplay == 'inline'){
			document.getElementById('contactform').style.display = 'none';
		} else if(cfdisplay != 'inline'){
			document.getElementById('contactform').style.left=x+50;
			document.getElementById('contactform').style.top=y;
			document.getElementById('contactform').style.display = 'inline';
			where= "/tmepcontact.php?who="+who+"&em="+e;
			new Ajax.Updater('contactform', where, { asynchronous:true, evalScripts:true });
		}
	}
} 

  shownavcal = function(what,where,x,y){
	if(where == 'calendar'){
		if (navigator.appName == "Microsoft Internet Explorer"){
			posx = x+100;
			posy = y+20; 
		} else if (navigator.appName != "Microsoft Internet Explorer"){
			posx = x-240;
			posy = y-13;
		}
	}
  	document.getElementById(what).style.left=posx+5;
	document.getElementById(what).style.top=posy+0;
  }

  shownav = function(what,where,primnavback,color){
	if(where == 'hospitalservices'){
		if (navigator.appName == "Microsoft Internet Explorer"){
			posx = findPosX(visitors)-120;
			posy = findPosY(visitors); 
		} else if (navigator.appName != "Microsoft Internet Explorer"){
			posx = findPosX(visitors)-240;
			posy = findPosY(visitors)-13;
		}
		document.getElementById('visitors_menu').style.display='none';
		document.getElementById('patientsandfamilies_menu').style.display='none';
		document.getElementById('healthprofessionals_menu').style.display='none';
	} else if(where == 'visitors'){
		if (navigator.appName == "Microsoft Internet Explorer"){
			posx = findPosX(visitors)-12;
			posy = findPosY(visitors); 
		} else if (navigator.appName != "Microsoft Internet Explorer"){
			posx = findPosX(visitors)-134;
			posy = findPosY(visitors)-13;
		}
		document.getElementById('hospitalservices_menu').style.display='none';
		document.getElementById('patientsandfamilies_menu').style.display='none';
		document.getElementById('healthprofessionals_menu').style.display='none';
	} else if(where == 'patientsandfamilies'){
		if (navigator.appName == "Microsoft Internet Explorer"){
			posx = findPosX(visitors)+48;
			posy = findPosY(visitors); 
		} else if (navigator.appName != "Microsoft Internet Explorer"){
			posx = findPosX(visitors)-76;
			posy = findPosY(visitors)-13;
		}
		document.getElementById('visitors_menu').style.display='none';
		document.getElementById('hospitalservices_menu').style.display='none';
		document.getElementById('healthprofessionals_menu').style.display='none';
	} else if(where == 'healthprofessionals'){
		if (navigator.appName == "Microsoft Internet Explorer"){
			posx = findPosX(visitors)+165;
			posy = findPosY(visitors); 
		} else if (navigator.appName != "Microsoft Internet Explorer"){
			posx = findPosX(visitors)+45;
			posy = findPosY(visitors)-13;
		}
		document.getElementById('visitors_menu').style.display='none';
		document.getElementById('patientsandfamilies_menu').style.display='none';
		document.getElementById('hospitalservices_menu').style.display='none';
	}
	document.getElementById(what).style.display='inline';
	document.getElementById(what).style.left=posx+5;
	document.getElementById(what).style.top=posy+0;
	document.getElementById(primnavback).style.backgroundColor='#'+color;
	
	
}

hidenav = function(){
		document.getElementById('visitors_menu').style.display='none';
		document.getElementById('patientsandfamilies_menu').style.display='none';
		document.getElementById('healthprofessionals_menu').style.display='none';
		document.getElementById('hospitalservices_menu').style.display='none';
		document.getElementById('visitors_menu').style.backgroundColor='#ffffff';
		document.getElementById('patientsandfamilies_menu').style.backgroundColor='#ffffff';
		document.getElementById('healthprofessionals_menu').style.backgroundColor='#ffffff';
		document.getElementById('hospitalservices_menu').style.backgroundColor='#ffffff';
}
hideMenu = function (what,primnavback,color){
	document.getElementById(what).style.display='none';
	document.getElementById(primnavback).style.backgroundColor='#'+color+'';
}

function findPosX(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
		return curleft;
	}
function findPosY(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
		return curtop;
	}
aLoadalist = function(specialtyall,specialty, name,gp,city){
	//document.getElementById('map').style.display='none';
	if(gp == '' || gp == null){
		groupn = '';
	} else groupn = '&groupname='+gp;
	
	if(city == '' || city == null){
		cityn = '';
	} else cityn = '&city='+city;
	if((specialtyall != '' && specialty != '') || (specialtyall == '' && specialty != '')){
		where = '/_phy_dirlistA_test1.php?type='+specialty+'&name='+name+groupn+cityn;
	} else if(specialtyall != '' && specialty == ''){
		where = '/_phy_dirlistA_test1.php?type='+specialtyall+'&name='+name+groupn+cityn;
	} else where = '/_phy_dirlistA_test1.php?name='+name+groupn+cityn;
	document.getElementById('loading').style.display='inline';//document.getElementById('_nav_physiciansdirectory_c').innerHTML='';
	//document.getElementById('_nav_physiciansdirectory_c').style.display='none';
	new Ajax.Updater('bodytext', where, { asynchronous:true, evalScripts:true });
}

    function load(e) {
	var map;var directionsPanel;var directions;
      if (GBrowserIsCompatible()) {
           map = new GMap2(document.getElementById("map"));
      directionsPanel = document.getElementById("route");
	  map.addControl(new GSmallMapControl());
	  map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(36.12802,-86.84298), 15);
      directions = new GDirections(map, directionsPanel);
      directions.load(e+" to 36.12802,-86.84298");
	  
      }
    }
function showmap(e) {
	if(document.getElementById('domap').style.visibility != 'visible'){
		document.getElementById('domap').style.visibility='visible';
		document.getElementById('domap').style.overflow='visible';
		document.getElementById('floors').style.marginTop='30px';
      } else if(document.getElementById('domap').style.visibility == 'visible'){
		document.getElementById('domap').style.visibility='hidden';
		document.getElementById('domap').style.height='1px';
		document.getElementById('domap').style.overflow='hidden';
      }
	  if(e == 'o'){
	  	document.getElementById('domap').style.visibility='visible';
		document.getElementById('domap').style.overflow='visible';
		document.getElementById('floors').style.marginTop='0px';
	  }
    }
getDirections = function(){
	if(document.getElementById('directioninput').style.display != 'inline'){
		document.getElementById('directioninput').style.display='inline';
	} else if(document.getElementById('directioninput').style.display == 'inline'){
		document.getElementById('directioninput').style.display='none';
		document.getElementById('domap').style.visibility='hidden';
		document.getElementById('domap').style.height='1px';
		document.getElementById('domap').style.overflow='hidden';
		//showmap();
	}
	}	
doDirections = function(e){
if(document.getElementById('domap').style.visibility=='visible'){
	document.getElementById('route').innerHTML='';
}
load(e);
showmap('o');
}

loadPr = function(e, page, title){
	if(e == 'bodytext'){
		document.getElementById('bodytext').innerHTML='Loading......';
	}
		new Ajax.Updater(e, page, {asynchronous:true, evalScripts:true });
}

loadContent = function(bodytext,id,mImage){
	if(mImage != '' || mImage != null){
		document.getElementById('mImage').src = mImage;
	}
	url = "/ind_.php/site/"+bodytext+"/"+id+"/";
	document.getElementById('bodytextInner').innerHTML='Loading......';
	new Ajax.Updater('bodytextInner', url, {asynchronous:true, evalScripts:true });

}
	function calcBMI(weight,h1,h2) {
		document.getElementById('bmistuff').style.display='inline';
		var d = document;
		var f = d.bmi;
		//var weight = f.elements.weight.value;
		//var h1 = f.elements.height1.value;
		//var h2 = f.elements.height2.value;
		//alert(h2);
		if ((weight == "" || h1 == "")) {
			alert("Please fill out the form completely to calculate your BMI");
			return false;
		} else if (isNaN(weight) || isNaN(h1) || isNaN(h2)) {
			alert("Please make sure you enter the correct values to calculate your BMI");
			return false;
		} else {
			var w = weight*.45359237;
			var h = h1*12;
			h = h-(-h2);
			h = h*.0254;
			h = h*h;
			var index = w/h;
			var index = index.toFixed(1); 
			if(index > 29.9){
				color = "e51837";
				size = " and are considered obese.";
			} else if(index > 24.9 && index < 30){
				color = "b7737d";
				size = " and are considered overweight.";
			} else if(index > 18.4 && index < 25){
				color = "000000";
				size = " and are considered normal.";
			} else if(index < 18.5){
				color = "1f6dfa";
				size = " and are considered underweight";
				//A BMI of less than 19 indicates you are underweight. A BMI between 20 and 24 is usually considered normal. A person with a BMI of 25 to 29 is considered overweight, and a person with a BMI of 30 or above is considered obese. Obesity is associated with an increased risk for heart disease, diabetes, and other life-threatening diseases.";
			}
			if (d.getElementById) {
				var e = d.getElementById("bmiPrint");
				e.innerHTML = "";
				e.innerHTML = "<div id='bmi'>Your BMI is <strong>" + index + ""+size+"</strong></div>";
				document.getElementById('bmiinfo').innerHTML = "A BMI of less than 19 indicates you are underweight. A BMI between 20 and 24 is usually considered normal. A person with a BMI of 25 to 29 is considered overweight, and a person with a BMI of 30 or above is considered obese. Obesity is associated with an increased risk for heart disease, diabetes, and other life-threatening diseases.";
				doOther(color);
			} else {
				
			}
		}
	}
function calcBMI(weight,h1,h2) {
		document.getElementById('bmistuff').style.display='inline';
		var d = document;
		var f = d.bmi;
		//var weight = f.elements.weight.value;
		//var h1 = f.elements.height1.value;
		//var h2 = f.elements.height2.value;
		//alert(h2);
		if ((weight == "" || h1 == "")) {
			alert("Please fill out the form completely to calculate your BMI");
			return false;
		} else if (isNaN(weight) || isNaN(h1) || isNaN(h2)) {
			alert("Please make sure you enter the correct values to calculate your BMI");
			return false;
		} else {
			var w = weight*.45359237;
			var h = h1*12;
			h = h-(-h2);
			h = h*.0254;
			h = h*h;
			var index = w/h;
			var index = index.toFixed(1); 
			if(index > 29.9){
				color = "e51837";
				size = " and are considered obese.";
			} else if(index > 24.9 && index < 30){
				color = "b7737d";
				size = " and are considered overweight.";
			} else if(index > 18.4 && index < 25){
				color = "000000";
				size = " and are considered normal.";
			} else if(index < 18.5){
				color = "1f6dfa";
				size = " and are considered underweight";
				//A BMI of less than 19 indicates you are underweight. A BMI between 20 and 24 is usually considered normal. A person with a BMI of 25 to 29 is considered overweight, and a person with a BMI of 30 or above is considered obese. Obesity is associated with an increased risk for heart disease, diabetes, and other life-threatening diseases.";
			}
			if (d.getElementById) {
				var e = d.getElementById("bmiPrint");
				e.innerHTML = "";
				e.innerHTML = "<div id='bmi'>Your BMI is <strong>" + index + ""+size+"</strong></div>";
				document.getElementById('bmiinfo').innerHTML = "A BMI of less than 19 indicates you are underweight. A BMI between 20 and 24 is usually considered normal. A person with a BMI of 25 to 29 is considered overweight, and a person with a BMI of 30 or above is considered obese. Obesity is associated with an increased risk for heart disease, diabetes, and other life-threatening diseases.";
				doOther(color);
			} else {
				
			}
		}
	}
    sendData = function() {
        var url = '/healthprofessionals/_284life_submission.php';
        var pars = Form.serialize('carefinders');
        var myAjax = new Ajax.Request( url, {method: 'post', parameters: pars,onComplete: showResponse} );
	}
    showResponse = function(){
    	alert("Thank you. We've received your request. Someone will be contacting you shortly.");window.location='http://www.baptisthospital.com';
    }
function openWindow(page, title, w, h, scroll) {
 	var pop = window.open(page, title, 'toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=' + scroll + ', width=' + w + ', height=' + h + ',resizable=0');
}