            /*
             Cookie set values per hospital as belows
             FHS Main           			  - Hospital01
             St. Joseph Medical Center  	  - Hospital02 /services.aspx?id=120&menu_id=12&submenu_id=14
             St. Clare Hospital  	    	  - Hospital03 /services.aspx?id=150&menu_id=16&submenu_id=18
             St. Anthony Hospital  		      - Hospital04 /services.aspx?id=198&menu_id=20&submenu_id=22
             St. Francis Hospital  	    	  - Hospital05 /services.aspx?id=226&menu_id=24&submenu_id=26
             Enumclaw Regional Hospital  	  - Hospital06 /services.aspx?id=256&menu_id=28&submenu_id=30	
             Franciscan Medical Group Clinics - Hospital07
             * 
             * this cookie is update by javascript "/js/ls.js" on click of Hospital links in footer
             * 
             */
/// <summary>
/// This Method accept the string Hospital Value and Chnage the menu system according that
/// </summary>

if (document.cookie != "") //make sure the cookie exists
{
   
}
    
 function activeHospital()
 {
    var hospital = readCookie('HospitalCK');
    
    if(hospital)
    {
    alert('Hospital is ' +  hospital);   
    }
    else
    {
    alert('hospital is null');
    }
 }
 
 
  
 function createCookie(name,value,days) {
 //remove HealthLib cookies if it is called
//eraseCookie(HealthLib);
 
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires=" + date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
	//activeHospital();
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0)
		{
		//createCookie(name,c.substring(nameEQ.length,c.length,days));
		 return c.substring(nameEQ.length,c.length);
		 }
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}


// called in fixed footer to show the status bar text
function statusBarText(strStatus){
{

window.status=strStatus;}
}