/*var https = (location.protocol.substring(0,5) == 'https') ? true : false;
if ( (!(https)) && (location.host == 'www1.avaya.com') )  {
	window.location="https://"+location.host+location.pathname+location.search;
}*/

//wss custom function to set a first party cookie via javascript
function _hbCookie(a,b,c){document.cookie=a+"="+b+";path=/;"}

var https = (location.protocol.substring(0,5) == 'https') ? true : false;
if ( (!(https)) && (location.host == 'www1.avaya.com') )  {
	//wss capture the referrer and store in a first party cookie
	_hbCookie('hbx.hrf', document.referrer);
	window.location="https://"+location.host+location.pathname+location.search;
}
