var baseDataURL = "./images/";
var basePageURL = "./";
var svcURL = "/xml";
var fileuploadURL = "/docupload";
var appuploadURL = "/appupload";

//var filedownloadURL = "/docdownload";


var topURL = ".././";


var app = null;

var homeLocation = "index.html";
var postLoginHTML = "myhome.html#My.NewsFeed";

if (window.dhtmlHistory) {
	  window.dhtmlHistory.create({
	  toJSON: function(o) {
			return Object.toJSON(o);
		}
		, fromJSON: function(s) {
			return s.evalJSON();
		},
		debugMode: false//set this to false, or just don't pass in an options bundle, to see real-world, non-debug conditions 
	  });
}
  
function start(appId) {
  if(typeof dhtmlHistory != "undefined") {
		dhtmlHistory.initialize();
		dhtmlHistory.addListener(historyChange);
  }
  if (is_firefox && appId != 6) {
	document.body.style.overflowY = "scroll";
  }
  systemProps['is_dev_env'] = false;
  _useFile = false;
  //enableDebug();
  app = new VL.Main();
  app.start(appId);
}