/*
 * 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.gif';

var $navMenu = 'mainMenu2';

var $infopreview = $ctx + '/preview.jsp?id=';
var $filestorage = $svc.filesystem;
var $imagethumb = $svc.thumb;

var $security = {
	loginUrl : $ctx + '/j_spring_security_check',
	logoutUrl : $ctx + '/j_spring_security_logout',
	defaultTarget : $ctx + '/admin/'
};

var $config = {
		// 用户系统
		us : {
			 'user-editor' : 'cn.shjcdj.usersystem.page.UserPropertiesEditor'
		},
		// 内容管理
		cms : {
			 'info-editor' : 'cn.shjcdj.suggest.page.InformationDetail'
		}
	};

var $defaluts = {};
$defaluts.cms = {
	source:'市委组织部办公室'
};

// debug switch
var $debug = 'on'; // on|off

/*** end ***/

