
/**
 * JS内で使用する定数
 * @require jQuery 1.3.2+
 * @version 1.0.0
 */
jQuery.constants = {};

jQuery.constants.setting = {
	keepContractDelimiter : '__'
};

jQuery.constants.action = {
	detail : 'detail',
	keep : 'keep',
	history : 'history',
	recommend : 'recommend'
};

jQuery.constants.contract = {
	rent : 'r',
	monthly : 'm'
};

jQuery.constants.limit = {
	city : 10,
	line : 10,
	station : 10,
	compare : 20,
	keep : 20
};

jQuery.constants.str = {
	keywordExplanation : 'ダイレクトサーチ！検索ワードをここに入力',
	keywordHeader : 'ダイレクトサーチ'
};

jQuery.constants.map = {
	defaultZoom : '15',
	minZoom : '18',
	maxZoom : '14',
	property_type_open : '1',
	property_type_all : '2',
	property_type_close : '3',
	property_type_leopalace : '4'
};

jQuery.constants.url = {
	top : 'http://www.leopalace21.com/',
	panelAreaPrefGroup : '/search/panel/location/area/prefGroup',
	panelAreaPref : '/search/panel/location/area/pref',
	panelAreaCity : '/search/panel/location/area/city',
	panelRailPrefGroup : '/search/panel/location/rail/prefGroup',
	panelRailPref : '/search/panel/location/rail/pref',
	panelRailLine : '/search/panel/location/rail/line',
	panelRailStation : '/search/panel/location/rail/station',
	urlGenerate : '/search/url/generate',
	urlDetailGenerate : '/search/url/detailGenerate',
	keywordSuggest : '/search/keyword/suggest',
	keywordApno : '/search/keyword/apno',

	resultAreaView : '/search/result/location/area/view',
	resultAreaPrefGroup : '/search/result/location/area/prefGroup',
	resultAreaPref : '/search/result/location/area/pref',
	resultAreaCity : '/search/result/location/area/city',
	resultRailView : '/search/result/location/rail/view',
	resultRailPrefGroup : '/search/result/location/rail/prefGroup',
	resultRailPref : '/search/result/location/rail/pref',
	resultRailLine : '/search/result/location/rail/line',
	resultRailStation : '/search/result/location/rail/station',
	resultMapView : '/search/result/location/map/view',
	resultMapPrefGroup : '/search/result/location/map/prefGroup',
	resultMapPref : '/search/result/location/map/pref',
	resultMapCity : '/search/result/location/map/city',
	resultConditionAll : '/search/result/condition/all',
	resultConditionKodawari : '/search/result/condition/kodawari',
	resultConditionCampaign : '/search/result/condition/campaign',
	resultRoute : '/search/result/route',
	searchCount : '/search/searchCount',

	timeInput : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/time/input';
		} else {
			return '/search/r/time/input';
		}
	},

	timeSelect : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/time/select';
		} else {
			return '/search/r/time/select';
		}
	},

	schoolAreaSelect : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/school/areaSelect';
		} else {
			return '/search/r/school/areaSelect';
		}
	},

	schoolPanelPref : '/search/school/panelPref',
	schoolPanelInitial : '/search/school/panelInitial',

	schoolList : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/school/list';
		} else {
			return '/search/r/school/list';
		}
	},

	propertyReload : '/search/property/reload',
	propertyAutoPaging : '/search/property/autoPaging',
	
	imageList : '/search/property/imageList',
	
	closePropertyList : '/search/map/closePropertyList',
	closeRoomList : '/search/map/closeRoomList',
	
	mapProperty : 'http://www.leopalace21.com/search/map/property',
	mapReload : 'http://www.leopalace21.com/search/map/reload',
	mapCenter : 'http://www.leopalace21.com/search/map/center',
	mapFacility : 'http://www.leopalace21.com/search/map/facility',
	mapPanel : 'http://www.leopalace21.com/search/map/panel',
	mapPanelAll : 'http://www.leopalace21.com/search/map/panelAll',
	mapKeywordSuggest : 'http://www.leopalace21.com/search/map/mapKeywordSuggest',

	compareDetail : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/compare/detail';
		} else {
			return '/search/r/compare/detail';
		}
	},

	compareDetailReload : function(contract) {
		if (contract == j$.constants.contract.monthly) {
			return '/search/m/compare/detailReload';
		} else {
			return '/search/r/compare/detailReload';
		}
	},

	compareKeep : '/search/compare/keep',
	compareKeepReload : '/search/compare/keepReload',
	compareHistory : '/search/compare/history',
	compareHistoryReload : '/search/compare/historyReload',
	compareRecommend : '/search/compare/recommend',
	compareRecommendReload : '/search/compare/recommendReload',

	partsTop : '/search/parts/top',
	partsSearchRecommend : '/search/parts/searchRecommend',
	partsPropertyRecommend : '/search/parts/propertyRecommend',
	partsDetailRecommend : '/search/parts/detailRecommend',
	partsSimilar: '/search/parts/similar',
	partsSearchHistory : '/search/parts/searchHistory',
	partsPropertyHistory : '/search/parts/propertyHistory',
	partsDetailHistory : '/search/parts/detailHistory',
	keepSet : '/search/keep/set',
	keepCount : '/search/keep/count',
	keepCheck : '/search/keep/check',
	searchConditionSet : '/search/searchCondition/set',
	articleHistorySet : '/search/articleHistory/set',
	mapKeywordSet : '/search/mapKeyword/set',
	searchConditionDelete : '/search/searchCondition/delete',
	inquiry : 'https://www.leopalace21.com/apps/searchInquiry/bukkenInquiryAction.do'
};

jQuery.constants.img = {

	checkboxOn : '/search/img/obj_checkbox_on.gif',

	checkboxOnName : 'obj_checkbox_on',

	checkboxOff : '/search/img/obj_checkbox_off.gif',

	checkboxOffName : 'obj_checkbox_off',

	radioOn : '/search/img/obj_radio_on.gif',

	radioOff : '/search/img/obj_radio_off.gif',

	panelNextOn : '/search/img/btn_movl_next.gif',

	panelNextOff : '/search/img/btn_movl_next_f.gif',

	panelSearchOn : '/search/img/btn_ovl_search.gif',

	panelSearchOff : '/search/img/btn_ovl_search_f.gif',

	resultNextOn : '/search/img/btn_pnl_prev.gif',

	resultNextOff : '/search/img/btn_pnl_prev_off.gif',

	resultSearchOn : '/search/img/btn_pnl_search.gif',

	resultSearchOff : '/search/img/btn_pnl_search_f.gif',

	noImg : '/search/img/preparation.gif',

	noImgBig : '/search/img/no_image_b.gif',

	loading : '/search/img/loadingAnimation.gif',

	searchLoading : '/search/img/obj_sch_loding.gif',

	popupClose : '/search/img/btn_ovl_close02.gif',

	propertyKept : '/search/img/btn_lst_keep_f.gif',

	detailKeep : '/search/img/btn_det_keep.gif',

	detailKept : '/search/img/btn_det_keep_f.gif',
	
	centerIcon : '/search/img/map_center.gif',
	
	singleIcon : '/search/img/ico_search_map_singlehouse.png',
	
	tripleIcon : '/search/img/ico_search_map_triplehouse.png',
	
	checkIcon : '/search/img/ico_search_map_check.png',
	
	closeSingleIcon : '/search/img/ico_search_map_singlehouse_def.png',
	
	closeCheckIcon : '/search/img/ico_search_map_singlehouse_check_def.png'
}




