/*
 * Properties definitions
 * By wch3116
 * 04/10/2008
 */
 
/*** begin ***/

// app properties
var $app = {};

$app.context = {
	root : window['$ctx'] != null ? window['$ctx'] : '/hi'
};

var $ctx = $app.context.root;

// Service properties
var $svc = {
	xmlrpc : $ctx + '/service/xmlrpc',
	jsonrpc : $ctx + '/service/jsonrpc',
	webdata : $ctx + '/service/webdata/',
	filesystem : $ctx + '/service/filesystem/',
	docsystem : $ctx + '/service/docsystem/',
	thumb : $ctx + '/service/thumb/',
	proxyUrl: $ctx + '/proxy'
};

// ext blank image url
var $blankimg = '/common/extjs/resources/images/default/s.gif';
var $logoimg = $app.context.root + '/images/logo-small.gif';

var $navMenu = 'mainMenu2';

var $surveystat = $ctx + '/survey/stat.jsp?id=';
var $surveypreview = $ctx + '/survey/invest.jsp?id=';
var $infopreview = $ctx + '/preview.jsp?id=';
var $filestorage = 'http://byfiles.storage.lawyers.org.cn/file/';
var $imagethumb = 'http://byfiles.storage.lawyers.org.cn/thumb/';

var $security = {
	loginUrl : $ctx + '/j_spring_security_check',
	logoutUrl : $ctx + '/j_spring_security_logout',
	defaultTarget : $ctx + '/um/'
};
var $ols = {
	surveyUrl: $ctx + '/ols/survey.jhtml',
	answerUrl: $ctx + '/ols/answer.jhtml',
	resultUrl: $ctx + '/ols/result.jhtml'
};
var $config = {
		// 内容管理
		cms : {
			 'info-editor' : 'cn.org.lawyers.cms.page.InformationDetail'
			,'comment-editor': 'cn.org.lawyers.cms.page.CommentDetail'
		}
	};


var $defaluts = {};
$defaluts.cms = {
	information : {
		source:'上海市律师协会',
		'ext.newDays' : 3
	}
};

// debug switch
var $debug = 'on'; // on|off

/*** end ***/

