/*
$Id: preloader.js 6789 2008-11-25 23:08:32Z santep $
(c) 2008 The New York Times Company
*/

var NYTD = NYTD || {};



NYTD.Hosts = NYTD.Hosts || {
  imageHost: 'http://graphics8.nytimes.com',
  jsHost:    'http://graphics8.nytimes.com',
  cssHost:   'http://graphics8.nytimes.com'
}

var TimesPeople = {
  version: '1.0',
  Config: {
    host:              'http://timespeople.nytimes.com',
    css_host:          NYTD.Hosts.cssHost,
    image_host:        NYTD.Hosts.imageHost,
    js_host:           NYTD.Hosts.jsHost,
    ad_host:           'http://www.nytimes.com',
    user_image_host :  'http://pimage.timespeople.nytimes.com',
    image_path:        '/images/apps/timespeople/',
    css_path:          '/css/app/timespeople/',
    service:           '/svc/timespeople/toolbar/1.0/',
    image_service:     'http://tp-upload.nytimes.com/postpic.php',
    xpi:               false,
    RMID:             /RMID=([^;]+)/.test(unescape(document.cookie)) ? RegExp.$1 : ''
  }
};

NYTD.require = NYTD.require || function(url) {
  document.write('<script src="'+ NYTD.Hosts.jsHost + url +'" type="text/javascript" charset="utf-8"><\/script>');
}

NYTD.require('/js/app/lib/NYTD/0.0.1/cookie.js');
NYTD.require('/js/app/timespeople_1.0/lib/console.js');
NYTD.require('/js/app/timespeople_1.0/urilist.js');
NYTD.require('/js/app/timespeople_1.0/marginfix.js');


// DEPRECATED! to be used by older version of userpages.js
TPCONFIG = {
  "host": "http://timespeople.nytimes.com", 
  "css_host": "http://graphics8.nytimes.com", 
  "image_host": "http://graphics8.nytimes.com", 
  "js_host": "http://graphics8.nytimes.com", 
  "ad_host": "http://www.nytimes.com", 
  "user_image_host": "http://pimage.timespeople.nytimes.com", 
  "image_path": "/images/apps/timespeople/", 
  "css_path": "/css/app/timespeople/", 
  "service": "/svc/timespeople/fe/fe_svc.html", 
  "image_service": "http://tp-upload.nytimes.com/postpic.php", 
  "xpi": false, 
  "token": "32356e003ce849232ebbc1fb"
}

