var result = window.location.protocol;
/**/
if( result == 'HTTPS:' || result == "https:" || (("" == "TRUE") && result == "http:") ) {}
   else {
   var sPath = window.location.pathname;
 //var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
  var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
<!-- Begin
redirTime = "0";
redirURL = "https://www.hastingscitybank.com/" + sPage;
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
 redirTimer()
//  End -->
    }

