<!-- // Hiding
// Master Javascript file for MemorialHermann.org

//  * * * * * * * * * * * * HCO Domain Check * * * * * * * * * * * *
// HEALTHvision - RPizzini 2002-2003
// This function takes COMMv website requests from other HCO registered domains 
// and redirects them to the same content on the HCO's branded COMMV domain.
// 8/08/2003 - added code to ignore ipHVInternal IP range.

function domainCheck() {
// *  Set HCO parameters below.   *
  var domainHCO = "www.memorialhermann.org"  // HCO's branded domain name with www.
  //var domainHCO = "localhost"  // HCO's branded domain name with www.
  var ipHCOProduction = "12.31.13.234"  // HCO's production IP address.
  var ipHCOStaging = "12.31.13.84"  // HCO's staging IP address.
  var ipHVInternal = "10.10." //HV internal access range.
  var excludeStore = "/jobs/"  //Exclude any requests for pages in this store

//  * You should not need to adjust anything else.   *
  var locationPathString
  var locationDomainString
  locationPathString = window.location.pathname

// Ignore all requests where excludeStore is found in the path.
  if (locationPathString.indexOf(excludeStore) !=-1) {
	return true;
  }
  else {
    locationPathString = locationPathString.toLowerCase();
    locationDomainString = window.location.host
    locationDomainString = locationDomainString.toLowerCase();
//  Ignore requests from staging IP, production IP, HV internal IP or branded site domain.
    if (locationDomainString.indexOf(ipHCOStaging) != -1 | locationDomainString.indexOf(ipHCOProduction) != -1 | locationDomainString.indexOf(ipHVInternal) != -1 | locationDomainString.indexOf(domainHCO) != -1){ 
	return true; 
    }
    else {
// User is coming in from other HCO registered domain so redirect to branded domain
// and try to keep them on the same page in case this request is a favorite.	
	window.location.href = "http://" + domainHCO + locationPathString
    }
  }
}

//domainCheck();

// * * * * * * * * * * * * * Browser Sniffing * * * * * * * * * * * * * * * * * * * * * * *
  var browserName = navigator.appName
  var browserVersion = navigator.appVersion
  browserVersion = parseInt(browserVersion)


// * * * * * * * * * * * * * Date Functions * * * * * * * * * * * * * * * * * * * * * * *
function getToday() {
  // weekDay = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
  month = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
  today = new Date()
  year =  today.getYear()
  if (year < 200) { year = year + 1900 } 
  // document.write(""+weekDay[today.getDay()] +" ")
  document.write(""+ month[today.getMonth()] + " " + today.getDate() + ", " + year + "")
}

// ->

