/**
 * slconfig.js
 * 
 * Set some basic variables that we will use throughout with SiteLife implementation.
 * 
 */

try{document.domain="washingtonpost.com"}catch(e){};
var siteLifeServerName = "community"
var customerSiteName = "www"
var personaUrl = "/wp-dyn/content/custom/2006/09/25/CU2006092500203.html";
var newspaperUserId = "newspaperUserId";

var myUrl = document.location.href;

var pageHostUrl = "http://" + siteLifeServerName + "." + document.domain;
var communityHostUrl = "http://" + customerSiteName + "." + document.domain;
var newsIndexPage = "news.html";
var jsProxyServerUrl = "http://" + siteLifeServerName + "." + document.domain + "/ver1.0/SiteLifeProxy";
// var daapiProxyServerUrl = "http://" + siteLifeServerName + "." + document.domain + "/ver1.0/Direct/DirectProxy";
var daapiProxyServerUrl = "http://" + customerSiteName + "." + document.domain + "/wp-srv/javascript/community/utils/main.js";
var daapiServerUrl = "http://" + siteLifeServerName + "." + document.domain + "/ver1.0/Direct/Process";

function getPluckDelay(start,end) {
	var scaling_factor = 0.0 ;
	var constant_delay = 1000 ;
	return Math.round(scaling_factor*(end-start)) + constant_delay ;
}