//--------------------------------------
  // Configuration
//--------------------------------------
var domain = ".ligtown.com";
var appserver = "www";
var pubserver = "www";
//--------------------------------------
function setCookie1(name, value) {

  document.cookie = name + "=" + escape(value) +
    ";DOMAIN=" + domain +
    ";PATH=/";
}
function getCookie(Name) {
  var search = Name + "=";
  if (document.cookie.length>0){
    offset = document.cookie.indexOf(search);
    if (offset != -1){
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1)
        end = document.cookie.length;
      return unescape(document.cookie.substring(offset, end));
    }
  }
}
var appprotocol = "http";
var appurl = appprotocol + "://" + appserver + domain;
var conntype = getCookie("lgins_connect_type");
if( conntype == null || conntype == "" || conntype == "undefined" )  conntype = "lgins/id";

function go_login(){
   location = appprotocol + "://" + appserver + domain + "/lgins/id/index";
}

