var  Properties  =   new  Object();
Properties.Lang  =   new  Object();

Properties.Lang['en'] = {
                        cookie:{
					   		cSpace_CodeList:"cSpace_CodeList_en",
							cSpace_NameList:"cSpace_NameList_en",
							cPicList:"cPicList_en",
							cType_CodeList:"cType_CodeList_en",
							productViewList:"productViewList_en",
							userIp:"userIp"
						},
						message:{
							Limit0:"Nothing in the Comparison cart！",
							confirmClean:"Are you sure you want to empty the comparison cart?",
							deleteProduct:"Please select a product to be removed！",
							confirmDelete:"Are you sure you want to remove it?",
							alreadyCompare:"This Product already in the Comparison cart！",
							cartFull:"The Comparison cart is full",
							onlyProduct:"At least one product should be remained！",
							noHistory:"Nothing in the review history",
							emptyHistory:"Are you sure you want to clean review history?",
							perfect:"Excellent",
							good:"Good",
							common:"Ok",
							bad:"Bad",
							reject:"Unacceptable",
							vote:"votes"
						}
                     };

Properties.Lang['en-us'] = {
                            cookie:{
						   		cSpace_CodeList:"cSpace_CodeList_en",
								cSpace_NameList:"cSpace_NameList_en",
								cPicList:"cPicList_en",
								cType_CodeList:"cType_CodeList_en",
								productViewList:"productViewList_en",
								userIp:"userIp"
							},
							message:{
								Limit0:"Nothing in the Comparison cart！",
								confirmClean:"Are you sure you want to empty the comparison cart?",
								deleteProduct:"Please select a product to be removed！",
								confirmDelete:"Are you sure you want to remove it?",
								alreadyCompare:"This Product already in the Comparison cart！",
								cartFull:"The Comparison cart is full",
								onlyProduct:"At least one product should be remained！",
								noHistory:"Nothing in the review history",
								emptyHistory:"Are you sure you want to clean review history?",
								perfect:"Excellent",
								good:"Good",
								common:"Ok",
								bad:"Bad",
								reject:"Unacceptable",
								vote:"votes"
							}
	                    };

Properties.Lang['zh-cn'] = {
                            cookie:{
						   		cSpace_CodeList:"cSpace_CodeList_cn",
								cSpace_NameList:"cSpace_NameList_cn",
								cPicList:"cPicList_cn",
								cType_CodeList:"cType_CodeList_cn",
								productViewList:"productViewList_cn",
								userIp:"userIp"
							},
							message:{
								Limit0:"对比栏中没有任何商品！",
								confirmClean:"你确认要清空对比栏吗?",
								deleteProduct:"请选中要删除的产品！",
								confirmDelete:"你确认删除吗?",
								alreadyCompare:"该产品已加入了对比栏！",
								cartFull:"对比产品已经达到上限！",
								onlyProduct:"此页面须保持一个产品！",
								noHistory:"历史记录中中没有任何商品！",
								emptyHistory:"你确认要清空历史记录吗?",
								perfect:"相当棒",
								good:"这款还不错",
								common:"普普通通",
								bad:"感觉不怎么样",
								reject:"无法接受",
								vote:"票"
							}
					    };
					   
Properties.Lang['zh-tw'] = {
                            cookie:{
						   		cSpace_CodeList:"cSpace_CodeList_tw",
								cSpace_NameList:"cSpace_NameList_tw",
								cPicList:"cPicList_tw",
								cType_CodeList:"cType_CodeList_tw",
								productViewList:"productViewList_tw",
								userIp:"userIp"
							},
							message:{
								Limit0:"對比欄中沒有任何商品！",
								confirmClean:"你確認要清空對比欄嗎?",
								deleteProduct:"請選中要刪除的產品！",
								confirmDelete:"你確認刪除嗎?",
								alreadyCompare:"該產品已加入了對比欄！",
								cartFull:"對比產品已經達到上限！",
								onlyProduct:"此頁面須保持一個產品！",
								noHistory:"歷史記錄中中沒有任何商品！",
								emptyHistory:"你確認要清空歷史記錄嗎?",
								perfect:"相當棒",
								good:"這款還不錯",
								common:"普普通通",
								bad:"感覺不怎麼樣",
								reject:"無法接受",
								vote:"票"
							}
					    };
 
//  return current locale abbreviation. 
//  exp:return 'zh-cn' 
Properties.getLang = function(){
	return "zh-cn";
	//var language = "zh-cn";
	//if(navigator.userAgent.indexOf("MSIE") > 0){
	//	language = window.navigator.browserLanguage.toString().toLowerCase();
	//}else {
	//	language = window.navigator.language.toString().toLowerCase();
	//}
	//return language;	
};

Properties.getCookie = function(){
	try{
		return this.Lang[this.getLang()].cookie;
	}catch (e){
		window.alert(e.description);
	};
};

Properties.getMessage = function(){
	try{
		return this.Lang[this.getLang()].message;
	}catch (e){
		window.alert(e.description);
	};
};
